skip to navigation
skip to content

Not Logged In

carlfg 0.31

find CG coefficients, find the sum of all natural numbers from 1 to n

clebg

Calculate Clebsch–Gordan coefficients

Typical usage:

#!/usr/bin/env python

from cg import ClebschGordan
ClebschGordan.execute('myImage.png',0.5,0.5,'Default','Default')

this will create an image(myImage.png) in working directory

for graphical frontend, open the terminal and type:

clebg

cg

Calculate sum of all natural numbers from 1 to n using Carl Friedrich Guass[1777-1855, Germany] algo

Typical usage:

#!/usr/bin/env python

from cg import german
print german.sum(999)

gcd

To find GCD/GCF of two numbers by Euclid’s GCD algorithm

Typical usage:

#!/usr/bin/env python

from cg import german
print german.gcd(999, 56)

Installation

Install using PyPI:

pip install carlfg

to uninstall:

pip uninstall carlfg

source code at github.com/psachin/carlfg

 
File Type Py Version Uploaded on Size
carlfg-0.31.tar.gz (md5) Source 2013-08-17 6KB
  • Downloads (All Versions):
  • 59 downloads in the last day
  • 300 downloads in the last week
  • 819 downloads in the last month