'John Clements' via Racket Users cites Jens Axel Søgaard:
The root finder is the right tool.
Excellent. That makes a lot of sense. Given the setup, I think h = 0.0001 is
probably plenty small. It didn’t occur to me that I could differentiate
numerically, rather than analytically. Thanks!
If your function is defined segment-wise, using numerical
differentiantion might be dangerous, the program may take silly decisions.
*In general* minimizing a function by looking for zeros of the
derivative is considered inefficient and not really stable. The root
finder is not the right tool. You may use this derivative - if you wish
- for the gradient descent procedure.
Jerzy Karczmarczuk
--
You received this message because you are subscribed to the Google Groups "Racket
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.