sympy求解erf方程
2020-12-26 本文已影响0人
一路向后
1.源码实现
from sympy import Symbol, solveset, erf
x = Symbol('x', real=True)
y = erf(x) - 0.2
s = solveset(y, x)
print(s)
2.运行及结果
$ python3 example.py
{0.179143454621292}
from sympy import Symbol, solveset, erf
x = Symbol('x', real=True)
y = erf(x) - 0.2
s = solveset(y, x)
print(s)
$ python3 example.py
{0.179143454621292}