Hi,I have 'Sage Version 4.6.1, Release Date: 2011-01-11' and I using next code to get roots of square equation:
This way give very bad accuracy of the 1st root (Result1=-0.00138422288000584). What i do wrong? And How to get precision result with Sage? Thanks!
asked Mar 08 '11avi9526
65 ● 1 ● 3 ● 9
Based on the comment, I think you need to use higher-precision rings. I don't know if Maxima (which is what does our
I hope that provides enough accuracy for your needs!
++++Edit: I see your question. You are saying that plugging 67... in yields something not quite right. This is going to happen with floating point approximations, especially when we pass things to Maxima, which we do here. Maxima is turning the floats into fractions, essentially, which means things will get off a little bit with such constants.
The following will help you more:
Another thing that might work is not trying to approximate symbolic solutions which come
I'm not sure what's happening here. If I don't do it quite the way you do, I get
seems to agree with these results.
Asked: Mar 08 '11
Seen: 160 times
Last updated: Mar 11 '11
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.