From a208f66765eae1b6a446696a866c0728751a15ff Mon Sep 17 00:00:00 2001 From: Louis Rubet Date: Sun, 18 Jun 2017 23:27:34 +0200 Subject: [PATCH] #135: version 2.2 --- GENERATION.md | 2 +- MANUAL.md | 22 +++++++++++++--------- src/version.h | 2 +- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/GENERATION.md b/GENERATION.md index 678b2a2..d4a2742 100644 --- a/GENERATION.md +++ b/GENERATION.md @@ -6,7 +6,7 @@ It can be generated following the steps below ## version identification -rpn v2.1 is statically linked against +rpn v2.2 is statically linked against - GNU MP v6.1.2 - GNU MPFR v3.1.5 - linenoise-ng v1.0.1 diff --git a/MANUAL.md b/MANUAL.md index 5b8ca0f..0f492f3 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -1,4 +1,4 @@ -# **rpn** - reference manual +# **rpn v2.2**- reference manual **rpn** - is a **math-oriented language** inspired by Hewlett-Packard **R**everse **P**olish **L**isp (**HP28S** user manual is provided as a reference), it includes at least **stack**, **store**, **branch**, **test**, **trig** and **logs** commands @@ -60,14 +60,14 @@ rpn> ``` 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> +Display all 140 possibilities? (y or n) +nop test sci inv dec mod fp c->r <= same dup over sub next while vars sneg cos ln exp2 +? version + ^ hex fact min r->c != swap dup2 ->str if step whil clusr sinv acos exp sinh +h uname - pow prec mant max p->r == drop dupn str-> then ift repeat edit eval tan log10 asinh +help type chs sqrt round xpon re r->p and drop2 pick chr else ifte repea sto+ -> atan alog10 cosh +q default neg sq sign floor im > or dropn depth num end do sto sto- pi d->r exp10 acosh +quit std * sqr % ceil conj >= xor erase roll size start until rcl sto* sin r->d log2 tanh +exit fix / abs %CH ip arg < not rot rolld pos for unti purge sto/ asin e alog2 atanh ``` ## keywords @@ -114,6 +114,10 @@ rpn> |fact| n! for integer n or Gamma(x+1) for fractional x |mant| mantissa of a real number |xpon| exponant of a real number +|floor| largest number <= +|ceil| smallest number >= +|ip| integer part +|fp| fractional part |min| min of 2 real numbers |max| max of 2 real numbers diff --git a/src/version.h b/src/version.h index 5849058..15c96b4 100644 --- a/src/version.h +++ b/src/version.h @@ -1,5 +1,5 @@ // version and soft name -#define RPN_VERSION "2.1" +#define RPN_VERSION "2.2" static const char version[] = RPN_VERSION; static const char uname[] = "rpn v" RPN_VERSION ", (c) 2017 , GNU LGPL v3\n";