Program to calculate the area between two parametric curves
Show older comments
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.
Answers (3)
bym
on 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
on 27 Apr 2012
0 votes
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
on 27 Apr 2012
0 votes
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..
Categories
Find more on Numerical Integration and Differentiation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!