summaryrefslogtreecommitdiff
path: root/2915/CH1/EX1.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2915/CH1/EX1.5
downloadScilab-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/CH1/EX1.5')
-rwxr-xr-x2915/CH1/EX1.5/1_5.JPGbin0 -> 9555 bytes
-rwxr-xr-x2915/CH1/EX1.5/Ex1_5.sce33
2 files changed, 33 insertions, 0 deletions
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
--- /dev/null
+++ b/2915/CH1/EX1.5/1_5.JPG
Binary files 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)