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 /1076/CH16/EX16.19 | |
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 '1076/CH16/EX16.19')
-rwxr-xr-x | 1076/CH16/EX16.19/16_19.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/1076/CH16/EX16.19/16_19.sce b/1076/CH16/EX16.19/16_19.sce new file mode 100755 index 000000000..af0c830d0 --- /dev/null +++ b/1076/CH16/EX16.19/16_19.sce @@ -0,0 +1,19 @@ +clear
+clc
+
+ab=1000
+bc=900
+ac=600
+
+A=500
+B=750
+C=450
+
+theta=acos((ab^2 + ac^2 - bc^2)/(2*ac*ab))
+am=ac * cos(theta)
+cm=ac * sin(theta)
+
+x= ((B*ab)+(C*am))/(A+B+C)
+y= ((C*cm))/(A+B+C)
+
+mprintf("Coordinates wrt A are (%.2f, %.0f)", x,y)
|