Program to calculate the area between two parametric curves
이전 댓글 표시
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.
답변 (3개)
bym
2011년 2월 18일
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
2012년 4월 27일
0 개 추천
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
2012년 4월 27일
0 개 추천
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..
카테고리
도움말 센터 및 File Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!