GithubHelp home page GithubHelp logo

brunograssano / reversepolishnotationcalculator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 211 KB

Ejercicio de redux de Técnicas de Diseño - FIUBA - 2C2021

HTML 8.56% TypeScript 84.66% CSS 5.59% JavaScript 1.19%
7510 fiuba

reversepolishnotationcalculator's Introduction

This project contains exercises for Técnicas de Diseño - UBA

Reverse Polish Notation Calculator Exercise

Reverse Polish notation, also known as Polish postfix notation or simply postfix notation, is a mathematical notation in which operators follow their operands

-- https://en.wikipedia.org/wiki/Reverse_Polish_notation

This calculator has a current number, a stack of previous numbers, and keys that modify them:

  • Number keys modify the current number in the usual way.
  • Operations act on the top elements of the stack, and return their result to the top of the stack.

With the following restrictions:

  • Numbers can have at most one decimal dot.
  • If an operation is performed while there is a number being input, the number is moved to the stack before performing the operation.
  • If an operation doesn't have enough arguments, it does nothing.
  • The "√" operation calculates the square root of the top item in the stack.
  • The "Σ" operation sums all items in the stack.
  • The "Undo" button reverts the last change that was not an undo.
  • The "Intro" operation moves the current number into the stack.

To run

  1. Install Node JS
    1. https://nodejs.org/en/
  2. Fork repository, add ayudantesTecnicas as member
  3. Run npm install
  4. Run npm start
  5. Go to http://localhost:3000 to see the calculator

Make changes to

  • onClick functions and their usage in src/components/Calculator.jsx
  • The files under src/state

reversepolishnotationcalculator's People

Contributors

brunograssano avatar agustincarames 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.