2017-06-16 19:00:48 +02:00
|
|
|
# **rpn** - **R**everse **P**olish **N**otation language [![License: LGPLv3](https://www.gnu.org/graphics/lgplv3-88x31.png)](https://www.gnu.org/licenses/lgpl-3.0.en.html)
|
2016-10-03 10:39:32 +02:00
|
|
|
|
2017-06-12 19:32:26 +02:00
|
|
|
### a lisp-based math language using polish notation
|
2016-10-03 10:39:32 +02:00
|
|
|
|
2017-05-27 22:30:58 +02:00
|
|
|
```
|
2017-06-12 19:32:26 +02:00
|
|
|
rpn> 1 2 + 2 sqrt
|
2017-05-31 14:28:31 +02:00
|
|
|
2> 3
|
2017-05-27 22:30:58 +02:00
|
|
|
1> 1.4142135623730950488
|
|
|
|
```
|
|
|
|
|
2017-06-12 19:32:26 +02:00
|
|
|
### with arbitrary precision
|
2017-05-27 22:30:58 +02:00
|
|
|
```
|
2017-06-26 17:45:18 +02:00
|
|
|
rpn> 256 prec
|
|
|
|
rpn> pi
|
|
|
|
3.1415926535897932384626433832795028841971693993751058209749445923078164062862
|
|
|
|
rpn>
|
2017-05-27 22:30:58 +02:00
|
|
|
```
|
2016-10-03 10:39:32 +02:00
|
|
|
|
2017-06-12 19:32:26 +02:00
|
|
|
### providing variables, programs
|
2017-05-27 22:30:58 +02:00
|
|
|
```
|
2017-06-12 19:32:26 +02:00
|
|
|
rpn> << rot * swap 2 / chs dup sq rot - sqrt >> 'quad' sto
|
|
|
|
rpn> << -> x y << x y + ln >> >> 'P' sto
|
2017-05-27 22:30:58 +02:00
|
|
|
```
|
2016-10-03 10:39:32 +02:00
|
|
|
|
2017-06-12 19:32:26 +02:00
|
|
|
### and a bunch of functions
|
2017-06-11 01:23:18 +02:00
|
|
|
```
|
|
|
|
rpn>
|
2017-07-01 17:18:11 +02:00
|
|
|
Display all 146 possibilities? (y or n)
|
|
|
|
nop exit chs sqrt base xpon re r->p type and drop2 dupn str-> then ift repeat edit eval tan exp sinh
|
|
|
|
help test neg sq sign floor im std > or dropn pick chr else ifte repea sto+ -> atan log10 asinh
|
|
|
|
h version * sqr % ceil conj fix >= xor del depth num end do sto sto- pi d->r alog10 cosh
|
|
|
|
? uname / abs %CH ip arg sci < not erase roll size start until rcl sto* sin r->d exp10 acosh
|
|
|
|
q history inv dec mod fp c->r prec <= same rot rolld pos for unti purge sto/ asin e log2 tanh
|
|
|
|
quit + ^ hex fact min r->c round != swap dup over sub next while vars sneg cos ln alog2 atanh
|
|
|
|
q - pow bin mant max p->r default == drop dup2 ->str if step whil clusr sinv acos log exp2
|
2017-06-11 01:23:18 +02:00
|
|
|
```
|
|
|
|
|
2017-06-18 23:41:57 +02:00
|
|
|
## Download
|
2017-06-11 13:07:37 +02:00
|
|
|
|
2017-06-18 23:45:38 +02:00
|
|
|
deb, rpm and tgz files can be found [there](https://github.com/louisrubet/rpn/releases)
|
|
|
|
|
|
|
|
## Manual
|
2017-06-11 13:07:37 +02:00
|
|
|
|
2017-06-18 23:45:38 +02:00
|
|
|
A reference manual is provided [here](MANUAL.md)
|
2017-05-28 02:15:22 +02:00
|
|
|
|
2017-06-12 19:32:26 +02:00
|
|
|
## Generation
|
2017-05-28 02:15:22 +02:00
|
|
|
|
2017-06-12 19:32:26 +02:00
|
|
|
Generation instructions can be found [here](GENERATION.md)
|
2017-05-28 02:15:22 +02:00
|
|
|
|
2017-06-12 19:32:26 +02:00
|
|
|
## Contact
|
2017-06-10 18:55:45 +02:00
|
|
|
|
2017-06-12 19:32:26 +02:00
|
|
|
Please email me at [louis@rubet.fr](mailto:louis@rubet.fr)
|
2017-06-10 18:55:45 +02:00
|
|
|
|
2017-06-12 19:32:26 +02:00
|
|
|
You can use [github issues](https://github.com/louisrubet/rpn/issues) too
|