Skip to main content

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

Project description

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

Project details


Release history Release notifications

History Node

0.32

This version
History Node

0.31

History Node

0.3

History Node

0.2.2

History Node

0.2.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
carlfg-0.31.tar.gz (7.0 kB) Copy SHA256 hash SHA256 Source None Aug 17, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page