Re:Show HN: A Mathematical Integration rust crate
by legobmw99 on Tuesday November 19, 2024 @03:57PM
(#42188015)
Is there a technical reason to now allow closures as the integrand?
[ Parent
| on HN ]
Re:Show HN: A Mathematical Integration rust crate
by n_plus_1_acc on Tuesday November 19, 2024 @04:10PM
(#42188132)
Mayve because they aren't guaranteed to be actual functions (in the mathematical sense) and could return random values
Re:Show HN: A Mathematical Integration rust crate
by legobmw99 on Tuesday November 19, 2024 @04:17PM
(#42188173)
The Fn trait could be used, which prevents mutation, but allows a lot of useful closures. I should note, a motivated user could provide a junk function no matter what the type accepted is