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/CH1/EX1.5/1_5.JPG | Bin 0 -> 9555 bytes 2915/CH1/EX1.5/Ex1_5.sce | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100755 2915/CH1/EX1.5/1_5.JPG create mode 100755 2915/CH1/EX1.5/Ex1_5.sce (limited to '2915/CH1/EX1.5') diff --git a/2915/CH1/EX1.5/1_5.JPG b/2915/CH1/EX1.5/1_5.JPG new file mode 100755 index 000000000..1e37a2000 Binary files /dev/null and b/2915/CH1/EX1.5/1_5.JPG differ diff --git a/2915/CH1/EX1.5/Ex1_5.sce b/2915/CH1/EX1.5/Ex1_5.sce new file mode 100755 index 000000000..eac10f321 --- /dev/null +++ b/2915/CH1/EX1.5/Ex1_5.sce @@ -0,0 +1,33 @@ +clc,clear +//example 1.5 +//To find values of all trigonometric functions for angles A and B + +//Angle at vertex A +opposite = 3; +adjacent = 4; +hypotenuse=5; + +sin_A = opposite / hypotenuse; +cos_A = adjacent / hypotenuse; +tan_A = opposite / adjacent; +csc_A = hypotenuse/opposite; +sec_A = hypotenuse/adjacent; +cot_A = adjacent / opposite; +printf('ANGLE A') +printf('\nsin(A)= %.1f ; cos(A)= %.2f; tan(A)= %.2f;\n',sin_A,cos_A,tan_A) +printf('csc(A)= %.3f ; sec(A)= %.2f; cot(A)= %.2f;',csc_A,sec_A,cot_A) + +//Angle at vertex B +opposite = 4; +adjacent = 3; +hypotenuse=5; + +sin_B = opposite / hypotenuse; +cos_B = adjacent / hypotenuse; +tan_B = opposite / adjacent; +csc_B = hypotenuse/opposite; +sec_B = hypotenuse/adjacent; +cot_B = adjacent / opposite; +printf('\n\nANGLE B') +printf('\nsin(B)= %.1f ; cos(B)= %.2f; tan(B)= %.2f;\n',sin_B,cos_B,tan_B) +printf('csc(B)= %.2f ; sec(B)= %.2f; cot(B)= %.2f;',csc_B,sec_B,cot_B) -- cgit