HOW TO SOLVE THIS FUNCTION?

how to solvethis problem by matlab?thanks
y'=-2y+2x^2+2x y(0)=1
y(0.5)=??

回答(1 个)

Andrei Bobrov
Andrei Bobrov 2013-11-28
编辑:Andrei Bobrov 2013-11-28
Please read about dsolve :
doc dsolve
Your case:
syms x y(x)
yy = dsolve(diff(y) == -2*y + 2*x^2 + 2*x, y(0) == 1);
out = vpa(subs(yy,x,.5))

此问题已关闭。

标签

尚未输入任何标签。

提问:

2013-11-28

关闭:

2021-8-20

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by