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 --- 3137/CH1/EX1.11/Ex1_11.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 3137/CH1/EX1.11/Ex1_11.sce (limited to '3137/CH1/EX1.11') diff --git a/3137/CH1/EX1.11/Ex1_11.sce b/3137/CH1/EX1.11/Ex1_11.sce new file mode 100755 index 000000000..3d5aed984 --- /dev/null +++ b/3137/CH1/EX1.11/Ex1_11.sce @@ -0,0 +1,15 @@ +//Initilization of variables +x=2 +y=-4 +z=1 +F=100 //N +//Calculation +thetax=x/sqrt(x^2+y^2+z^2) //radians +thetay=y/sqrt(x^2+y^2+z^2) //radians +thetaz=z/sqrt(x^2+y^2+z^2) //radians +P_x=F*thetax //N +P_y=F*thetay //N +P_z=F*thetaz //N +//Result +clc +printf('The vector P is:%fi%fj+%fk N',P_x,P_y,P_z) //N -- cgit