nDeriv takes as arguments : an expression ex, the variable
name of this expression (by default x), and h (by default
h=0.001).
nDeriv(ex,x,h) computes an approximated value of the derivative of the
expression ex at the point x and returns :
Input :
^
2,x)Output :
^
2-(x+-0.001)^
2)*500.0Input :
^
2,x),x=1)Output :
Input :
^
2),x,0.00001)Output :
^
2)-exp((x+-1e-05)^
2))*50000Input :
^
2),x,0.00001),x=1)Output :
which is an approximate value of 2e=5.43656365692.