Skip to content

Katapayadi sankhya is a simplification of Aryabhata's Sanskrit numerals, due probably to haridatta from Kerala.

Notifications You must be signed in to change notification settings

venkatapathy/katapayadi

 
 

Repository files navigation

LibIndic Katapayadi

Build Status Coverage Status

Katapayadi sankhya is a simplification of Aryabhata's Sanskrit numerals, due probably to Haridatta from Kerala. In Malayalam it is also known as 'Paralperu'. For eg: ചണ്ഡാംശുചന്ദ്രാധമകുംഭിപാല represents 31415926536 which is π*1000000000000000. More examples in Malayalam are given in this page

LibIndic's katapayadi module may be used to find out katapayadi number of a given string, as well as to get Swarasthanas of a Melakartha number.

Installation

  1. Clone the repository git clone https://github.com/libindic/katapayadi.git
  2. Change to the cloned directory cd katapayadi
  3. Run setup.py to create installable source python setup.py sdist
  4. Install using pip pip install dist/libindic-katapayadi*.tar.gz

Usage

>>> from libindic.katapayadi import Katapayadi
>>> instance = Katapayadi()
>>> instance.get_number(u"സത്യം")
17
>>> instance.get_swarasthanas(1)
['Sa', 'Ri1', 'Ga1', 'Ma1', 'Pa', 'Da1', 'Ni1', 'Sa']

For more details read the docs

About

Katapayadi sankhya is a simplification of Aryabhata's Sanskrit numerals, due probably to haridatta from Kerala.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 51.3%
  • Python 47.0%
  • Makefile 1.7%