Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

why don't sage remain exact value

Look at the following code:

realpoly.<z> = PolynomialRing(RR)
factor(z^2-2)

it returns:

(z - 1.41421356237310) * (z + 1.41421356237310)

why don't sage return

(z-sqrt(2))*(z+sqrt(2))

and how can i make it to do that?

why don't sage remain return exact valuevalue in some functions

Look at the following code:

realpoly.<z> = PolynomialRing(RR)
factor(z^2-2)

it returns:

(z - 1.41421356237310) * (z + 1.41421356237310)

why don't sage return

(z-sqrt(2))*(z+sqrt(2))

and how can i make it to do that?

click to hide/show revision 3
retagged

why don't sage return exact value in some functions

Look at the following code:

realpoly.<z> = PolynomialRing(RR)
factor(z^2-2)

it returns:

(z - 1.41421356237310) * (z + 1.41421356237310)

why don't sage return

(z-sqrt(2))*(z+sqrt(2))

and how can i make it to do that?