Code Monkey home page Code Monkey logo

pycalc's Introduction

PyCalc

Build Status

A command line calculator written in Python.

Installation

PyCalc is not currently hosted on PyPi. For now, download the source and use pip or distutils to install. Example:

git clone https://github.com/Deedasmi/PyCalc.git
python setup.py install
# or pip install .

Usage

PyCalc may be used by importing (from pycalc import calc), or as a standalone program by using python -m pycalc

PyCalc supports standard operators (+-/*^%), as well as some alternate character []{}\

Additionally, you may define your own variables (foo = 21) and functions (foobar(foo, bar) = foo * bar) To access the variables, simply use the variable name in the function (foo * 2). Functions may currently only be used as a single statement(foobar(21, 2)).

pycalc's People

Contributors

deedasmi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

pycalc's Issues

Equation history

Would be neat to support a history of solved equations, similar to bash_history. Most likely will be part of calc_view.

Inline function calls

Should support functions calls inline with equations.

Example: 2 + test(2, 5) / 5

Fix equation validation

Currently using massive anti-pattern by modifying loop duration during the loop. Should be saving new values out to a separate list.

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.