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 日

0 投票

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