Difference between revisions of "Euler sup.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Add missing Version/authors metadata and remove raw author emails)
m (Normalise preformatted blank lines in function documentation blocks)
Line 11: Line 11:
 
  rot_one  - first Euler angle set [alpha beta gamma],
 
  rot_one  - first Euler angle set [alpha beta gamma],
 
                 radians, ZYZ active convention
 
                 radians, ZYZ active convention
−
 
+
 
     rot_two  - second Euler angle set [alpha beta gamma],
 
     rot_two  - second Euler angle set [alpha beta gamma],
 
                 radians, ZYZ active convention
 
                 radians, ZYZ active convention
Line 19: Line 19:
 
  rot_cmp  - row vector [alpha beta gamma] of the
 
  rot_cmp  - row vector [alpha beta gamma] of the
 
                 composite rotation, radians
 
                 composite rotation, radians
−
 
+
 
  Note: rotations are applied in the supplied order
 
  Note: rotations are applied in the supplied order
−
 
+
 
                 v_rot=R_two*R_one*v
 
                 v_rot=R_two*R_one*v
−
 
+
 
       therefore the composite matrix is
 
       therefore the composite matrix is
−
 
+
 
                 R_comp=R_two*R_one
 
                 R_comp=R_two*R_one
  

Revision as of 17:40, 5 June 2026


Superposition of ZYZ active Euler rotations.

Syntax

rot_cmp=euler_sup(rot_one,rot_two)

Arguments

rot_one   - first Euler angle set [alpha beta gamma],
               radians, ZYZ active convention

   rot_two   - second Euler angle set [alpha beta gamma],
               radians, ZYZ active convention

Outputs

rot_cmp   - row vector [alpha beta gamma] of the
               composite rotation, radians

Note: rotations are applied in the supplied order

                v_rot=R_two*R_one*v

      therefore the composite matrix is

                R_comp=R_two*R_one


See also

euler2dcm.m, dcm2euler.m, dcm2wigner.m, Rotations

Version 2.11, authors: Ilya Kuprov