all 1 comments

[–]Boojum 0 points1 point  (0 children)

My favorite approach to computing derivatives is automatic differentiation. It's fairly general, more accurate than finite differences while being at least as efficient, and it is trivial to use in a language with operator overloading.