I currently have an equation that looks like
x = 4/5(4y - 3)*z - 1/3
How can I get Sage to convert the coefficients to numerical approximations? I want to end up with something like
x = 0.8(4y - 3)*z - 0.333333333
I tried x.n(), but that only gives a "cannot evaluate symbolic expression numerically" error. Also x*1.0 doesn't do anything.
If $x$ is to be treated as a polynomial, then the following might suit your needs:
for more information about
posted Apr 28 '11Kelvin Li
443 ● 10 ● 17
Asked: Apr 28 '11
Seen: 225 times
Last updated: Apr 28 '11
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.