-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand_reference
More file actions
24 lines (22 loc) · 985 Bytes
/
Copy pathcommand_reference
File metadata and controls
24 lines (22 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Binary Operators: drops the stack size by one
+ Add
- Subtract
* Multiply
/ Divide
% Modulo
^ Power
Unary Operators: changes the element on top of the stack
sin Sine
cos Cosine
tan Tan
sinh Inverse Sine function
cosh Inverse Cosine function
tanh Inverse tan function
rnd Round a number to closest integer
sqrt Square root a number
! Factorial of a number
dup - duplicate the top element
swp - swap the top two elements
dump - print out the stack
drop - decrements the head, dropping the top value in the stack (leaves the value in place)
catch - increment the head, catching a value previously dropped