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
18
votes
1 answer

How to organize a set of scientific experiments using Git

I'm running experiments on a model, with a workflow like this: I work in a model (a software in Python) I change some parameters and run an experiment Then, I will store the results of the experiment (as a pickle). Then, I will analyze the…
Victor
  • 23,172
  • 30
  • 86
  • 125
16
votes
4 answers

Cell segmentation and fluorescence counting in Python

How can I segment cells from an image taken on a microscope, along the lines of what was done here in Matlab? http://blogs.mathworks.com/steve/2006/06/02/cell-segmentation/ Also, if I take multiple image in different fluorescent channels (after…
user248237
16
votes
5 answers

(Re)Starting with C++ (for scientific computing)

I have a fair hang of programming in various languages. I have been implementing my codes for research using MATLAB (during the past few months) and for the first time really noticed the difference in execution speed of MATLAB v$ C. (As much as I…
user59634
16
votes
4 answers

Writing a faster Python physics simulator

I have been playing around with writing my own physics engine in Python as an exercise in physics and programming. I started out by following the tutorial located here. That went well, but then I found the article "Advanced character physics" by…
mooglinux
  • 815
  • 1
  • 11
  • 27
16
votes
4 answers

What is a good free (open source) BLAS/LAPACK library for .net (C#)?

I have a project written in C# where I need to do various linear algebraic operations on matrices (like LU-factorization). Since the program is mainly a prototype created to confirm a theory, a C# implementation will suffice (compared to a possibly…
Egil Hansen
  • 15,028
  • 8
  • 37
  • 54
15
votes
3 answers

Sparse Matrix Libraries for Ruby

I'm looking for a Sparse Matrix library I can use from Ruby. I'm currently using the GNU Scientific Library bindings provided by the "gsl" gem, but my application would be better optimized if I used a dedicated sparse matrix library. I've…
15
votes
1 answer

Floating-point optimizations - guideline

The majority of scientific computing problems that we need solve by implementing a particular algorithm in C/C++ demands accuracy that are much lower than double precision. For example, 1e-6, 1e-7 accuracy covers 99% of the cases for ODE solvers or…
Vivian Miranda
  • 2,467
  • 1
  • 17
  • 27
15
votes
2 answers

How to represent scientific notation in C

How do I represent extremely large or small numbers in C with a certain amount of significant figures. For example, if I want to do calculations on 1.54334E-34, how could I do this. Also, is this applicable to OpenCL code?
user1876508
  • 12,864
  • 21
  • 68
  • 105
15
votes
3 answers

Interpolation in SciPy: Finding X that produces Y

Is there a better way to find which X gives me the Y I am looking for in SciPy? I just began using SciPy and I am not too familiar with each function. import numpy as np import matplotlib.pyplot as plt from scipy import interpolate x = [70, 80, 90,…
JcMaco
  • 1,258
  • 3
  • 16
  • 31
14
votes
2 answers

Scientific Programming Stack for Clojure

I currently use Python for most of my programming, but I'm interested in learning Clojure. What libraries do I need to reproduce the functionality I have with scipy, numpy, and matplotlib? Is there anything like the Enthought distribution?
2daaa
  • 2,788
  • 7
  • 33
  • 44
14
votes
1 answer

statsmodels ARIMA.fit: Hide output

It seems whenever I run ARIMA.fit(), I always get a stdout from the kalman filter: ## -- End pasted text -- RUNNING THE L-BFGS-B CODE * * * Machine precision = 2.220D-16 N = 1 M = 12 This problem is…
hlin117
  • 20,764
  • 31
  • 72
  • 93
14
votes
4 answers

What are your "must-have" Python Packages for Finance?

With the recent SEC proposal requiring that most Asset-Backed Securities issuers file a python computer program to document the flow of funds (or waterfall) provisions of the transaction, I thought it timely to ask what you thought the "Must-Have"…
Sridhar Ratnakumar
  • 81,433
  • 63
  • 146
  • 187
13
votes
1 answer

Why are there no BLAS routines for addition and subtraction

In BLAS there are routines like dscal scale a vector by a constant dinit initialize a vector with given value daxpy perform y = a*x + y and so on. But there are apparently no routines for vector addition or vector subtraction. If this…
Andreas H.
  • 5,557
  • 23
  • 32
13
votes
3 answers

How to get peak memory usage of python script?

I'm doing some extensive scientific python calculations and whant to know execution time and memory footprint of python script. So how to get peak memory usage of python script? If it matters I'm on Windows and use python 2.7.
mrgloom
  • 20,061
  • 36
  • 171
  • 301
13
votes
2 answers

Qt vs Visual Studio for scientific computing

I am embedded programmer, and have no experience with desktop programming. In my project have to display and calculate no of physical parameter like pH, temp. Please suggest me which way to go: Qt or Visual Studio? Which is best suited for…
user2700801
  • 119
  • 6
1 2
3
50 51