I want help solving differential equations
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
This question
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1214773/image.jpeg)
my sol
syms x y(t);
eqn = exp^x(diff(y,t)+1==1);x(0)=1;
sol = dsolve(eqn);
problem
Error occurred during use: exp
Insufficient input arguments.
Error Occurred: Untitled (Line 2)
eqn = exp^x(diff(y,t)+1==1);x(0)=1;
0 comentarios
Respuesta aceptada
Rik
el 1 de Dic. de 2022
Exp is a function, not a number. There is also no implicit multiplication.
My (untested) suggestion would be this:
syms x(t);
eqn = exp(x).*(diff(x,t)+1)==1;x(0)=1;
sol = dsolve(eqn);
Some bits and pieces may still need adjusting.
2 comentarios
Rik
el 1 de Dic. de 2022
You can set the assumption as the second parameter in dsolve, as the documentation explains:
syms x(t);
eqn = exp(x).*(diff(x,t)+1)==1;
sol = dsolve(eqn,x(0)==1)
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!