solve function accuracy

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

#1 已发布: 2017/4/2 10:24:15
subseapark

subseapark

0个赞,共9个帖子。

组: User

See the following

quadratic solver.sm (6.42 KiB)已下载 1304 次。


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 已发布: 2017/4/2 10:46:32
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

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

quadratic solver.sm (8.77 KiB)已下载 1334 次。
#3 已发布: 2017/4/3 13:25:13
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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
  • 有新帖
  • 无新帖