-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.go
84 lines (71 loc) · 1.61 KB
/
help.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package help
const COMMANDHELP = `
+ = "plus"
- = "minus"
* = "multiply"
/ = "divide"
! = "not"
!= = "not equal to"
% = "modulus"
-- = "decrement"
++ = "increment"
rand = "rand"
clr = "clear stack"
clv = "clear values"
cla = "clear stack and values"
& = "bit and"
| = "bit or"
^ = "bit xor"
~ = "bit not"
<< = "bit shift left"
>> = "bit shift right"
&& = "bool and"
|| = "bool or"
^^ = "bool xor"
< = "less than"
<= = "less than or equal to"
== = "equal to"
> = "greater than"
>= = "greater than or equal to"
acos = "acos"
asign = "asin"
atan = "atan"
cos = "cos"
cosh = "cosh"
sin = "sin"
sinh = "sinh"
tanh = "tanh"
ceil = "ceiling"
floor = "floor"
round = "round"
ip = "integer part"
fp = "floating part"
sign = "push -1, 0 or 0 depending on the sign"
abs = "absolute value"
max = "min"
min = "max"
hex = "hex mode"
dec = "dec mode"
bin = "bin mode"
oct = "oct mode"
exp = "exponential"
fact = "factorial"
sqrt = "square root"
ln = "natural log"
log = "logarithm"
pow = "raise a number to a power"
pick = "pick nth item from the stack"
repeat = "repeat an operation n times"
depth = "push current stack depth"
drop = "drop top item from the stack"
dropn = "drop n items from the stack"
dup = "duplicate top stack item"
dupn = "duplicate top n stack items in order"
roll = "roll stack upwords by n"
rolld = "roll stack downwards by n"
stack = "toggle stack display from horizontal to vertical"
swap = "swap top 2 stack items"
macro = "define a macro"
x= = "assign a value to the x register"
exit = "exit"
`