大家!我在这个平台上还很陌生,一件事需要您的帮助。我在jupyter笔记本上使用sympy,并且我对一个虚拟公式进行了编程,即平方根,但是此符号的输出不是root symbol,实际上是输出sqrt。
我会给大家一个例子
import sympy
In: sympy.sqrt(3)
Out :sqrt(3)
这是SymPy的正常行为。我目前无法对其进行测试,但是请在调用init_printing(use_unicode=True)函数之前尝试在代码中添加sqrt。
init_printing(use_unicode=True)
sqrt
来源: https://docs.sympy.org/latest/tutorial/intro.html