summaryrefslogtreecommitdiff
path: root/2915/CH3/EX3.8/Ex3_8.sce
blob: b1b28b10034a405e27afff332b4a8c0e630143c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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) ;