summaryrefslogtreecommitdiff
path: root/2915/CH4/EX4.13
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2915/CH4/EX4.13
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2915/CH4/EX4.13')
-rwxr-xr-x2915/CH4/EX4.13/4_13.JPGbin0 -> 22972 bytes
-rwxr-xr-x2915/CH4/EX4.13/Ex4_13.sce24
2 files changed, 24 insertions, 0 deletions
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
--- /dev/null
+++ b/2915/CH4/EX4.13/4_13.JPG
Binary files 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)