当前位置:网站首页>Solving simple differential equations
Solving simple differential equations
2022-07-02 17:26:00 【__ Rain】
Solve an ordinary differential equation d y d t = a y \frac{dy}{dt}=ay dtdy=ay
syms y(t) a; eqn = diff(y, t) == a*y; S = dsolve(eqn)
Add conditions , initial value y ( 0 ) = 5 y(0) = 5 y(0)=5
syms y(t) a; eqn = diff(y, t) == a*y; cond = y(0) = 5; S = dsolve(eqn, cond)
Solving second order ordinary differential equations d 2 y d u 2 = a y \frac{d^2y}{du^2}=ay du2d2y=ay
syms y(t) a; eqn = diff(y, t, 2) == a*y; S = dsolve(eqn)
Add conditions , y ( 0 ) = b , y ′ ( 0 ) = 1 y(0) = b, y'(0) = 1 y(0)=b,y′(0)=1
syms y(t) a b; eqn = diff(y, t, 2) == a*y; Dy = diff(y, t); cond = [y(0) == b, Dy(0) == 1]; S = dsolve(eqn, cond)
Solving ordinary differential equations
d y d t = z d z d t = − y \frac{dy}{dt}=z\\ \frac{dz}{dt}=-y dtdy=zdtdz=−ysyms y(t) z(t) eqns = [diff(y, t) == z, diff(z, t) == -y]; s = dsolve(eqns)
边栏推荐
猜你喜欢
随机推荐
剑指 Offer 25. 合并两个排序的链表
【Leetcode】14. 最長公共前綴
GeoServer:发布PostGIS数据源
JS20 数组扁平化
JS delete substring in string
牛客 JS3 分隔符
Niuke JS2 file extension
宝宝巴士创业板IPO被终止:曾拟募资18亿 唐光宇控制47%股权
The difference of message mechanism between MFC and QT
871. Minimum refueling times
Use the API port of the bridge of knowledge and action to provide resources for partners to access
SSB threshold_ SSB modulation "suggestions collection"
dstat使用[通俗易懂]
Nexus简介及小白使用IDEA打包上传到Nexus3私服详细教程
一年顶十年
例题 非线性整数规划
The poor family once again gave birth to a noble son: Jiangxi poor county got the provincial number one, what did you do right?
2、 Expansion of mock platform
Amazon cloud technology community builder application window opens
几行代码搞定RPC服务注册和发现