哪位大神能帮忙解决了这个问题啊 新手求帮助。

2 ビュー (過去 30 日間)
jemenot
jemenot 2022 年 11 月 19 日
回答済み: riwobe 2022 年 11 月 19 日
clear all
r = 5;
g = 9.8;
thetaC = pi/6;
thetaB = pi;
xb = r*(thetaB-sin(thetaB));
yb = r*(1-cos(thetaB));
xc = r*(thetaC-sin(thetaC));
yc = r*(1-cos(thetaC));
syms x
a = int((1-cos(x))/(cos(thetaC)-cos(x)),thetaC,thetaB);
t = sqrt(r/g)*a
B = [xb yb]
C = [xc yc]
运行之后 t = Inf;
理论来说 t 有值的,没有达到无穷大。

採用された回答

riwobe
riwobe 2022 年 11 月 19 日
clear;close all;
r = 5;
g = 9.8;
thetaC = pi/6;
thetaB = pi;
xb = r*(thetaB-sin(thetaB));
yb = r*(1-cos(thetaB));
xc = r*(thetaC-sin(thetaC));
yc = r*(1-cos(thetaC));
syms x
a=(1-cos(x))/(cos(thetaC)-cos(x));
a=matlabFunction(a);
a=quadgk(a,thetaC,thetaB)
t = sqrt(r/g)*a

その他の回答 (0 件)

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!