I am trying to convert something like    .5*x + 0.7*y  of type Expression   
to    something   like   1/2*x + 7/10*y  of type Expression

so far I am able to do 

sage: R = PolynomialRing(QQ,[x,y])
result = R(0.5*x + 0.7*y); result; type(result)
1/2*x + 7/10*y
<type 
'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular'>

however the 'type'  of the result is not an Expression ,  and I am not sure 
how to convert <type 
'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular'>
   to  Expression.




-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to