nothing appears with this code

1 次查看(过去 30 天)
syms t;
x(t) = sin(3*t^2)*(12*t + (10*13^(1/2))/13);
y(t) = t*(6*13^(1/2)*t + 5);
z(t) = cos(3*t^2)*(12*t + (10*13^(1/2))/13);
%Length of the curve - Arc Length
speed(t) = sqrt(diff(x(t),t)^2 + diff(y(t),t)^2 + diff(z(t),t)^2);
speedsim(t) = prod(sqrt(factor(simplify(expand(speed(t)^2)))));
int(speed(t),t, 0, 2*pi);
I'm trying to find Arc Length in numerical value, but it doesn't work. Nothing appears when I click start button. Also, I don't know what to add to get numerical value because it seems like it would appear just a formula.

采纳的回答

Star Strider
Star Strider 2020-3-8
Use vpaintegral instead of int:
syms t;
x(t) = sin(3*t^2)*(12*t + (10*13^(1/2))/13);
y(t) = t*(6*13^(1/2)*t + 5);
z(t) = cos(3*t^2)*(12*t + (10*13^(1/2))/13);
%Length of the curve - Arc Length
speed(t) = sqrt(diff(x(t),t)^2 + diff(y(t),t)^2 + diff(z(t),t)^2);
speedsim(t) = prod(sqrt(factor(simplify(expand(speed(t)^2)))));
AL = vpaintegral(speed,t, 0, 2*pi)
producing:
AL =
6363.37

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Spectral Estimation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by