当前位置:网站首页>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
边栏推荐
- type of timer
- The principle of hough transform detection of straight lines (opencv hough straight line detection)
- Precautions and solutions when SIGABRT error is reported
- Dialogue with Zhuang Biaowei: The first lesson of open source
- ML.NET相关资源整理
- form 表单提交后,使页面不跳转[通俗易懂]
- MySQL数据库操作
- Unity中实现点选RenderTexture中的3D模型
- TextBlock控件入门基础工具使用用法,取上法入门
- C language - function
猜你喜欢
6-22 Vulnerability exploit - postgresql database password cracking
TextBlock控件入门基础工具使用用法,取上法入门
【C语言】LeetCode27.移除元素
Graham‘s Scan法求解凸包问题
The new BMW 3 Series is on the market, with safety and comfort
深度学习机器学习理论及应用实战-必备知识点整理分享
i.MX6ULL驱动开发 | 33 - NXP原厂网络设备驱动浅读(LAN8720 PHY)
type of timer
border控件的使用
C language - function
随机推荐
jeecg master-slave database read-write separation configuration "recommended collection"
Foreign media right, apple on May be true in inventory
Replication Latency Case (1) - Eventual Consistency
ML.NET相关资源整理
Deployment application life cycle and Pod health check
字符串反转的实现方法总结「建议收藏」
2020 WeChat applet decompilation tutorial (can applet decompile source code be used)
数据库的范式(第一范式,第二范式,第三范式,BCNF范式)「建议收藏」
LevelSequence源码分析
radiobutton的使用
MySQL数据库操作
Summary of the implementation method of string inversion "recommended collection"
11 pinia使用
多主复制下处理写冲突(4)-多主复制拓扑
Linux check redis version (check mongodb version)
C程序是如何跑起来的01 —— 普通可执行文件的构成
t-sne 数据可视化网络中的部分参数+
长得很怪的箱图
SringMVC中个常见的几个问题
Matlab matrix basic operations (definition, operation)