From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 24/CH3/EX3.5/Example3_5.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 24/CH3/EX3.5/Example3_5.sce (limited to '24/CH3/EX3.5/Example3_5.sce') 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 -- cgit