【发布时间】:2021-07-18 11:22:34
【问题描述】:
在 Wolfram Alpha 中,我可以使用 complex expand sin(x + Iy) 来返回 sin(x) cosh(y) + i cos(x) sinh(y)。 Julia 或 Python 中是否有相同的包?
【问题讨论】:
标签: python math julia complex-numbers wolframalpha
在 Wolfram Alpha 中,我可以使用 complex expand sin(x + Iy) 来返回 sin(x) cosh(y) + i cos(x) sinh(y)。 Julia 或 Python 中是否有相同的包?
【问题讨论】:
标签: python math julia complex-numbers wolframalpha
在Julia,我找到了这个
using SymPy
@syms x,y
sympy.expand_trig( sin(x + im*y) )
#sin(x)⋅cosh(y) + ⅈ⋅cos(x)⋅sinh(y)
类似的解决方案也可以在Python的库SymPy中找到。
【讨论】: