I am desperately looking for a JavaScript that can calculate the first derivative of a function. The function always includes only one variable, x.
You can do similar things using diff.js. You could do:
x = range(-10, 10, 0.01); // works only in latest browsers f = diffXY(x, x.map(F));
which would give you the values of the derivative f of your function F at x = -10 to 10 with stepsize 0.01.
f
F
x