TI-BASIC:Real Func

From Learn @ Cemetech
Revision as of 18:14, 24 February 2016 by Maintenance script (talk | contribs) (Initial automated import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

REAL.GIF

Command Summary

Returns the real part of a complex value.

Command Syntax

real(value)

Menu Location

Press:

  1. MATH to access the Math menu.
  2. RIGHT, RIGHT to access the CPX (complex) submenu.
  3. 2 to select real(, or use arrows.

Calculator Compatibility

TI-83/84/+/SE

Token Size

2 bytes

real(z) returns the real part of the complex number z. If z is represented as x+iy where x and y are both real, real(z) returns x. Also works on a list of complex numbers.

real(3+4i)
     3

Advanced Uses

The real( command is expanded by several assembly libraries (such as XLIB and Omnicalc) to call their own routines. If xLib is installed, then real( will no longer work as intended even in programs that want to use it for its intended purpose.

If you actually want to take the real part of a complex number, and want the program to work with one of these assembly libraries, you could use the Imag( command instead - real(Z) is equivalent to imag(Zi). Alternatively, you could tell people using your program to uninstall xLIB or Omnicalc first.

If a program you downloaded has an error and 2:Goto takes you to a line with real( and a bunch of arguments, this is probably because the program uses Omnicalc or xLIB which you don't have installed.

Related Commands

See Also