From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2915/CH4/EX4.13/4_13.JPG | Bin 0 -> 22972 bytes 2915/CH4/EX4.13/Ex4_13.sce | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 2915/CH4/EX4.13/4_13.JPG create mode 100755 2915/CH4/EX4.13/Ex4_13.sce (limited to '2915/CH4/EX4.13') diff --git a/2915/CH4/EX4.13/4_13.JPG b/2915/CH4/EX4.13/4_13.JPG new file mode 100755 index 000000000..df9c550ab Binary files /dev/null and b/2915/CH4/EX4.13/4_13.JPG differ diff --git a/2915/CH4/EX4.13/Ex4_13.sce b/2915/CH4/EX4.13/Ex4_13.sce new file mode 100755 index 000000000..a061e3fc0 --- /dev/null +++ b/2915/CH4/EX4.13/Ex4_13.sce @@ -0,0 +1,24 @@ +clc,clear +//Example 4.13 +//To determine area of intersection of 2 circles + +d=7 //distance between centres in cm +r1= 5 //radius of first circle in cm +r2= 4 //radius of second circle in cm + +//use law of cosines +cos_alpha=(d^2+ r1^2 - r2^2 ) /(2*d*r1) +cos_beeta=(d^2+ r2^2 - r1^2 ) /(2*d*r2) + +//from the geometry of the figure +//all the angles below are in radians +alpha= acos(cos_alpha) +beeta= acos(cos_beeta) +angle_BAC = alpha +angle_ABC = beeta +angle_CAD =2* angle_BAC +angle_CBD =2* angle_ABC + +//required area = area at segment CD in circle at A and at B +area_K = r1^2*(angle_CAD-sin(angle_CAD))/2 + r2^2*(angle_CBD-sin(angle_CBD))/2 +printf('Area of intersection of 2 circles = %.2f cm^2',area_K) -- cgit