summaryrefslogtreecommitdiff
path: root/854/CH1/EX1.1
diff options
context:
space:
mode:
Diffstat (limited to '854/CH1/EX1.1')
-rwxr-xr-x854/CH1/EX1.1/Example1_1.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/854/CH1/EX1.1/Example1_1.sce b/854/CH1/EX1.1/Example1_1.sce
new file mode 100755
index 000000000..6a38da196
--- /dev/null
+++ b/854/CH1/EX1.1/Example1_1.sce
@@ -0,0 +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