美文网首页
Sympy:关于在Jupyter中的完美输出

Sympy:关于在Jupyter中的完美输出

作者: ACphart | 来源:发表于2018-08-16 11:14 被阅读12次

  • 虽然不知道到底是怎么回事,但在Jupyter中可以输出很好看的数学式

步骤

In  [1]: from sympy import *
        init_printing(use_unicode=True)
In  [2]: x = symbols('x')
        diff(sin(x)*exp(x), x)
In  [3]: integrate(sin(x**2), x)
输出效果如下
  • 今天知道大概是怎么回事了,相当于生成了一个markdown格式的cell,markdown支持Latex语法。

其他输出

  • pass

相关文章

网友评论

      本文标题:Sympy:关于在Jupyter中的完美输出

      本文链接:https://www.haomeiwen.com/subject/zzynbftx.html