matlab 求解常微分方程

简介

高数中关于求解常微分方程,我一直记得是公式

code

clc, clear
syms y(x) % 定义符号常量
dsolve(x^2 + y + (x -2 * y) * diff(y) == 0)

ans

ans =
 
 x/2 + ((4*x^3)/3 + x^2 + C1)^(1/2)/2
 x/2 - ((4*x^3)/3 + x^2 + C1)^(1/2)/2
Hope is a good thing,maybe the best of things,and no good thing ever dies.----------- Andy Dufresne
原文地址:https://www.cnblogs.com/eat-too-much/p/13444784.html