https://github.com/adamouization/srpn

:heavy_plus_sign: :heavy_minus_sign: :heavy_multiplication_x: :heavy_division_sign: Reverse Polish Notation Calculator (2015)

https://github.com/adamouization/srpn

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.5%) to scientific vocabulary

Keywords

calculator java reverse-polish-notation
Last synced: 7 months ago · JSON representation

Repository

:heavy_plus_sign: :heavy_minus_sign: :heavy_multiplication_x: :heavy_division_sign: Reverse Polish Notation Calculator (2015)

Basic Info
  • Host: GitHub
  • Owner: Adamouization
  • Language: Java
  • Default Branch: master
  • Homepage:
  • Size: 47.9 KB
Statistics
  • Stars: 1
  • Watchers: 3
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
calculator java reverse-polish-notation
Created over 9 years ago · Last pushed almost 8 years ago
Metadata Files
Readme

README.md

SRPN (Reverse Polish Notation Calculator)

This program is a Reverse Polish Notation Calculator written in Java.

Screenshot

screenshot

Instructions

In reverse Polish notation, the operators follow their operands; for instance, to add 3 and 4, one would write 3 4 + rather than 3 + 4.

If there are multiple operations, operators are given immediately after their second operands; so the expression written 3 − 4 + 5 in conventional notation would be written 3 4 − 5 + in reverse Polish notation: 4 is first subtracted from 3, then 5 is added to it.

An advantage of reverse Polish notation is that it removes the need for parentheses that are required by infix notation. While 3 − 4 × 5 can also be written 3 − (4 × 5), that means something quite different from (3 − 4) × 5. In reverse Polish notation, the former could be written 3 4 5 × −, which unambiguously means 3 (4 5 ×) − which reduces to 3 20 −; the latter could be written 3 4 − 5 × (or 5 3 4 − ×, if keeping similar formatting), which unambiguously means (3 4 −) 5 ×.

(from Wikipedia)

Installation

  1. Clone the project: git clone https://github.com/Adamouization/SRPN

  2. Cd into the directory and compile the files, then run the source code:

cd SRPN javac SRPN.java java SRPN.java

Contact

  • email: adam@jaamour.com
  • website: www.adam.jaamour.com
  • twitter: @Adamouization

Owner

  • Name: Adam Jaamour
  • Login: Adamouization
  • Kind: user
  • Location: United Kingdom
  • Company: @NewDayTechnology

💻 Data Scientist @NewDayTechnology 🧠 MSc AI @ Uni of St Andrews 📓 BSc Computer Science @ Uni of Bath 💼 Former SWE @ Scuderia Alpha Tauri F1 Team

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels