Texas Instruments TI-89 Titanium User Manual page 811

Hide thumbs Also See for TI-89 Titanium:
Table of Contents

Advertisement

isClkOn()
CATALOG
isClkOn() ⇒
true,false
Determines if the clock is
if the clock is
isPrime()
MATH/Test menu
) ⇒
number
isPrime(
Returns true or false to indicate if
number ‚ 2 that is evenly divisible only by itself and
1.
If
exceeds about 306 digits and has no
number
factors 1021,
message.
If you merely want to determine if
use
isPrime()
particularly if
largest factor that exceeds about five digits.
Item
CATALOG
Item
itemNameString
itemNameString
Item
Valid only within a
ToolBar...EndTBar
menu element to let you paste text to the cursor
position (
Custom
Note: Branching to a label is not allowed within a
block.
Custom
Lbl
CATALOG
Lbl
labelName
Defines a label with the name
program.
You can use a
transfer program control to the instruction
immediately following the label.
labelName
requirements as a variable name.
lcm()
MATH/Number menu
number1
number2
lcm(
,
) ⇒
list1
list2
lcm(
,
matrix1
matrix2
lcm(
,
Returns the least common multiple of the two
arguments. The
their numerators divided by the
denominators. The
numbers is their product.
For two lists or matrices, returns the least common
multiples of the corresponding elements.
808
or
. Returns
ON
OFF
. Returns
if the clock is
ON
false
Boolean constant expression
number
displays an error
number
isPrime(
)
number
instead of
. It is much faster,
factor()
is not prime and has a second-
number
label
,
Custom...EndCustm
block. Sets up a drop-down
) or branch to a label (
labelName
instruction to
labelName
Goto
must meet the same naming
) ⇒
expression
list
) ⇒
matrix
of two fractions is the
lcm
of their
gcd
of fractional floating-point
lcm
true
.
OFF
IsPrime(5) ¸
IsPrime(6) ¸
is a whole
Function to find the next prime after a specified
number:
Define nextPrim(n)=Func:Loop:
n+1! n:if isPrime(n):return n:
EndLoop:EndFunc ¸
is prime,
nextPrim(7) ¸
See
Custom
or
).
ToolBar
Program segment:
in the
©
:Lbl lbl1
:InputStr "Enter password",
str1
:If str1ƒpassword
:
Goto lbl1
:Disp "Welcome to ..."
©
lcm(6,9) ¸
lcm({1/3,ë 14,16},{2/15,7,5})
¸
of
lcm
Appendix A: Functions and Instructions
false
example.
{2/3 14 80}
true
Done
11
18

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents