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

Basic single variable Secant (Newton-Raphson) Solver that just works - Сообщения

#1 Опубликовано: 23.11.2016 16:08:55
Alexander O. Melnik

Alexander O. Melnik

127 сообщений из 494 понравились пользователям.

Группа: 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 КиБ) скачан 52 раз(а).
SolveNewtonRaphson.png
#2 Опубликовано: 24.11.2016 01:39:11
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 24.11.2016 11:22:17
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: 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 Опубликовано: 24.11.2016 13:19:46
Alexander O. Melnik

Alexander O. Melnik

127 сообщений из 494 понравились пользователям.

Группа: 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.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений