**diff options**

author | Alexis Lockwood | 2021-07-18 11:14:37 -0600 |
---|---|---|

committer | Alexis Lockwood | 2021-07-18 11:14:37 -0600 |

commit | 2de183c74a65e58a54522234688c995f58949b48 (patch) | |

tree | c709e0f4f86e6f976ec70458fb79693c2973577f | |

parent | 160d7a9b74b31538634b8140dad8053422d26e29 (diff) |

-rw-r--r-- | README.md | 15 |

1 files changed, 14 insertions, 1 deletions

@@ -289,7 +289,6 @@ The operator precedence is based on that of C. | **KEYWORD** | **DOES** | |-------------------------------|-| -| `ABS n` | Return the absolute value of `n` | | `ASC(s$[, n])` | Return the byte value of the first or `n`th character of `s$` | | `BIN s$ n` | Append the binary representation of `n` to `s$` | | `CALL fun(...)` | Call native function `fun` with arguments `...` | @@ -328,6 +327,20 @@ The operator precedence is based on that of C. | `VAL(s$)` | Returns the numerical value of a string | | `WEND` | Go back to the last `WHILE`. Must occur by itself, not inside an IF or similar. | | `WHILE cond` | Loop as long as `cond` is nonzero. | +| *Mathematical functions* | | +| `ABS n` | Return the absolute value of `n` | +| `ATN n` | Arctangent of `n` (floating point only) | +| `COS n` | Cosine of `n` (floating point only) | +| `LOG n` | Natural logarithm of `n` (floating point only) | +| `SIN n` | Sine of `n` (floating point only) | +| `SQR n` | Square root of `n` (floating point only) | +| `TAN n` | Tangent of `n` (floating point only) | +| `EXP n` | Exponential of `n` (floating point only) | +| `SGN n` | Signum of `n` (-1, 0, or 1 depending on sign) | +| `RND` | Random number between 0 and 65535 +| *Type conversions* | | +| `INT n` | Convert `n` to integer | +| `FLOAT n` | Convert `n` to floating point | (TODO: define file I/O variables. This will probably look nothing like traditional BASICs) |