Difference between revisions of "TI-BASIC:3"

From Learn @ Cemetech
Jump to navigationJump to search
(Initial automated import)
 
(Automated superscript correction)
 
Line 33: Line 33:
  
 
= Related Commands =
 
= Related Commands =
* ^^[[TI-BASIC:Inverse|-1]]^^
+
* <sup>[[TI-BASIC:Inverse|-1]]</sup>
* ^^[[TI-BASIC:2|2]]^^[[Category:TI-BASIC]]
+
* <sup>[[TI-BASIC:2|2]]</sup>[[Category:TI-BASIC]]
 
[[Category:TIBD]]
 
[[Category:TIBD]]

Latest revision as of 22:23, 24 February 2016

CUBE.GIF

Command Summary

Raises the input to the third power.

Command Syntax

value³

Menu Location

While editing a program, press:

  1. MATH to enter the MATH menu
  2. 3 or use the arrow keys to select.

Calculator Compatibility

TI-83/84/+/SE

Token Size

1 byte

The ³ command raises an input to the third power. It has exactly the same function as "^3", but is one byte smaller. If used on a list, it will return a list with all of the elements cubed. If used on a matrix, it will return the third matrix power of the input matrix.

2³
		8
{1,‾2,3}³
		{1 ‾8 27}
[[2,‾1][‾3,0]]³
		[[20  ‾7]
		 [‾21  6]]

Advanced Uses

One trick with ³ is to use it to save space (at the cost of speed) when using hard-coded values. For instance, use 5³ instead of 125 to save one byte.

Optimization

Use this command instead of ^3 in all instances.

:X^3
can be
:X³

Related Commands