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
|
|
|
```
|
|
|
|
rpn> 256 prec 200 std
|
|
|
|
rpn> pi 3 * 4 / cos
|
2017-06-16 10:35:27 +02:00
|
|
|
-0.707106781186547524400844362104849039284835937688474036588339868995366239(...)
|
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>
|
|
|
|
Display all 128 possibilities? (y or n)
|
|
|
|
!= -> > acosh atan cosh drop e exit for ifte max not pos r->d rot sinh sqrt sto+ tan unti xor
|
|
|
|
% ->str >= alog atanh d->r drop2 edit exp h inv min num pow rcl round sinv start sto- tanh until xpon
|
|
|
|
%CH / ? alog2 chr dec dropn else exp10 help ln mod or prec repea same size std sto/ test vars
|
|
|
|
* < ^ and chs default dup end exp2 hex log neg over purge repeat sci sneg step str-> then version
|
|
|
|
+ <= abs asin clusr depth dup2 erase fact if log2 next pi q roll sign sq sto sub type whil
|
|
|
|
- == acos asinh cos do dupn eval fix ift mant nop pick quit rolld sin sqr sto* swap uname while
|
|
|
|
rpn>
|
|
|
|
```
|
|
|
|
|
2017-06-12 19:32:26 +02:00
|
|
|
## Manual
|
2017-05-28 02:15:22 +02:00
|
|
|
|
2017-06-12 19:32:26 +02:00
|
|
|
A reference manual is provided [here](MANUAL.md)
|
2017-05-28 02:15:22 +02:00
|
|
|
|
2017-06-18 23:41:57 +02:00
|
|
|
## Download
|
2017-06-11 13:07:37 +02:00
|
|
|
|
2017-06-18 23:41:57 +02:00
|
|
|
The delivery directory is [there](https://github.com/louisrubet/rpn/releases)
|
2017-06-11 13:07:37 +02:00
|
|
|
|
2017-06-18 23:41:57 +02:00
|
|
|
deb, rpm and tgz files of all rpn versions can be found there
|
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
|