Real/Complex Values

From WikiTI
Jump to: navigation, search

Real and complex values are used for storing numbers. They include A-Z and /theta/, most commonly, althogh more are available through hacks. Although they are two different types of varialbes, they both occupy the same global variables.


Real Values

Real values are real numbers, such as 32, that are used in calculations. An example calculation is A+3, which will increase the value in A by 3.


Complex Values

Complex numbers contain imaginary numbers, which are expressed in terms of i. They can be displayed in the following formats: a+bi re^&Thetai According to the user's mode settings, or just throw an error.


Storing to Real or Complex Variables

To store to a real or complex variable, the user types the value as a number, followed by ->, then specifies the variable: 45->B This stores the number 45 to the variable B. For complex numbers, they are expressed in terms of i and are interchangeable with real variables: 23i->B Which stores 23*sqrt(-1) to B.


Programming signifigance

Real variables are used most widely for programming, but are rigid in their limitation of only 25 variables available. They are also very hard to keep track of in numbers, because their only identifier is the letter. An alternative method of using real numbers is in lists, which have up to 999 values available.