Top "Numerical-methods" questions

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

__builtin_prefetch, How much does it read?

I'm trying to optimize some C++ (RK4) by using __builtin_prefetch I can't figure out how to prefetch a whole …

c++ optimization gcc x86-64 numerical-methods
What's the best way to calculate a numerical derivative in MATLAB?

(Note: This is intended to be a community Wiki.) Suppose I have a set of points xi = {x0,x1,x2,...…

matlab numerical-methods derivative differentiation
How do I obtain the machine epsilon in R?

Is there a constant that stores the machine epsilon in R?

r numerical-methods
numpy gradient function and numerical derivatives

The array the numpy.gradient function returns depends on the number of data-points/spacing of the data-points. Is this expected …

python numpy gradient numerical-methods
Fast Numerical Integration in Python

I have a program that involves computing a definite integral many times, and have been struggling to find a way …

python numpy numerical-methods
Power Method in MATLAB

I would like to implement the Power Method for determining the dominant eigenvalue and eigenvector of a matrix in MATLAB. …

matlab matrix linear-algebra numerical-methods eigenvector
How can I plot the derivative of a graph in gnuplot?

I have a set of measurements of a variable over time. I have these measurements in a file called "results" …

gnuplot numerical-methods
How to calculate machine epsilon in MATLAB?

I need to find the machine epsilon and I am doing the following: eps = 1; while 1.0 + eps > 1.0 do eps = eps /2; …

matlab numerical-methods epsilon
Limiting Number of Decimal Places in GWT?

In pure Java, I would normally have a function like the one below for limiting the number of decimal places …

java math gwt numerical-methods
Can someone explain why scipy.integrate.quad gives different results for equally long ranges while integrating sin(X)?

I am trying to numerically integrate an arbitrary (known when I code) function in my program using numerical integration methods. …

python integration scipy numerical-methods