Find Clebsch-Gordan coefficients
Calculate Clebsch–Gordan coefficients
#!/usr/bin/env python from cg import ClebschGordan ClebschGordan.execute('myImage.png',0.5,0.5,'Default','Default')
this should create an image with the name myImage.png in working directory
For graphical frontend, open the terminal and type:
Calculate sum of all natural numbers from 1 to n using Carl Friedrich Guass[1777-1855, Germany] algorithm.
#!/usr/bin/env python from cg import german print german.sum(999)
To find GCD/GCF of two numbers by Euclid’s GCD algorithm.
#!/usr/bin/env python from cg import german print german.gcd(999, 56)
Install using PyPI:
pip install carlfg
pip uninstall carlfg
Source code at github.com/psachin/carlfg
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.