Questions tagged [scientific-computing]

Use this tag for questions about using computers in science. Many of these questions also fit on scicomp.stackexchange.com.

Scientific computing encompasses numerical methods, physical simulations, data processing and visualization, and the many other ways in which computers are used to do scientific research.

There is an entire Stack Exchange site devoted to questions about scientific applications of computers. These sorts of questions may get more specialized attention at that site.

756 questions
0
votes
2 answers

Syntax in enum example

In the following simple example from the Java documentation: public enum Planet { MERCURY (3.303e+23, 2.4397e6), VENUS (4.869e+24, 6.0518e6), EARTH (5.976e+24, 6.37814e6), MARS (6.421e+23, 3.3972e6), JUPITER (1.9e+27, …
CaitlinG
  • 1,955
  • 3
  • 25
  • 35
0
votes
2 answers

integers or floating point in situations when either would do?

Moving a discussion on relative merits of integers and floats into a separate question. Here it is: what is your preference between an integer type or a floating point type in situations that are neither inherently integral nor inherently floating…
Michael
  • 5,775
  • 2
  • 34
  • 53
0
votes
0 answers

Dealing with infinities in scientific programming

I want to calculate the entropy of a time series, but I found that in the way, there are some infinities arising from a log(0). In this particular case, those zeros represent a frequency with amplitude zero. That's just a bit of context. What I…
r_31415
  • 8,752
  • 17
  • 74
  • 121
0
votes
1 answer

C program over-writing file contents in if statement

I have a C program that is trying to record something called an "avalanche size". The criteria for recording this is if the "delta_energy" which is generated by the program is less than equal to zero then I can increment my avalanche size by …
0
votes
1 answer

LU Decomposition on GPU MATLAB

I am trying to run LU Decomposition on MATLAB such that it will use the GPU. According to NVidia/MATLAB documentation, LU is supposed to be supported by CUDA (see, for example http://www.nvidia.com/content/GTC-2010/pdfs/2267_GTC2010.pdf). Now, I…
Gil
  • 177
  • 1
  • 9
0
votes
0 answers

Debugging no-error hang in MATLAB's ode solver

I have a system of ODE's. The ODE takes a couple of seconds to run in a particular parameter range. For another parameter range, however, MATLAB suddenly takes an infinite amount of time to run (well, ok, only tested to half a day). This is a…
0
votes
1 answer

Extracting and plotting tabulated plaintext data using Python 3

For the purposes of clarity I have created a gist containing an example of the format of data I am referring to: https://gist.github.com/TestAcc7777/5823760 After some other irrelevant data, the output file contains many of these tabulated blocks,…
0
votes
1 answer

Numerical integration of a discontinuous function in multiple dimensions

I have a function f(x) = 1/(x + a+ b*I*sign(x)) and I want to calculate the integral of dx dy dz f(x) f(y) f(z) f(x+y+z) f(x-y - z) over the entire R^3 (b>0 and a,- b are of order unity). This is just a representative example -- in practice I…
0
votes
1 answer

FFT unable to recombine results?

so basically I have a function that calculates the complex discrete Fourier series of a given vector of size N. (So I have been provided with the vector y and I have to find x) The code uses Daniel-Lanczo's algorithm for FFT and works perfectly…
Maheen Siddiqui
  • 185
  • 4
  • 13
0
votes
1 answer

Writing calculation results back into its array?

Something of a follow-up question to my last one about writing efficient python programs. I have been playing with writing my own physics simulations, and want to get away from using a billion classes and methods. So I want to be able to perform…
mooglinux
  • 815
  • 1
  • 11
  • 27
0
votes
3 answers

How to determine size (in bytes) of a PyTables array?

How can I determine the size (in bytes) of a PyTables Array?
ChaimKut
  • 2,759
  • 3
  • 38
  • 64
0
votes
1 answer

Entity Resolution

I ask this question to people in the field of scientific research: I want to know the difference between the two terms "Entity Resolution" and'' Entity matching "in the context of databases. or if it means the same thing?
0
votes
1 answer

Scientific application suddenly slowed down on Linux

I do scientific computing using c++ with a couple of basic fortran routines in a Xubuntu 12.10 distribution. Things have been running well for years. All of the sudden today when messing with my code the time to complete each iteration would jump…
David Folkner
  • 1,171
  • 1
  • 13
  • 27
0
votes
1 answer

What is the best software stack for a small scientific computing cluster

I work in a research group doing a lot of Machine Learning and Computational Biology. We currently have a cluster, but it is poorly maintained, suffers from low I/O throughput, and most critically doesn't have any setup for scheduling or…
oceanhug
  • 1,352
  • 1
  • 11
  • 24
0
votes
1 answer

Cross-platform development solutions for (mobile) performance computing

I am looking for a programming language/platform which is suited for handling around 1 to 2 GB of data, and can run signal processing algorithms fast enough across platforms (including modern mobile platforms). Did someone come across suitable…