How can i get output?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
>> syms y(x)
ode=diff(y,x)==x-1/y
ode(x) =
diff(y(x), x) == x - 1/y(x)
>> ySol(x)=dsolve(ode)
경고: 기호 해를 구할 수 없습니다.
> dsolve (209번 라인)번 라인에서
ySol(x) =
[ empty sym ]
how can i get the answer of "ySol(x)="?
0 commentaires
Réponses (1)
sai charan sampara
le 27 Sep 2023
Hello,
I understand that you are trying to solve a differential equation using “dsolve” but you are getting an empty sym.
This is because the system you have provided has no solution. If you are expecting a solution, then maybe your equation missed a bracket and is (instead of x-1/y) as follows:
eqn=diff(y,x)==(x-1)/y;
This equation has solutions, and they are:
ySol(x) =
(x^2 - 2*x + C1)^(1/2)
-(x^2 - 2*x + C1)^(1/2)
You can refer to the below documentation to learn more about “dsolve”:
Thanks,
Charan
0 commentaires
Voir également
Catégories
En savoir plus sur 방정식 풀이 dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!