finding lengths of an ellipse
古いコメントを表示
I have to find the lengths of an ellipse which is given by y = cost and x = 5 sint. Evaluate the length from t1=0 to the following points,
t2=[0.5,1,1.5,2,2.5,3,3.5,4,4.5,5,5.5,6]. Have to use one of the methods, trapezoidal, midpoint or simpson's to two digit accuracy. How do i write a script from 0 to 0.5, 0 to 1, 0 to 1.5 etc ( from 0 to each point) to get 12 values for the lengths.
2 件のコメント
David Wilson
2019 年 4 月 18 日
See one of the many solutions, such as:
By the way, are you sure you have your parametric equation the right way around? It is typical to have it
, that is the sine is connected to y, and the cosine with x. Nothing wrong with your specification, just unusual.
, that is the sine is connected to y, and the cosine with x. Nothing wrong with your specification, just unusual.
PB
2019 年 4 月 18 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
