SymPy does exact algebra. Print sp.sqrt(8) and see it does not become 2.828 until evalf.
Goal
Print the version and a simplified fraction.
import sympy as sp
print(sp.__version__)
print(sp.sqrt(8))import sympy as sp
print(sp.sqrt(8).evalf())Pyodide, preloaded sp, files, and privacy.
SymPy does exact algebra. Print sp.sqrt(8) and see it does not become 2.828 until evalf.
Print the version and a simplified fraction.
import sympy as sp
print(sp.__version__)
print(sp.sqrt(8))import sympy as sp
print(sp.sqrt(8).evalf())