当前位置:网站首页>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 27. 二叉树的镜像
- 什么是敏捷开发流程
- How to transfer business data with BorgWarner through EDI?
- Séparateur JS3 de niuke
- IP address translation address segment
- Sword finger offer 21 Adjust the array order so that odd numbers precede even numbers
- 关于我
- 例题 非线性整数规划
- Shutter: action feedback
- The construction of scalable distributed database cluster and the partition design of oneproxy sub database
猜你喜欢
Eye of depth (II) -- matrix and its basic operations
Sword finger offer 21 Adjust the array order so that odd numbers precede even numbers
LeetCode:1380. Lucky number in matrix -- simple
ThreadLocal
13、Darknet YOLO3
深度之眼(三)——矩阵的行列式
Connect Porsche and 3PL EDI cases
使用知行之桥的API端口,提供资源供合作伙伴访问
Believe in yourself and finish the JVM interview this time
TCP拥塞控制详解 | 2. 背景
随机推荐
Microservice architecture practice: Construction of scalable distributed database cluster
Séparateur JS3 de niuke
[shutter] dart data type (dynamic data type)
Flutter: 动作反馈
[web technology] 1233 seconds understand web component
Goodbye, shucang. Alibaba's data Lake construction strategy is really awesome!
【Leetcode】14. 最长公共前缀
[fluent] dart data type map type (create map set | initialize map set | traverse map set)
Green bamboo biological sprint Hong Kong stocks: loss of more than 500million during the year, tiger medicine and Beijing Yizhuang are shareholders
剑指 Offer 24. 反转链表
Meanings of SNAT, DNAT and masquerade in iptables
海思Hi3798MV100机顶盒芯片介绍[通俗易懂]
class和getClass()的区别
博客主题 “Text“ 夏日清新特别版
Microservice architecture practice: Construction of highly available distributed file system fastdfs architecture
绿竹生物冲刺港股:年期内亏损超5亿 泰格医药与北京亦庄是股东
【Leetcode】13. Roman numeral to integer
Shutter: action feedback
人生的开始
剑指 Offer 25. 合并两个排序的链表