Info

此问题已关闭。 请重新打开它进行编辑或回答。

What is the solution of differential equations ?

1 次查看(过去 30 天)
4OsT
4OsT 2012-12-21
关闭: MATLAB Answer Bot 2021-8-20
Hi all
How can I solve in matlab ;
D2y + y = sinx
answer y = c1*cosx + c2*sinx -x*cosx/2
Please Help me.
  1 个评论
4OsT
4OsT 2012-12-21
dsolve('D2y + y = sinx','x')
y = sinx + C11*cos(x) + C12*sin(x)
wrong answer :(

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2012-12-21
sol=dsolve('D2y + y = sin(x)','x')

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by