![]()
| Function | Argument | Result | Explanation |
| sqr | integer | integer | takes the square of the argument |
| real | real | ||
| sqrt | real or integer | real | takes the square root of the argument |
| sin | real (in radians) | real | sine |
| cos | real (in radians) | real | cosine |
| arctan | real | real (in radians) | inverse tangent |
| exp | real or integer | real | exponential |
| ln | real or integer | real | natural log |
| abs | integer | integer | absolute value |
| real | real | ||
| round | real | integer | rounding, ie. the integer closest to arg. |
| trunc | real | integer | truncation, ie. the integer smaller than arg. |
| pred | integer | integer | integer just before the argument |
| succ | integer | integer | integer just after the argument |
| odd | integer | boolean | returns whether arg. is odd or not |
| chr | integer | char | returns character with Ascii code arg. |
| ord | char | integer | retruns Ascii code of character arg. |
Examples:
| sqr(4) = 16 |
| sqr(1.5) = 2.25 |
| sqrt(16) = 4 |
| sin(1.5) = 0.997494 |
| cos(1.5) = 0.007073 |
| arctan(1.5) = 0.982793 |
| exp(1.5) = 4.4816 |
| ln(1.5) = 1.405 |
| abs(-2) = 2 |
| round(1.56) = 2 |
| trunc(1.56) = 1 |
| odd(5) = true |
| pred(5) = 4 |
| succ(5) = 6 |
| chr(48) = 0 |
| ord('0') = 48 |
Important Fact: Note
that you have no function to calculate the power of any ordinary
number. Therefore you should use the exp function for this
purpose. eg. ![]()