Sujet : Re: Beazley's Problem
De : antoon.pardon (at) *nospam* vub.be (Antoon Pardon)
Groupes : comp.lang.pythonDate : 06. Oct 2024, 21:19:10
Autres entêtes
Message-ID : <mailman.4.1728245955.4695.python-list@python.org>
References : 1 2 3 4 5 6
User-Agent : Mozilla Thunderbird
Op 23/09/2024 om 09:44 schreef Annada Behera via Python-list:
The "next-level math trick" Newton-Raphson has nothing to do with
functional programming. I have written solvers in purely iterative
style.
What is your point. Any problem solved in a functional style can
also be solved in a pure interative style. So you having written
something in an interative style doesn't contradict Newton-Raphson being expressable in a functional style.
As far as I know, Newton-Raphson is the opposite of functional
programming as you iteratively solve for the root. Functional programming
is stateless where you are not allowed to store any state (current best
guess root).
That doesn't prevent you from passing state along as a parameter,
usualy in some helper function.
-- Antoon Pardon.