mounirbenzi / rpn-2.0 Goto Github PK
View Code? Open in Web Editor NEWHandles big ints and rational numbers
Handles big ints and rational numbers
Description: This is a Reverse Polish Notation Calculator, which is capable of basic arithmetic: addition, subtraction, multiplication and division. The calculator also handles big integers, and now also rational numbers. Users should enter operands and operators, making sure no illegal operators have been entered. Allowed operators are (+ , -, x, /) The correct number of operators should be used according to how many operands have been entered. It should be noted that there is a maximum of 10 operands. Usage: This program can be executed from the command line, using the line: $ ./rpn.exe operands... operators For example, basic addition would be carried out as such: $ ./rpn.exe 1 1 1 + + 3 To demonstrate subtraction: $ ./rpn.exe 8 6 1 - - 3 This can be slightly confusing, but this operation works as 8 - (6-1) The multiplication operator is x $ ./rpn.exe 5 6 1 x x 30 Program can handle rational numbers, and simplifies $ ./rpn.exe 14 3 / 7/3 $ ./rpn.exe 7 0 / Zero division in 7 / 0 Program can handle values outside the range of int $./rpn.exe 10000000000000000000 100000000000000000 / 100 It is also possible to see the version of the program, using: $ ./rpn.exe --version The usage of the program can also be shown by running $ ./rpn.exe --usage Implementation: All of the functions for the operators, the stack and error checking functions have been implemented and are working. Along with the rational numbers and bigint data types.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.