Program to calculate the area between two parametric curves
Ältere Kommentare anzeigen
Can someone please provide help writing a program to calculate the area bounded by the following parametric equations:
Xfi(B) = -rg*[cos(B)+(B-Bo)*sin(B)], Yfi(B) = -rg*[sin(B)-(B-Bo)*cos(B)]
and
Xoo(B) = -rg*[cos(B)+(B+pi)*sin(B)]+cos(B)*rc, Yoo(B) = -rg([sin(B)-(B+pi)*cos(B)]+sin(B)*rc
The integral would be over a specified angle B to B+2*pi. Any help would be much appreciated. MATLAB novice.
Antworten (3)
bym
am 18 Feb. 2011
use your equations to get Xfi,Yfi,Xoo,Yoo using
B = 0:.1:2*pi
then use
a = trapz(Xfi,Yfi)-trapz(Xoo,Yoo)
to calculate the area. You can adjust the step size for the desired level of accuracy
rajesh
am 27 Apr. 2012
0 Stimmen
i want to find the area between two parametric equations between two contact points and i need the program to find out area please help me
rajesh
am 27 Apr. 2012
0 Stimmen
can we give any limits to the trapz function. i want to find the area between two points which are common to the two parametric equations..
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!