updated manual

This commit is contained in:
2023-11-02 19:20:49 +01:00
parent ef8a98c81f
commit 8a7740c4fa
2 changed files with 32 additions and 0 deletions

16
rpn.go
View File

@@ -115,6 +115,22 @@ DESCRIPTION
You can use the shift command to remove the last number from the stack. You can use the shift command to remove the last number from the stack.
BUILTIN OPERATORS AND FUNCTIONS
Basic operators: + - x /
Math functions:
sqrt square root
mod remainder of division (alias: remainder)
max batch mode only: max of all values
min batch mode only: min of all values
mean batch mode only: mean of all values (alias: avg)
median batch mode only: median of all values
% percent
%- substract percent
%+ add percent
^ power
EXTENDING RPN USING LUA EXTENDING RPN USING LUA
You can use a lua script with lua functions to extend the calculator. By You can use a lua script with lua functions to extend the calculator. By
default the tool looks for "~/.rpn.lua". You can also specify a script default the tool looks for "~/.rpn.lua". You can also specify a script

16
rpn.pod
View File

@@ -121,6 +121,22 @@ The stack can be reversed using the B<reverse> command.
You can use the B<shift> command to remove the last number from the You can use the B<shift> command to remove the last number from the
stack. stack.
=head2 BUILTIN OPERATORS AND FUNCTIONS
Basic operators: + - x /
Math functions:
sqrt square root
mod remainder of division (alias: remainder)
max batch mode only: max of all values
min batch mode only: min of all values
mean batch mode only: mean of all values (alias: avg)
median batch mode only: median of all values
% percent
%- substract percent
%+ add percent
^ power
=head1 EXTENDING RPN USING LUA =head1 EXTENDING RPN USING LUA