Sujet : Re: Beazley's Problem
De : no.email (at) *nospam* nospam.invalid (Paul Rubin)
Groupes : comp.lang.pythonDate : 24. Sep 2024, 01:22:27
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87h6a5lx30.fsf@nightsong.com>
References : 1 2 3 4 5 6
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
ram@zedat.fu-berlin.de (Stefan Ram) writes:
Nobody up the thread was claiming it was functional. And you can
totally implement anything in an imperative or functional style.
Yeah the confusion was because I posted a link to "Why FP Matters",
which discusses these sorts of numerical hacks.
def f_prime(x: float) -> float:
return 2*x
You might enjoy implementing that with automatic differentiation (not to
be confused with symbolic differentiation) instead.
http://blog.sigfpe.com/2005/07/automatic-differentiation.html