Code covered by the BSD License

### Highlights from Wigner3j symbol

3.0
3.0 | 2 ratings Rate this file 10 Downloads (last 30 days) File Size: 2.01 KB File ID: #20619

# Wigner3j symbol

by

### Kobi (view profile)

09 Jul 2008 (Updated )

Wigner3j( J123, M123) calculates the Wigner 3j symbol.

File Information
Description

Wigner3j( J123, M123) calculates the Wigner 3j-symbol according to Racah formula.
The Wigner 3j symbol is useful for multiplication of Spherical Harmonics (and their generalizations) and for addition of angular momentum.
The are related to the Clebsch-Gordan coefficients by:
Wigner3j( J123, M123 ) = <J1,J2,M1,M2| J1,J2,J3,-M3> * (-1)^(J1-J2-M3) * (2*J3+1)^(-1/2).
This function is not limited to the factorial limitation (170), so it can be useful for any value of J.

Acknowledgements

Wigner3j.M inspired this file.

MATLAB release MATLAB 7.5 (R2007b)
18 Mar 2015 Amos

### Amos (view profile)

Does exactly what I need. Thanks!

09 Sep 2009 Barratt Park

### Barratt Park (view profile)

Instead of returning zero when the triangle rule abs(j1-j2)<=j3<=(j1+j2) or the projection addition rule m1+m2=m3, this program instead returns an error message. In my opinion this is not how a Three-J script should work, since many programers will want to apply a Three-J even in cases where it is trivially zero. The script should be modified to return zero when the Three-J is trivially equal to zero.

05 Nov 2008 Brice DUBOST

### Brice DUBOST (view profile)

Please replace "m3 does not match m1 + m2" and the triangle condition by returning 0 instead of an error message

Comment only
11 Aug 2008 Bruno Masiero

On line 35, to the check if m1+m2 = m3, you should use:

m1 + m2 - m3 ~= 0

cheers

Comment only