diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /854/CH1/EX1.1 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '854/CH1/EX1.1')
-rwxr-xr-x | 854/CH1/EX1.1/Example1_1.sce | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/854/CH1/EX1.1/Example1_1.sce b/854/CH1/EX1.1/Example1_1.sce index 6a38da196..92c8631e0 100755 --- a/854/CH1/EX1.1/Example1_1.sce +++ b/854/CH1/EX1.1/Example1_1.sce @@ -1,10 +1,10 @@ -//clear//
-//Caption:Program to find the unit vector
-//Example1.1
-//page 8
-G = [2,-2,-1]; //position of point G in cartesian coordinate system
-aG = UnitVector(G);
-disp(aG,'Unit Vector aG =')
-//Result
-//Unit Vector aG =
-// 0.6666667 - 0.6666667 - 0.3333333
+//clear// +//Caption:Program to find the unit vector +//Example1.1 +//page 8 +G = [2,-2,-1]; //position of point G in cartesian coordinate system +aG = G/norm(G); +disp(aG,'Unit Vector aG =') +//Result +//Unit Vector aG = +// 0.6666667 - 0.6666667 - 0.3333333
\ No newline at end of file |