Comment by cyberax
5 months ago
Would an undergrad-level algorithm be faster here?
1. Find the derivative, and use an analytic formula for the roots of a quartic equation.
2. Then evaluate the value at the zeros to look for the intervals that cross the [0,1] segment.
No comments yet
Contribute on Hacker News ↗