diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2915/CH1/EX1.8 | |
download | Scilab-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-x | 2915/CH1/EX1.8/1_8.JPG | bin | 0 -> 9483 bytes | |||
-rwxr-xr-x | 2915/CH1/EX1.8/Ex1_8.sce | 23 |
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 Binary files differnew file mode 100755 index 000000000..1389ed8f5 --- /dev/null +++ b/2915/CH1/EX1.8/1_8.JPG 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)
|