Skip to main content

A Python Package for Vedic Mathematics

Project description

vedicpy

For humans, through regular mathematical steps, solving problems sometimes are complex and time-consuming. But using Vedic Mathematic’s General Techniques (applicable to all sets of given data) and Specific Techniques (applicable to specific sets of given data), numerical calculations can be done very fast.

This package is a python implementation of Vedic mathematical sutras. It uses the Vedic mathematics for performing basic mathematical operations like multiplication, division, square roots, cube roots etc.

This can be used to perform large multiplications and divisions. Though python does not have any restrictions on the size of integers, floats.

Since Vedic maths sutras work on individual digits in a number as opposed to the whole number, the implementation works slower on small digit numbers but works faster on larger digit numbers and some other operations like finding the square root or the cube root of a number.

Implementation

1. Installation

pip install vedicpy

2. Usage

import vedicpy as vedic
a= vedic.cube.cube_2digit_number(43)
print(a)

Available Functionalities

  • Vedic Multiplication
  • Vedic Division
  • Square
  • Square Root*
  • Cube
  • Cube Root*
  • Divisibility
  • Recurring fractions
  • Compliment

*Vedic Mathematics doesnot provide a way to caluclate square root and cube root accurately. So, if it says that the number is a perfect square or a perfect cube there is still some chance that it is not.

Project details


Download files

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

Source Distribution

vedicpy-0.1.0.tar.gz (9.3 kB view hashes)

Uploaded Source

Built Distribution

vedicpy-0.1.0-py2.py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page