solve function accuracy

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

#1 Posted: 4/2/2017 10:24:15 AM
subseapark

subseapark

0 likes in 9 posts.

Group: User

See the following

quadratic solver.sm (6 KiB) downloaded 63 time(s).


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 Posted: 4/2/2017 10:46:32 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

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

quadratic solver.sm (8 KiB) downloaded 73 time(s).
#3 Posted: 4/3/2017 1:25:13 PM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: 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
  • New Posts New Posts
  • No New Posts No New Posts