No BSD License
-
GUI(varargin)
-
buildconvtbl_c( Jmax )
BUILDCONVTBL_C generates J from Jmax and M from J
-
buildconvtbl_r( j1, j2 )
BUILDCONVTBL_R contains j1, j2 to M conversion info
-
calcallcgcoef( j1, j2 )
CALCCGCOEF : calculate clebisch-gordon coefficients
-
cgcoeff_stage2( J, init_rhs_i...
-
coef_jminus( j, m )
JMINUS coefficient of jminus
-
coef_jplus( j, m )
JMINUS coefficient of jminus
-
disprecord( alhs, arhs, coeff...
DISPRECORD outputs the inner product notation and coefficients
-
findinitindex( j1, j2, M )
FINDINITINDEX find a rhs indices which is non-zero
-
findrecord( M, r )
FINDINDEX: find indices which matches the row
-
locateindex( M, m)
ISELEMENTUNIQUE checks if matrix is unique defined by tuple of 4 elements
-
op_jminus( parent_i, parent_c...
OP_JMINUS for a given parent, create children based on opjminus.
-
op_jplus( parent_i, parent_c )
OP_JPLUS for a given parent, create children based on opjminus.
-
record2str( alhs, arhs, coeff...
RECORD2STR Summary of this function goes here
-
searchbycol( M, col )
SEARCHBYCOL find a row in a matrix. Matrix must be two dimension
-
searchbyrow( M, row )
SEARCHROW find a row in a matrix. Matrix must be two dimension
-
solveinitcoef( init_i )
SOLVEINITCOEF initial indices and coefficients
-
CH3Q6c.m
-
GUI_MAIN.m
-
GUI_UPDATERADIOS.m
-
TEST_SSCANF.m
-
View all files
from
Clebsch Gordan Coefficient Solver GUI
by james jun
Easy to use Clebsch-Gordan coefficient solver for adding two angular momentums.
|
| op_jminus( parent_i, parent_c ) |
function [ children_i, children_c ] = op_jminus( parent_i, parent_c )
%OP_JMINUS for a given parent, create children based on opjminus.
% if index is out of range, stop creating children and this result in 1
% children. normally if the lowering operation doesn't end at the boundary
% number of chidren will be 2
%in
% parent_i: [j1 m1 j2 m2]
% parent_c: coefficient for parent index, sym type
%out
% children_i: 2x4 or 1x4 matrix
% children_c: 2x1 or 1x1 matrix
j1 = parent_i(1);
m1 = parent_i(2);
j2 = parent_i(3);
m2 = parent_i(4);
children_i = [];
children_c = [];
if double(m1-1) >= -double(j1)
children_i = [j1 m1-1 j2 m2];
children_c = parent_c * coef_jminus(j1, m1);
end
if double(m2-1) >= -double(j2)
children_i = [children_i; [j1 m1 j2 m2-1]];
children_c = [children_c; parent_c * coef_jminus(j2, m2)];
end
|
|
Contact us at files@mathworks.com