求解方程exp(x) + 10*x - 2 = 0
首先根据李普希茨条件估计出迭代的次数
from math import*
def ite(x,k):
if k!=0:
return ite((2-exp(x))/10,k-1)
else:
return x
x=ite(0,12)
print(x)
标签:10,方程,return,求解,python,ite,exp,迭代法,计算方法
来源: https://blog.csdn.net/SuperiorEE/article/details/104703574