solve function accuracy

solve function accuracy - quadratic solver generates root as large fraction with error - Messaggi

#1 Pubblicato: 02/04/2017 10:24:15
subseapark

subseapark

0 apprezzamenti in 9 post.

Gruppo: User

See the following

quadratic solver.sm (6,42 KiB) scaricato 1292 volta(e).


Note how second root from solve function generated a fraction containing
large numbers with minor error. This compares with actual which is a
simplistic decimal.

Is there a work-around to obtain the correct decimal result?
#2 Pubblicato: 02/04/2017 10:46:32
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Your fractional didn't survive as soon as I asked
for 15 decimals in your 'r1'.

quadratic solver.sm (8,77 KiB) scaricato 1322 volta(e).
#3 Pubblicato: 03/04/2017 13:25:13
Davide Carpi

Davide Carpi

1.443 apprezzamenti in 2.936 post.

Gruppo: Moderator

Simply change the optimization of [MATH]solve(f(x),x)[/MATH] from symbolic to numeric.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • Nuovi post
  • Nessun nuovo post