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 --- 42/CH1/EX1.3/sadiku_1_3.sce | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 42/CH1/EX1.3/sadiku_1_3.sce (limited to '42/CH1/EX1.3/sadiku_1_3.sce') diff --git a/42/CH1/EX1.3/sadiku_1_3.sce b/42/CH1/EX1.3/sadiku_1_3.sce new file mode 100755 index 000000000..7c24e6765 --- /dev/null +++ b/42/CH1/EX1.3/sadiku_1_3.sce @@ -0,0 +1,9 @@ +format ('v',6); +vb= [10*cos(%pi/4), -10*sin(%pi/4)] +vm= [-2*cos(%pi/4), -2*sin(%pi/4)] +vmg= vb+vm; +disp (vmg, 'Velocity of man with respect to ground:') +mod_vmg=(vmg(1,1)^2+vmg(1,2)^2)^.5; +dir= atand(vmg(1,2)/vmg(1,1)) +disp( mod_vmg,'Absolute velocity of man is:' ) +disp (dir,'Angle with east in radian:') \ No newline at end of file -- cgit