当前位置:网站首页>Small program: Matlab solves differential equations "recommended collection"
Small program: Matlab solves differential equations "recommended collection"
2022-07-31 15:57:00 【Full stack programmer webmaster】
Hello everyone, meet again, I'm your friend Quanstack Jun.function f = ball_trajectory(t, y);
g = 9.81; pi = 3.14159265; air_density = 1.20;
M = 57.5 * 0.001; D = 64.0 * 0.001; R = D * 0.5; A = pi * R * R;
Cd = 0.507; ratio_Cl_to_S = 0.58;
F=0.5*Cd*air_density*A/M; B=0.5*ratio_Cl_to_S*air_density*A*R/M;
V = sqrt(y(4) * y(4) + y(5) * y(5) + y(6) * y(6)); W = sqrt(y(7) * y(7) + y(8) * y(8) + y(9) * y(9));
f = zeros(9, 1);
f(1) = y(4); f(2) = y(5); f(3) = y(6);
f(4) = -1.0 * F * V * y(4) + B * (y(8) * y(6) – y(9) * y(5)); f(5) = -1.0 * F * V * y(5) + B * (y(9) * y(4) – y(7) * y(6)); f(6) = -1.0 * F * V * y(6) + B * (y(7) * y(5) – y(8) * y(4)) – g;
%f(7) = 0; %f(8) = 0; %f(9) = 0;
%f(7) = -10.0 * F * V * y(7); %f(8) = -10.0 * F * V * y(8); %f(9) = -10.0 * F *V * y(9);
f(7) = -0.2 * y(7); % 0.2 f(8) = -0.2 * y(8); % 0.2 f(9) = -0.2 * y(9); % 0.2
p>%f(7) = -0.2; %f(8) = -0.2;
%f(9) = -0.2;
%f(7) = 0; %f(8) = 0; %f(9) = 0;
%f(7) = -10.0 * F * V * y(7); %f(8) = -10.0 * F * V * y(8); %f(9) = -10.0 * F *V * y(9);
% dw/dt = 2.9 * 10^(-4) / R * V * w
f(7) = -2.9 * 10^(-4) * V * y(7); f(8) = -2.9 * 10^(-4) * V * y(8); f(9) = -2.9 * 10^(-4) * V * y(9);
%f(7) = -0.2; %f(8) = -0.2; %f(9) = -0.2;
Publisher: Full stack programmer, please indicate the source: https://javaforall.cn/127975.htmlOriginal link: https://javaforall.cn
边栏推荐
- MySQL multi-table union query
- Doing things software development - the importance of law and understanding of reasonable conclusions
- Unity中实现点选RenderTexture中的3D模型
- Implement anti-shake and throttling functions
- Delete table data or clear table
- json到底是什么(c# json)
- 单细胞测序流程(单细胞rna测序)
- JVM参数解析 Xmx、Xms、Xmn、NewRatio、SurvivorRatio、PermSize、PrintGC「建议收藏」
- Kubernetes常用命令
- org.apache.jasperException(could not initialize class org)
猜你喜欢
【C语言】LeetCode27.移除元素
腾讯云部署----DevOps
After Grafana is installed, the web opens and reports an error
对话庄表伟:开源第一课
Why is the field of hacking almost filled with boys?
C程序是如何跑起来的01 —— 普通可执行文件的构成
T - sne + data visualization parts of the network parameters
OPPO在FaaS领域的探索与思考
Unity 之 图集属性详解和代码示例 -- 拓展一键自动打包图集工具
Grafana安装后web打开报错
随机推荐
11 pinia使用
vb中如何连接mysql_vb怎么连接数据库「建议收藏」
MySQL数据库操作
t-sne 数据可视化网络中的部分参数+
第05章 存储引擎【1.MySQL架构篇】【MySQL高级】
【TypeScript】深入学习TypeScript类型操作
Doing things software development - the importance of law and understanding of reasonable conclusions
.NET 20周年专访 - 张善友:.NET 技术是如何赋能并改变世界的
EF Core 2.2中将ORM框架生成的SQL语句输出到控制台
7. Summary of common interview questions
MySQL的相关问题
Delete the disk in good condition (recovery partition)
npm安装时卡在sill idealTree buildDeps,npm安装速度慢,npm安装卡在一个地方不动
Oracle动态注册非1521端口
ML.NET related resources
小程序:matlab解微分方程「建议收藏」
update data table update
BGP综合实验(建立对等体、路由反射器、联邦、路由宣告及聚合)
软件实现AT命令操作过程
After Grafana is installed, the web opens and reports an error