发布网友 发布时间:2022-04-28 11:33
共1个回答
热心网友 时间:2023-10-06 03:32
>> y=dsolve('D2y+Dy=cos(x)','y(0)=2','Dy(0)=1','x')追答如果x(0)=1,则x也是函数,也就是说x,y是t的函数,则:
>> y=dsolve('D2y+Dy=cos(x)','x(0)=1 ','y(0)=2','t')
y =
piecewise([1 == x(0), {C4 - cos(x) + exp(-t)*(cos(x) - C4 + 2) + t*cos(x)}], [1 ~= x(0), {}])
>> y=dsolve('D2y+Dy=cos(x)','x(0)=1 ','Dy(0)=1','t')
y =
piecewise([1 == x(0), {C11 - cos(x) + t*cos(x) + exp(-t)*(cos(x) - 1)}], [1 ~= x(0), {}])
说明:结果不定,给的已知量(条件)不够。
热心网友 时间:2023-10-06 03:32
>> y=dsolve('D2y+Dy=cos(x)','y(0)=2','Dy(0)=1','x')追答如果x(0)=1,则x也是函数,也就是说x,y是t的函数,则:
>> y=dsolve('D2y+Dy=cos(x)','x(0)=1 ','y(0)=2','t')
y =
piecewise([1 == x(0), {C4 - cos(x) + exp(-t)*(cos(x) - C4 + 2) + t*cos(x)}], [1 ~= x(0), {}])
>> y=dsolve('D2y+Dy=cos(x)','x(0)=1 ','Dy(0)=1','t')
y =
piecewise([1 == x(0), {C11 - cos(x) + t*cos(x) + exp(-t)*(cos(x) - 1)}], [1 ~= x(0), {}])
说明:结果不定,给的已知量(条件)不够。