Jump to content

Draft:List Of TI-BASIC 83 Commands

From Wikipedia, the free encyclopedia
    • List of TI-BASIC 83 Commands**

This is a list of the most commonly used commands in TI-BASIC 83, the programming language used on TI-83 series calculators. These commands allow users to perform calculations, control program flow, and manipulate data.

      1. Arithmetic Commands

| **Command** | **Function** | |-------------|--------------| | `+` | Adds two numbers. Example: `2+2→A` stores `4` in variable `A`. | | `-` | Subtracts one number from another. Example: `5-3→B` stores `2` in `B`. | | `*` | Multiplies two numbers. Example: `3*4→C` stores `12` in `C`. | | `/` | Divides one number by another. Example: `10/2→D` stores `5` in `D`. | | `^` | Raises a number to a power. Example: `2^3→E` stores `8` in `E`. | | `√` | Returns the square root of a number. Example: `√(16)→F` stores `4` in `F`. | | `Abs(` | Returns the absolute value of a number. Example: `Abs(-5)→G` stores `5` in `G`. |

      1. Trigonometric and Advanced Math Commands

| **Command** | **Function** | |-------------|--------------| | `sin(` | Calculates the sine of an angle (in radians or degrees). | | `cos(` | Calculates the cosine of an angle. | | `tan(` | Calculates the tangent of an angle. | | `log(` | Returns the logarithm (base 10) of a number. Example: `log(100)→H` stores `2` in `H`. | | `ln(` | Returns the natural logarithm (base `e`) of a number. | | `e^(` | Returns `e` raised to a power. Example: `e^(2)→I` stores approximately `7.39` in `I`. | | `R►P(` | Converts rectangular coordinates to polar coordinates. | | `P►R(` | Converts polar coordinates to rectangular coordinates. |

      1. Variable and Data Commands

| **Command** | **Function** | |-------------|--------------| | `→` (Store) | Stores a value into a variable. Example: `5→X` stores `5` in `X`. | | `Disp` | Displays a value or text. Example: `Disp "HELLO"` shows `HELLO`. | | `Input` | Prompts the user for input and stores the value in a variable. | | `ClrHome` | Clears the home screen. | | `rand(` | Returns a random number between 0 and 1. Example: `rand(5)` returns a random number between 0 and 5. | | `List` | Creates and manipulates lists of numbers. Example: `{1,2,3}→L1` stores `{1, 2, 3}` in list `L1`. |

      1. Control Flow Commands

| **Command** | **Function** | |-------------|--------------| | `If` | Runs the following command if the condition is true. | | `Then` | Used to start a block of commands to run if the condition is true. | | `Else` | Provides alternative commands if the condition is false. | | `For(` | Creates a loop that runs a block of commands a specified number of times. | | `While` | Creates a loop that continues as long as a condition is true. | | `Repeat` | Creates a loop that continues until a condition becomes true. | | `End` | Marks the end of a `For`, `While`, or `Repeat` loop. | | `Goto` | Jumps to a specific label in the program. Example: `Goto A` jumps to `Lbl A`. | | `Lbl` | Defines a label to jump to using `Goto`. Example: `Lbl A`. |

      1. I/O (Input/Output) Commands

| **Command** | **Function** | |-------------|--------------| | `Prompt` | Displays a prompt and stores the input in a variable. | | `Output(` | Displays text or numbers at a specific location on the screen. Example: `Output(1,1,"HELLO")` places "HELLO" in row 1, column 1. | | `Pause` | Pauses program execution until a key is pressed. | | `Stop` | Stops program execution. |

      1. Graphing Commands

| **Command** | **Function** | |-------------|--------------| | `Plot1(` | Turns on/off the first plot. Example: `Plot1(1)` turns on Plot 1. | | `Line(` | Draws a line between two points. Example: `Line(0,0,10,10)` draws a diagonal line. | | `Pt-On(` | Plots a point at a given coordinate. Example: `Pt-On(5,5)` plots a point at (5,5). | | `Circle(` | Draws a circle at a given point with a specified radius. Example: `Circle(3,3,2)` draws a circle at (3,3) with a radius of 2. |

      1. Miscellaneous Commands

| **Command** | **Function** | |-------------|--------------| | `RandInt(` | Returns a random integer between two values. Example: `RandInt(1,10)` returns an integer between 1 and 10. | | `Menu(` | Creates an on-screen menu with options. | | `IS>(` | Increments a variable and checks if it exceeds a limit. | | `DS<(` | Decrements a variable and checks if it drops below a limit. | | `Return` | Returns control to a previous point in the program, typically used in subroutines. | | `DelVar` | Deletes a variable from memory. | | `ClrDraw` | Clears the graph screen. |