Skip to content

rahulnadella/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator BSD License Build Status

A simple implementation of the calculator (mainly used to start learning python). The Calculator class contains the following methods -> add, subtract, multiply, divide, modulus, squared, cubed, power, sqrt, root, and abs.

###Usage

You will need to import the calculator module into your project.

import calculator

calculator.add(10, 3) -> 13
calculator.subtract(10, 3) -> 7
calculator.multiply(10, 3) -> 30
calculator.divide(10, 3) -> 3.3333333
calculator.modulus(10, 3) -> 1
calculator.squared(2) -> 4
calculator.cubed(2) -> 8
calculator.power(2, 5) -> 32
calculator.sqrt(4) -> 2
calculator.root(32, 5) -> 2
calculator.abs(-2) -> 2

###License

BSD License --> A short, permissive software license. Basically, you can do whatever you want as long as you include the original copyright and license notice in any copy of the software/source. There are many variations of this license in use.

About

A simple implementation of calculator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages