求助 能不能看一下下面的代码哪错了
是为 解sinx - e^(-x)=0 的结果
import sympy
from math import sin,exp
x = sympy.symbols(“x”)
result = sympy.solve(sin(x)-exp(-x),[x])
print(result)
输出显示
TypeError: can’t convert expression to float
求助 能不能看一下下面的代码哪错了
是为 解sinx - e^(-x)=0 的结果
import sympy
from math import sin,exp
x = sympy.symbols(“x”)
result = sympy.solve(sin(x)-exp(-x),[x])
print(result)
输出显示
TypeError: can’t convert expression to float