-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnormal_joint.mac
More file actions
54 lines (38 loc) · 781 Bytes
/
normal_joint.mac
File metadata and controls
54 lines (38 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
stardisp:true;
batch("caams.mac");
p1 : matrix(
[p1_0],
[p1_1],
[p1_2],
[p1_3]);
p2 : matrix(
[p2_0],
[p2_1],
[p2_2],
[p2_3]);
s1_p : matrix(
[s1_px],
[s1_py],
[s1_pz]);
s2_p : matrix(
[s2_px],
[s2_py],
[s2_pz]);
s1 : G(p1) . transpose(L(p1)) . s1_p;
s2 : matrix(
[s2x],
[s2y],
[s2z]);
PHI : transpose(s1) . s2;
C1:2.0*(G(p1) . a_minus(s1_p) + s1_p.transpose(p1));
Jacobian1:transpose(s2).C1;
dp1 : matrix(
[dp1_0],
[dp1_1],
[dp1_2],
[dp1_3]);
/*dPHI : diff(PHI,p1_0)*dp1_0 + diff(PHI,p1_1)*dp1_1
+ diff(PHI,p1_2)*dp1_2 + diff(PHI,p1_3)*dp1_3;*/
dPHI : Jacobian1 . dp1;
GAMMA : diff(dPHI,p1_0)*dp1_0 + diff(dPHI,p1_1)*dp1_1
+ diff(dPHI,p1_2)*dp1_2 + diff(dPHI,p1_3)*dp1_3;