Basic single variable Secant (Newton-Raphson) Solver that just works

Basic single variable Secant (Newton-Raphson) Solver that just works - Mensajes

#1 Publicado: 23/11/2016 16:08:55
Alexander O. Melnik

Alexander O. Melnik

127 me gusta en 498 mensajes.

Grupo: Moderator

I figured I am not the only one who can benefit from a simple numeric solver that "just works".

It will likely become obsolete once Davide updates the Nonlinear Solvers plugin.

Enjoy.

SolveNewtonRaphson.sm (12,99 KiB) descargado 1425 vez(es).
SolveNewtonRaphson.png
#2 Publicado: 24/11/2016 1:39:11
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Interesting, but good thing Smath 5346 does it as well
w/o all that complexity. Shouldn't it be constructed
around "While" loop ? Remember that any invented iterative
solver for Smath can't exceed better accuracy than around
12 decimals because of the granularty of Smath.

The native Smath 'solve' has a universal structure wrt:
1. is implicit
2. the bracketing [x1,x2]
3. very easy to handle.

Jean

Solve Unknown.gif
#3 Publicado: 24/11/2016 11:22:17
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Alex,

The Newton-Raphson code in your first post would
surely work here in two cumbersome presentations.
For this example, 'roots' is a better candidate.

Solve Roots.gif
#4 Publicado: 24/11/2016 13:19:46
Alexander O. Melnik

Alexander O. Melnik

127 me gusta en 498 mensajes.

Grupo: Moderator

If only either of the two could handle the units I would not need to go through all the trouble. They do not, hence I had to get inventive.
  • Nuevos mensajes
  • Sin mensajes nuevos