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/CH3/EX3.8/Ex3_8.sce | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 2915/CH3/EX3.8/Ex3_8.sce (limited to '2915/CH3/EX3.8') 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) ; -- cgit