Arithmetic/Complex: Difference between revisions

Content deleted Content added
→‎{{header|Pascal}}: add example of ucomplex unit
added TI-83 BASIC
Line 2,388: Line 2,388:
puts [tostring [pow $a [complex -1 0]]] ;# ==> 0.5-0.4999999999999999i
puts [tostring [pow $a [complex -1 0]]] ;# ==> 0.5-0.4999999999999999i
puts [tostring [- $a]] ;# ==> -1.0-i</lang>
puts [tostring [- $a]] ;# ==> -1.0-i</lang>

=={{header|TI-83 BASIC}}==

TI-83 BASIC has built in complex number support; the normal arithmetic operators + - * / are used.

The method complex numbers are displayed can be chosen in the "MODE" menu.<br />
Real: Does not show complex numbers, gives an error if a number is imaginary.<br />
a+bi: The classic display for imaginary numbers with the real and imaginary components<br />
re^Θi: Displays imaginary numbers in Polar Coordinates.


=={{header|TI-89 BASIC}}==
=={{header|TI-89 BASIC}}==