Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Difference between RealField and numerical_approx

What is the difference between using RealField, as in

sage:  RealField(10).pi()

and numerical_approx, aka n, as in

sage: pi().n(10)

Are they actually the same function under the hood or should one be used over the other in some cases?