summaryrefslogtreecommitdiff
path: root/2915/CH1/EX1.8
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.8
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.8')
-rwxr-xr-x2915/CH1/EX1.8/1_8.JPGbin0 -> 9483 bytes
-rwxr-xr-x2915/CH1/EX1.8/Ex1_8.sce23
2 files changed, 23 insertions, 0 deletions
diff --git a/2915/CH1/EX1.8/1_8.JPG b/2915/CH1/EX1.8/1_8.JPG
new file mode 100755
index 000000000..1389ed8f5
--- /dev/null
+++ b/2915/CH1/EX1.8/1_8.JPG
Binary files differ
diff --git a/2915/CH1/EX1.8/Ex1_8.sce b/2915/CH1/EX1.8/Ex1_8.sce
new file mode 100755
index 000000000..acd2641df
--- /dev/null
+++ b/2915/CH1/EX1.8/Ex1_8.sce
@@ -0,0 +1,23 @@
+clc,clear
+//example 1.8
+//To find all trigonometric functions when sine functions is given
+
+sin_A=2/3 //given
+//since sine function is opposite/hypotenuse and
+//T-ratios are defined interms of ratio of sided of right triangle
+opposite=2;
+hypotenuse=3;
+BC = opposite;
+AB = hypotenuse;
+b = sqrt(hypotenuse^2- opposite^2) //by pythagoras theorem
+adjacent = b;
+
+cos_A = adjacent / hypotenuse;
+tan_A = opposite / adjacent;
+csc_A = hypotenuse/opposite;
+sec_A = hypotenuse/adjacent;
+cot_A = adjacent / opposite;
+
+printf('for ANGLE A')
+printf('\nsin(A)= %.4f ; cos(A)= %.4f; tan(A)= %.4f;\n',sin_A,cos_A,tan_A)
+printf('csc(A)= %.4f ; sec(A)= %.4f; cot(A)= %.4f;',csc_A,sec_A,cot_A)