Red de conocimiento informático - Material del sitio web - Cómo mostrar fórmulas matemáticas en Python

Cómo mostrar fórmulas matemáticas en Python

Instale jupyter notebook, ábralo, ejecútelo en el navegador,

Ejemplo 1:

desde IPython.display import Latex

Latex(r"$\ sqrt {x^2 y^2}$")

Ejemplo 2:

de Sympy import *

init_printing()

x , y = símbolos("x, y")

sqrt(x**2 y**2)