finding lengths of an ellipse
Ältere Kommentare anzeigen
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 Kommentare
David Wilson
am 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
am 18 Apr. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
