Numeral system | Beginning | Example | Decimal |
---|---|---|---|
Hexadecimal | 0x or 0X | 0x1A | 26 |
Octal | 0o or 0O | 0o10 | 8 |
Binary | 0b or 0B | 0b101010 | 42 |
Name | Sign | Example | Result | Comment |
---|---|---|---|---|
Addition | + | 1 + 2 | 3 | |
Subtraction | - | 2 - 1 | 1 | |
Multiplication | * | 3 * 2 | 6 | |
Division | / | 6 / 3 | 2 | |
Modulus | mod | 5 mod 3 | 2 | |
Power | ^ | 2 ^ 10 | 1024 | |
Radical | root | 2 root 9 | 3 | Left operand is the base |
Logarithm | log | 2 log 8 | 3 | Left operand is the base |
Round | rnd | 2 rnd 3.14159 | 3.14 | First operand = number of dezimals |
Bitshift | <<, >> | 16 >> 2 | 4 | |
Bit Rotation | lrot, rrot | 0b1010101 rrot 1 | 0b10000000000000000000000000101010 | Bitwise rotation of 32bit Integer |
Comparison | <, <=, >, >= | 5 <= 6 | 1 | Result: 1 => True, 0 => False |
Equal, Not equal | ==, != | 5 == 42 | 1 | |
Bitwise And | & | 0b101010 & 0b110011 | 0b00100010 | |
Bitwise Or | | | 0b101010 | 0b110011 | 0b00111011 | |
Bitwise XOr | xor | 0b101010 xor 0b110011 | 0b00011001 | |
Logic And | && | true && false | 0 | |
Logic Or | || | true || false | 1 |
Name | Sign | Example | Result | Comment |
---|---|---|---|---|
Sine | sin | sin (Pi / 2) | 1 | |
Cosine | cos | cos (Pi / 2) | 0 | |
Tangent | tan | tan (Pi / 4) | 1 | |
Arcussine | asin | asin 1 | Pi / 2 = 1.5707963268 | |
Arcuscosine | acos | acos 1 | 0 | |
Arcustangent | atan | atan 1 | Pi / 4 = 0.7853981634 | |
Hyperbolic sine | sinh | sinh 1 | 1.1752011936 | |
Hyperbolic cosine | cosh | cosh 1 | 1.5430806348 | |
Hyperbolic tangent | tanh | tanh 1 | 0.761594156 | |
Absolute value | abs | abs -15 | 15 | |
Factorial | fact | fact 5 | 120 | Arguments will be rounded |
Sinus Cardinalis | sinc | sinc 0 | 1 | |
Sigma | sigma | sigma 0 | 1 | |
Delta | delta | delta 0 | 1 | |
Natural logarithm | ln | ln (e ^ 2) | 2 | |
Dual logarithm | ld | ld 8 | 3 | |
Decimal logarithm | lg | lg 1000 | 3 | |
Square root | sqrt | sqrt 64 | 8 | |
Not | ! | !true | false | |
Negation | ~ | ~0b101010 | 0b11111111111111111111111111010101 |
Special sign input | Converted input |
---|---|
² | ^2 |
³ | ^3 |
% | /100 |
‰ | /1000 |
¼ | 0.25 |
½ | 0.5 |
¾ | 0.75 |
Command | Description | Example |
---|---|---|
#clr | Clear calculation list | #clr |
#draw [fctname1], [fctname2], [...] | Open function draw window and select given function (without e.g. "(x)") | #draw f, g, bell |
#log [text] | Write text into the log | #log Text without quotation marks but only one line |
#echo [text] | Write text to the calculation list | #echo Same as above, comments will not be shown |
#SetOrigin xOffset, yOffset | Set origin of draw function form in pixels | #SetOrigin 200, -400 |
#SetScale xScale, yScale | Set scale of draw function form | #SetScale 20, 10 |
#Redraw | Redraws selected functions | #Redraw |
#exec [path] | Executes given file | #exec /init.qcalc |
#DecSign [comma / point / default] | Sets decimal sign to comma or point or system language's default | #DecSign default |
#AngleMode [rad / deg] | Sets angle mode to degree or radiant | #AngleMode rad |
#Multiline [single / multi] | Sets the multiline-mode | #Multiline single |
#OutFormat [dec / exp / hex / oct / bin] | Sets the output format | #OutFormat hex |
#exit | Close the application | #exit |
If | While | ||
---|---|---|---|
Syntax | Example | Syntax | Example |
if [condition] ... elseif [condition] ... else ... endif |
#clr x = 5 if x <= 5 #echo x < 5 if x < 5 #echo x < 5 else #echo x == 5 2 endif elseif x > 5 #echo x > 5 else #echo x == 5 1 endif |
while [condition] ... break ... continue ... loop |
#clr x = 0 y = 0 while x < 6 while y < 3 y = y + 1 loop y = 0 x = x + 2 loop |