Instring(), Int(), Intdiv() – Texas Instruments TITANIUM TI-89 User Manual
Page 832: Integrate, Ipart(), Isarchiv(), Isclkon(), 832 appendix a: functions and instructions
![background image](/manuals/213780/832/background.png)
832
Appendix A: Functions and Instructions
inString()
MATH/String menu
inString(
srcString
,
subString
[,
start
])
⇒
⇒
⇒
⇒
integer
Returns the character position in string
srcString
at
which the first occurrence of string
subString
begins.
start
, if included, specifies the character position
within
srcString
where the search begins. Default
= 1 (the first character of
srcString
).
If
srcString
does not contain
subString
or
start
is >
the length of
srcString
, returns zero.
inString("Hello there","the")
¸
7
"ABCEFG"! s1:If inString(s1,
"D")=0:Disp "D not found."
¸
D not found.
int()
CATALOG
int(
expression
)
⇒
⇒
⇒
⇒
integer
int(
list1
)
⇒
⇒
⇒
⇒
list
int(
matrix1
)
⇒
⇒
⇒
⇒
matrix
Returns the greatest integer that is less than or
equal to the argument. This function is identical
to
floor()
.
The argument can be a real or a complex number.
For a list or matrix, returns the greatest integer of
each of the elements.
int(л 2.5)
¸
л
3.
int([-1.234,0,0.37])
¸
[-2. 0 0.]
intDiv()
CATALOG
intDiv(
number1
,
number2
)
⇒
⇒
⇒
⇒
integer
intDiv(
list1
,
list2
)
⇒
⇒
⇒
⇒
list
intDiv(
matrix1
,
matrix2
)
⇒
⇒
⇒
⇒
matrix
Returns the signed integer part of argument 1
divided by argument 2.
For lists and matrices returns the signed integer
part of argument 1 divided by argument 2 for
each element pair.
intDiv(л 7,2)
¸
л
3
intDiv(4,5)
¸
0
intDiv({12,л 14,л 16},{5,4,л 3})
¸
{2
л
3 5}
integrate
See
‰‰‰‰()
, page 907.
iPart()
MATH/Number menu
iPart(
number
)
⇒
⇒
⇒
⇒
integer
iPart(
list1
)
⇒
⇒
⇒
⇒
list
iPart(
matrix1
)
⇒
⇒
⇒
⇒
matrix
Returns the integer part of the argument.
For lists and matrices, returns the integer part of
each element.
The argument can be a real or a complex number.
iPart(л 1.234)
¸
л
1.
iPart({3/2,л 2.3,7.003})
¸
{1
л
2. 7.}
isArchiv()
CATALOG
isArchiv(var_name)
⇒
⇒
⇒
⇒
true,false
Determines if
var_name
is archived or not.
Returns
true
if
var_name
is archived. Returns
false
if
var_name
is not archived.
isArchiv(PROG1)
¸
True
isClkOn()
CATALOG
isClkOn()
⇒
⇒
⇒
⇒
true,false
Determines if the clock is
ON
or
OFF
. Returns
true
if the clock is
ON
. Returns
false
if the clock is
OFF
.