I need a python program for Taylor series solving a differential equation dy/dx=x^2+y^2 and y(0) =1

后端 未结 0 1125
傲寒
傲寒 2020-11-29 20:10
from sympy import *
x = symbols(\'x\')

def taylor(f,x,x0, n):  
    t = 0  
    for i in range(0,n):
        t = t + ((diff(f,x,i).subs(x,x0))/(factorial(i))) * (x          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题