Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
回复
 
主题工具 显示模式
旧 2011-02-13, 12:19   #1
Heavene23
初级会员
 
注册日期: 2011-02-13
帖子: 1
声望力: 0
Heavene23 正向着好的方向发展
默认 帮忙运行一下,我的2009b版本老不行,非常感谢!

求速度vv最大时(此时角度e=90°),a与b的关系,
clc;clear;
syms a b e o p g m H1 H2 v u V0

o=atan(b/a*sqrt(tan(e)));%o和e是角度
pretty(o)
%p=1/(a*b/(a*a*(sin(o))^2+b*b*(cos(o))^2)^1.5);
p=1/(a*b/(a*a*(sin(atan(b/a*sqrt(tan(e)))))^2+b*b*(cos(atan(b/a*sqrt(tan(e)))))^2)^1.5)
pretty(p)

vv=dsolve('g*(cos(e)-u*sin(e))-(H1/m*v+H2/m*v*v)-u*v*v/p=v/p*Dv','v(0)=V0','e');
%vv=dsolve('Dv=p*g *(cos(e)-u*sin(e))-v*u','v(0)=V0','e');
%pretty(vv)
f=inline(vv,'e')
vab=f(pi/2);
dva=diff(vab,a);
a=solve(dva);
pretty(a)
计算结果是
Warning: Explicit solution could not be found.
> In dsolve at 101
In quxian at 19

f =

Inline function:
f(e) = []

Warning: List of equations is empty.
> In solve at 70
In quxian at 25

+--+
+--+
Heavene23 当前离线   回复时引用此帖
旧 2012-09-27, 09:32   #2
独轩居士
初级会员
 
注册日期: 2009-10-11
住址: 天津
帖子: 8
声望力: 0
独轩居士 正向着好的方向发展
默认 回复: 帮忙运行一下,我的2009b版本老不行,非常感谢!

/ 1/2 \
| b tan(e) |
atan| ----------- |
\ a /

p =

(b^2/((b^2*tan(e))/a^2 + 1) + (b^2*tan(e))/((b^2*tan(e))/a^2 + 1))^(3/2)/(a*b)


3
-
/ 2 2 \2
| b b tan(e) |
| ------------- + ------------- |
| 2 2 |
| b tan(e) b tan(e) |
| --------- + 1 --------- + 1 |
| 2 2 |
\ a a /
----------------------------------
a b
Warning: Explicit solution could not be found.
> In dsolve at 101

f =

Inline function:
f(e) = []

Warning: List of equations is empty.
> In solve at 70

+--+
独轩居士 当前离线   回复时引用此帖
回复


发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码



所有时间均为北京时间。现在的时间是 09:17


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.