All Projects → simonsolnes → rpn

simonsolnes / rpn

Licence: GPL-3.0 license
Command-Line RPN Calculator

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to rpn

SwiftUICalculator
A calculator app using SwiftUI which is introduced in WWDC19
Stars: ✭ 33 (+50%)
Mutual labels:  calculator
calculator
Calculator app designed for elementary OS
Stars: ✭ 73 (+231.82%)
Mutual labels:  calculator
N-Matrix-Programmer
A software to write an optimized code that calculates inverse and determinant of N by N matrix.
Stars: ✭ 35 (+59.09%)
Mutual labels:  calculator
Sm4sh-Calculator
Web based Smash 4 knockback calculator
Stars: ✭ 12 (-45.45%)
Mutual labels:  calculator
DevHelpBox
we are creating this community so that other developers can get benefits of it.
Stars: ✭ 35 (+59.09%)
Mutual labels:  calculator
calculator
C++ operator precedence parser
Stars: ✭ 73 (+231.82%)
Mutual labels:  calculator
asm-docs
Documentation about native assembly programming on the TI CE calculators (84+CE / 83PCE)
Stars: ✭ 41 (+86.36%)
Mutual labels:  calculator
bitcointaxer
Crypto-TAX Gain/Loss Calculator
Stars: ✭ 33 (+50%)
Mutual labels:  calculator
nano-id-cc
Nano ID collision calculator
Stars: ✭ 31 (+40.91%)
Mutual labels:  calculator
rsc
A handwritten scientific calculator for interpreting equations.
Stars: ✭ 32 (+45.45%)
Mutual labels:  calculator
Love-Calculator
Let's Calculate love with real data. Love Calculator by Mohammed Cha
Stars: ✭ 54 (+145.45%)
Mutual labels:  calculator
shellmath
Yes, Virginia, you can do floating-point arithmetic in Bash!
Stars: ✭ 33 (+50%)
Mutual labels:  calculator
Atosym
algebraic expressions parsing and evaluation through a property system based algorithm
Stars: ✭ 15 (-31.82%)
Mutual labels:  calculator
uniswapv3-calculator
An all-in-one platform for Uniswap liquidity providers (prev Uniswap Calculator)
Stars: ✭ 131 (+495.45%)
Mutual labels:  calculator
glGraph
A 2d Graphing Calculator written in C++ using Modern OpenGL
Stars: ✭ 15 (-31.82%)
Mutual labels:  calculator
availability-calculator
Calculate how much downtime should be permitted in your Service Level Agreement or Objective
Stars: ✭ 60 (+172.73%)
Mutual labels:  calculator
cvss
CVSS (Common Vulnerability Scoring System) Calculator CVSSv3.1
Stars: ✭ 35 (+59.09%)
Mutual labels:  calculator
menu-calc
A calculator for Rofi/dmenu(2)
Stars: ✭ 45 (+104.55%)
Mutual labels:  calculator
Mather
A powerful expression-based calculator, unit converter, and general computation engine for Android
Stars: ✭ 49 (+122.73%)
Mutual labels:  calculator
rpncalc
RPNCalc: The Command Line Reverse Polish Notation (RPN) Calculator
Stars: ✭ 19 (-13.64%)
Mutual labels:  calculator

Command-Line RPN calculator

Command line tools that can take an expression as arguments or interactively.

Screenshot

General

The program takes inputs that are separated by space (or return in interactive mode). Inputs can be either numbers or a function. Functions can be stack manipulation or all of the common mathematical operations.

Examples

  • 2 + (-5): 2 -5 add
  • 3 / -1: 3 1 chs div
  • sqrt(9)^cos(3.4): 9 2 root 3.4 cos pow

Functions

Stack pushes

Funcions that pushes something into the stack.

Operation Syntax Description
Number number Will push a number into the stack
Rand rand, random Random number between 0 and 1
π pi
Euler's number e

System funcions

Operation Syntax Description
Quit q, quit, exit Quits the program
Print print, ls Prints the stack

Stack manipulation and memory

Operation Syntax Description
Swap swp, <>, ><, swap Swaps the x and y buffer
Roll down rld, roll, rolld, rolldown Rolls the stack down
Roll up rlu, rollu, rollup Rolls the stack up
Store sto, store Takes one argument that sets the storage location
Recall rcl, recall Pushes the numbes stored in a argument position

Stack drop

Functions that pops off the x and y buffers and pushes the product based on the function.

Operation Syntax Description
Add a, +, add, plus
Subtract s, -, sub, subtact, minus
Muliply m, *, mul, multiply, times
Divide d, /, :, div, divide, over
Power p, ^, **, pow, raised, expo, exponent
Modulus mod, modulus
Greatest common divider gcd
Logarithm log, logarithm The x buffer is the base
Root r, root The x buffer is the root

x buffer change

Funcions that takes what is stored in the x buffer and changes it. Trigonometric funcions returns number in radians.

Operation Syntax Description
Ceil cel, ceil
Floor flr,floor
Round rnd, round Rounds to nearest ingeger
Invert inv, inverse, invert 1 / x
Absolute value abs, absolute
Factorial fac, factorial
Change sign chs, changesign, chsign -x
Log base 10 log10
Log base 2 log2
Log base e ln, naturallogarithm
Squareroot sqrt, squareroot
Sine sin, sine
Cosine cos, cosine
Tangent tan, tangent
Cosecant asin, arcsin, cosecant
Secant acos, arccos, secant
Cotangent atan, arctan, cotangent
Convert to degrees deg, todeg, degrees
Convert to radians rad, torad, radians
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].