This preview shows page 1. Sign up to view the full content.
Unformatted text preview: area_of_triangle = r^2 * cos(theta/2) * sin(theta/2); %to get the area of the shaded region area_of_shaded_region = (area_of_sector) - (area_of_triangle); disp('area of shaded region in centimeters sqa'),disp(area_of_shaded_region); %calculate the percentage of the total area that the shaded region area %takes up disp('area of circle in centimeters square'),disp(total_area); percentage = (area_of_shaded_region / total_area) * 100; disp('percentage'),disp(percentage);...
View Full Document
This note was uploaded on 04/21/2010 for the course ENGINEERIN 87897 taught by Professor Noclue during the Spring '07 term at UC Davis.
- Spring '07