summaryrefslogtreecommitdiff
path: root/854/CH1/EX1.1/Example1_1.sce
blob: 6a38da19631b2ed5b85a4d34c2f5d472c01ceceb (plain)
1
2
3
4
5
6
7
8
9
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