フィルターのクリア

Calculate length of a curve in 3d

1 回表示 (過去 30 日間)
Ema
Ema 2017 年 4 月 10 日
コメント済み: Torsten 2017 年 4 月 11 日
Ive ploted a rising spiral with the following code.
clear all
syms t real
ezplot3((sqrt(9)).*cos(9./2.*t), (sqrt(16)).*sin(9./2.*t),t./pi.*(9./2) ,'animate')
But i have a hard time trying to calculate the length of the curve up to z = 9. I know that i 2d i use the formula int(sqrt(1+(dx/dy)^2)) But how do i do this in 3d? What code do i use?
  1 件のコメント
Ema
Ema 2017 年 4 月 10 日
According to http://tutorial.math.lamar.edu/Classes/CalcIII/VectorArcLength.aspx i could use the formula int(sqrt x'^2+y'^2+z'^2, t , 0 , 2*pi) In other words , integral of the addition for the derivatives of x,y,z raised with the power of two.
But i get the following answer : "int((324*cos((9*t)/2)^2 + (729*sin((9*t)/2)^2)/4 + 81/(4*pi^2))^(1/2), t, 0, 2*pi)" that doesnt make sense. Shouldnt the t be calculated from 0 to 2pi?

サインインしてコメントする。

回答 (1 件)

Torsten
Torsten 2017 年 4 月 10 日
  2 件のコメント
Ema
Ema 2017 年 4 月 10 日
Ive tried it but dont get it solved. According to your site i could use the formula int(sqrt x'^2+y'^2+z'^2, t , 0 , 2*pi) In other words , integral of the addition for the derivatives of x,y,z raised with the power of two.
But i get the following answer : "int((324*cos((9*t)/2)^2 + (729*sin((9*t)/2)^2)/4 + 81/(4*pi^2))^(1/2), t, 0, 2*pi)" that doesnt make sense. Shouldnt the t be calculated from 0 to 2pi?
Torsten
Torsten 2017 年 4 月 11 日
f=@(t)sqrt((sqrt(9)*9/2*sin(9/2*t)).^2+(sqrt(16)*9/2*cos(9/2*t)).^2+(1/pi*9/2)^2);
value=integral(f,0,2*pi);
Best wishes
Torsten.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLinear Algebra についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by