Giter Club home page Giter Club logo

equation-evaluator's Introduction

Equation Evaluator – Documentation

This web app supports evaluations of arithmetic expressions.

Language

Python 3

Required packages

Running the app

  1. Create a Python 3 virtual environment
  2. Install the packages listed above
  3. Clone this repository into your local directory
  4. Within this repository, execute flask run in the command line
  5. Open your browser, and view this web app at your local port http://127.0.0.1:5000

User guide

This app support two modes of evaluating arithmetic expressions – direct type-in and file upload.

Direct type-in

In the upper part of the app, you will see a textbox, an equal sign, and a submit button. Type your arithmetic expression (e.g. 3*53/2) in the textbox, and press submit. The evaluation result (in this case, 79.2) will pop up on the right hand side of the equal sign. Invalid expressions will result in N/A.

File upload

In the bottom part of the app, one can upload a .txt file that lists multiple arithmetic expressions to be evaluated. An example file including 4 expressions is:

1+6
4*9
100.3 - 324.8
4/3

Note that only files with extension of .txt will be accepted. Once the file is selected, press upload. Then a message will be prompted at the bottom like this:

Press here to download a csv file containing the evaluation result, which, if you open it with a common spreadsheet engine, will look like this:

equation-evaluator's People

Contributors

bkchang avatar

Watchers

 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.