solve function accuracy

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

#1 Objavljeno: 2. 4. 2017. 10:24:15
subseapark

subseapark

0 svidjanja u 9 postova.

Grupa: User

See the following

quadratic solver.sm (6,42 KiB) preuzeto 1320 put(ova).


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 Objavljeno: 2. 4. 2017. 10:46:32
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

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

quadratic solver.sm (8,77 KiB) preuzeto 1356 put(ova).
#3 Objavljeno: 3. 4. 2017. 13:25:13
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: 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
  • Novi postovi
  • Nema novih postova