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 /24/CH3/EX3.5/Example3_5.sce | |
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 '24/CH3/EX3.5/Example3_5.sce')
-rwxr-xr-x | 24/CH3/EX3.5/Example3_5.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/24/CH3/EX3.5/Example3_5.sce b/24/CH3/EX3.5/Example3_5.sce new file mode 100755 index 000000000..9fc0245a5 --- /dev/null +++ b/24/CH3/EX3.5/Example3_5.sce @@ -0,0 +1,17 @@ +exec("degree_rad.sci",-1)
+
+//Given that
+a = [36,0] //in km
+c = [25 *cos(dtor(135)), 25 *sin(dtor(135))] //in km
+d_mag = 62 //in km
+
+//Sample Problem 3-5
+printf("**Sample Problem 3-5**\n")
+//we have a + b + c = d
+//therefore ax = bx + cx + dx
+// bx = 0
+d_x = a(1) + c(1)
+d_y = d_mag * sqrt(1 - (d_x/d_mag)^2)
+d = [d_x, d_y]
+b = d(2) - a(2) - c(2)
+printf("The magnitude of b is equal to %f km", b)
\ No newline at end of file |