GithubHelp home page GithubHelp logo

python-arithmetic's Introduction

python-arithmetic

Functional python calculator, written by me, Joseph Long in my spare time

Solves given expressions

eg.

(root 4 * 4)(3root (atan(3 * 3) ^ 2)) / pi

(keep in mind factors and operators must be separated by a space)

supported arithmetic

Follows order of operations

Brackets

Brackets are prioritized left to right

eg.

x * (y + z)

(keep in mind variables are not yet supported)

Brackets will multiply together with out multiplication operator

eg.

(x)(y)

(keep in mind variables are not yet supported)

Exponential

eg.

x ^ y

(keep in mind variables are not yet supported)

Roots

Use root to get the n^th root from the following number

eg.

2root x

  or
  
root2 x

Gets the 2nd root or square root from x

(keep in mind variables are not yet supported)

If the operator root is used without a following number it defaults to the second root or 2root/root2

eg.

root x

(keep in mind variables are not yet supported)

Multiplication

eg.

x * y

(keep in mind variables are not yet supported)

Division

eg.

x / y

(keep in mind variables are not yet supported)

Addition

eg.

x + y

(keep in mind variables are not yet supported)

Subtraction

eg.

x - y

(keep in mind variables are not yet supported)

Pi eg.

pi + y

(keep in mind variables are not yet supported)

Trigonometry

eg.

cos x

  or
  
tan x

  or
  
sin x

(keep in mind variables are not yet supported)

The inverse version of these operaters should be prefaced by an a

eg.

acos x

(keep in mind variables are not yet supported)

to be added maybe

step by step expression solving

variable support

maybe? formula solving

maybe? factoring

python-arithmetic's People

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.