summaryrefslogtreecommitdiff
path: root/2915/CH3
diff options
context:
space:
mode:
Diffstat (limited to '2915/CH3')
-rwxr-xr-x2915/CH3/EX3.8/Ex3_8.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/2915/CH3/EX3.8/Ex3_8.sce b/2915/CH3/EX3.8/Ex3_8.sce
new file mode 100755
index 000000000..b1b28b100
--- /dev/null
+++ b/2915/CH3/EX3.8/Ex3_8.sce
@@ -0,0 +1,18 @@
+clc,clear
+//Example 3.8
+//To determine values of functions of sum of 2 angles when functions of 2 angles are given
+
+sin_A = 4/5 ;
+cos_A = 3/5 ;
+
+sin_B = 12/13 ;
+cos_B = 5/13 ;
+
+//Apb refers to A plus B
+sin_ApB = sin_A*cos_B + cos_A*sin_B ;
+cos_ApB = cos_A*cos_B - sin_A*sin_B ;
+tan_ApB = sin_ApB / cos_ApB ;
+
+printf('sin(A+B) = %f\n',sin_ApB) ;
+printf('cos(A+B) = %f\n',cos_ApB) ;
+printf('tan(A+B) = %f\n',tan_ApB) ;