Top "Numerical-methods" questions

Algorithms which solve mathematical problems by means of numerical approximation (as opposed to symbolic computation).

Dealing with float precision in Javascript

I have a large amount of numeric values y in javascript. I want to group them by rounding them down …

javascript floating-point double floating-accuracy numerical-methods
How can I use numpy.correlate to do autocorrelation?

I need to do auto-correlation of a set of numbers, which as I understand it is just the correlation of …

python math numpy numerical-methods
Check if a varchar is a number (TSQL)

is there an easy way to figure out if a varchar is a number? Examples: abc123 --> no number 123 …

tsql numerical-methods
Making C code plot a graph automatically

I have written a program which writes a list of data to a '.dat' file with the intention of …

c gnuplot numerical-methods piping
Implementing the derivative in C/C++

How is the derivative of a f(x) typically calculated programmatically to ensure maximum accuracy? I am implementing the Newton-Raphson …

c++ c algorithm math numerical-methods
Numerical ODE solving in Python

How do I numerically solve an ODE in Python? Consider \ddot{u}(\phi) = -u + \sqrt{u} with the following conditions …

python plot numerical-methods differential-equations
Newton-Raphson Method in Matlab

I am new to matlab and I need to create a function that does n iterations of the Newton-Raphson method …

matlab numerical-methods newtons-method
Euler's method in python

I'm trying to implement euler's method to approximate the value of e in python. This is what I have so …

python numpy numerical-methods differential-equations approximation
Sampling a random subset from an array

What is a clean way of taking a random sample, without replacement from an array in javascript? So suppose there …

javascript arrays random numerical-methods
How to find a binary logarithm very fast? (O(1) at best)

Is there any very fast method to find a binary logarithm of an integer number? For example, given a number …

algorithm math logarithm numerical-methods