EasyManuals Logo
Home>Texas Instruments>Calculator>TI-89

Texas Instruments TI-89 Tip List

Texas Instruments TI-89
507 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #91 background imageLoading...
Page #91 background image
which returns
761
101
1 21
As an example of a singular matrix, find the adjoint of
123
012
000
with
adjoint([[1,2,3][0,1,2][0,0,0]])
which returns
00 1
002
00 1
(Credit to Mike Roberts for pointing out equation [2])
[3.14] Randomize list elements
Some simulations require a list of random integers, in which each integer appears only once. This
program creates such a list:
randlist(n1,n2)
Prgm
©Create list 'm' of sequential integers in random order, from n1 to n2
©Idea by David Lloyd
local n
seq(k,k,n1,n2)m
seq(rand(),k,1,dim(m))n
sorta n,m
EndPrgm
n1 and n2 are the starting and ending values for the list elements. The resulting list is stored in the list
m. For example, the call
randlist(0,4)
might return this for m:
{4, 2, 0, 1, 3}
The first seq() function creates a list of sequential integers from n1 to n2. The second seq() function
creates list of random integers from 1 to the size of m. The sorta command sorts both lists, using the
random list as the key, so that when the random list is sorted, the sequential list elements are
randomized.
Ideally, this program would be written as a function to return the randomized list. Unfortunately, sorta is
a command, not a function, and cannot be used in functions. The sorta arguments must be global
3 - 9

Table of Contents

Other manuals for Texas Instruments TI-89

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-89 and is the answer not in the manual?

Texas Instruments TI-89 Specifications

General IconGeneral
Display size (HxV)100 x 160 mm
Memory type639K FLASH ROM, 188K bytes RAM
Compatible operating systemsOperating System 2.09
Battery typeAAA

Related product manuals