longaiting 发表于 2008-4-20 16:45

怎样画这个图呀

y’’+ycos(x) = 0, y(0)=1, y’(0)=0;还有我用dsolve求的解好像错了

seidel 发表于 2008-4-20 18:31

我感觉应该是这样求解:
>> y=dsolve('D2y+y*cos(x)=0','y(0)=1','Dy(0)=0');
>> ezplot(y)

页: [1]

编程论坛