下列Matlab代码,能求解微分方程 y'(t) = 2*t , y(0) = 1的是( )
A: tspan = [0 5];
y0 = 0;
[t,y] = ode45(@(t,y) 2*t, tspan, y0);
B: tspan = [0 5];
y0 = 1;
[t,y] = ode45(@(t,y) 2*t, tspan, y0);
C: tspan = [0 5];
y0 = 1;
[t,y] = ode45(@(t,y) 2*y, tspan, y0);
D: tspan = [0 5];
y0 = 1;
[t,y] = ode45(@(t,y) 2*t*y, tspan, y0);
A: tspan = [0 5];
y0 = 0;
[t,y] = ode45(@(t,y) 2*t, tspan, y0);
B: tspan = [0 5];
y0 = 1;
[t,y] = ode45(@(t,y) 2*t, tspan, y0);
C: tspan = [0 5];
y0 = 1;
[t,y] = ode45(@(t,y) 2*y, tspan, y0);
D: tspan = [0 5];
y0 = 1;
[t,y] = ode45(@(t,y) 2*t*y, tspan, y0);
举一反三
- 如何用Maltab求解 y'(t) = 2*t , y(0) = 0?
- (2006年)设f(χ,y)与φ(χ,y)均为可微函数,且φ′y(χ,y)≠0.已知(χ0,y0)是f(χ,y)在约束条件φ(χ,y)=0下的一个极值点,下列选项正确的是 【 】 A: 若f′χ(χ0,y0)=0,则f′y(χ0,y0)=0. B: 若f′χ(χ0,y0)=0,则f′y(χ0,y0)≠0. C: 若f′χ(χ0,y0)≠0,则f′y(χ0,y0)=0. D: 若f′χ(χ0,y0)≠0,则f′y(χ0,y0)≠0.
- 如下命令中不能实现如下微分方程组[img=327x203]17e443a5d83ce02.png[/img],在初值条件[img=172x112]17e443a5e2ead01.png[/img]下的特解求解的是: A: [x,y] = dsolve('Dx+5*x+y = exp(t)', 'Dy-x-3*y=0', 'x(0)=1', 'y(0)=0', 't') B: [x,y] = dsolve('Dx+5*x+y = exp(t)', 'Dy-x-3*y=0', 'x(0)=1, y(0)=0', 't') C: [x,y] = dsolve('Dx+5*x+y = exp(t)', 'Dy-x-3*y=0', 'x(0)=1', 'y(0)=0') D: [x,y] = dsolve('Dx+5*x+y = exp(t)', 'Dy-x-3*y=0', 'x(0)=1', 'y(0)=0', 'x')
- 以下哪一项属于二阶齐次线性差分方程? A: y(t+2)-3*y(t+1)+y(t)=0 B: y(t+2)-3*y(t+1)+y(t)=2 C: (y(t+2))^2-3*y(t+1)+y(t)=0 D: y(t+1)+3*y(t)=0
- 产生周期为1的三角波信号,正确的代码是 A: t=0:1/1000:5;y=sawtooth(2*pi*t,0.5);号,正确的代码是 B: t=0:1/1000:5;y=sawtooth(2*pi*10*t,0.5);,正确的代码是 C: t=0:1/1000:5;y=square(2*pi*t,0.5);� D: t=0:1/1000:5;y=square(2*pi*10*t,0.5);