▲ | LegionMammal978 6 hours ago | |||||||
Newton's method isn't really so useful for cubics (outside of lucky initial guesses), given how simple the algebraic expressions are. Meanwhile, I wonder to what extent the reported improvement over Blender's cubic solver has to do with the approximations this library makes [0]. Algebraic cubic-solving seems to be well-trodden ground (this library's formulas look similar to those in a paper by Holmes [1]), so faster approximations in a limited range can definitely be appropriate to obtain a further speedup, but I would've liked to see a more thorough accuracy analysis. [0] https://github.com/jurgus/EasingCubicBezier/blob/5b07bd9d316... [1] https://users.math.msu.edu/users/newhous7/math_235/lectures/... | ||||||||
▲ | dahart 4 hours ago | parent [-] | |||||||
> Newton’s method isn’t really so useful for cubics (outside of lucky initial guesses), given how simple the algebraic expressions are. Do you have a better suggestion for a baseline that compares the author’s method? To clarify, it’s clear that this is not evaluating cubics, it’s solving/inverting them, right? The known analytic methods for solving cubics do usually have some precision issues in fp32, depending on what one needs, which is why my question is about precision. (And also wouldn’t mind hearing about the Newton threshold vs perf, since the presentation doesn’t mention it.) | ||||||||
|