0
d/dX(Cos²x)
Can I use coding to differentiate (find derivative) of this???
2 Réponses
+ 6
Yes
0
Dev 188 try the derivative formula with a small value for h.
(f(x+h) - f(x))/h
In digital floating point there is a minimal value that can be stored, so h cannot really be infinitessimally small.
-----
Of further interest, in a study of computer numerical methods it was found that you will get better accuracy if you use a balanced derivative formula, like this:
(f(x+h) - f(x-h))/(2*h)
It would be interesting to find out your results. Let us know!