summaryrefslogtreecommitdiff
path: root/75/CH7/EX7.1/ex_1.sce
blob: 7bc1aa63a61a249c03662f01a1ba0b3894575f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
        //    PG (470)

u1 = [1/2,sqrt(3)/2]
u2 = [-sqrt(3)/2,1/2]

//    For a given vector x = (x1,x2), it can be written as
//                    x = alpha1*u1 + alpha2*u2
//    alpha1 = (x1+x2*sqrt(3))/2
//    alpha2 = (x2-x1*sqrt(3))/2

//    (1,0) = (1/2)*u1 - (sqrt(3)/2)*u2