Rank: Newbie
Groups: Registered
Joined: 07/09/2016(UTC) Posts: 9 Location: Houston
|
See the following quadratic solver.sm (7kb) downloaded 20 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?
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Your fractional didn't survive as soon as I asked for 15 decimals in your 'r1'. quadratic solver.sm (9kb) downloaded 31 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,647 Location: Italy Was thanked: 1329 time(s) in 875 post(s)
|
Simply change the optimization of solve(f(x),x) from symbolic to numeric. Edited by user 12 April 2017 00:59:37(UTC)
| Reason: marked as SOLVED |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.