diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2915/CH3/EX3.8 | |
download | Scilab-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/CH3/EX3.8')
-rwxr-xr-x | 2915/CH3/EX3.8/Ex3_8.sce | 18 |
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) ;
|