finding lengths of an ellipse
Show older comments
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 Comments
David Wilson
on 18 Apr 2019
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
on 18 Apr 2019
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!