Giter Club home page Giter Club logo

vedicpy's Introduction

logo

pypi Documentation Status Python Versions License

A Python Package for Vedic Mathematics

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.

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.

How to use it

1. Installation

pip install vedicpy

2. Usage

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

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.

Directory Structure

│─── tests
|     │── __init__.py
|     └── test_module.py
│─── vedicpy
|     │── __init__.py
|     │── compliment.py
|     │── cube_cuberoot.py
|     │── divisibility.py
|     │── division.py
|     │── multiply.py
|     │── recurring.py
|     └── sq_sqrt.py
│─── .gitignore
│─── AUTHORS.rst 
│─── CONTRIBUTING.rst 
│─── HISTORY.rst 
│─── LICENSE
│─── MANIFEST.in
│─── README.rst
│─── setup.cfg
└─── setup.py

Contributions

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. For contributions please read the file CONTRIBUTING.RST

Authors

vedicpy's People

Contributors

utkarsh0702 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.