Appendix A: Functions and Instructions
799
Func
CATALOG
Func
block
EndFunc
Required as the first statement in a multi-statement
function definition.
block
can be either a single statement or a series of
statements separated with the “:” character.
Note:
when()
also can be used to define and graph
piecewise-defined functions.
In function graphing mode, define a piecewise
function:
Define g(x)=Func:If x<0 Then
:Return 3
ù
cos(x):Else:Return
3
ì
x:EndIf:EndFunc
¸
Done
Graph g(x)
¸
gcd()
MATH/Number menu
gcd(
number1, number2
)
⇒
expression
Returns the greatest common divisor of the two
arguments. The
gcd
of two fractions is the
gcd
of
their numerators divided by the
lcm
of their
denominators.
In Auto or Approximate mode, the
gcd
of fractional
floating-point numbers is 1.0.
gcd(18,33)
¸
3
gcd(
list1, list2
)
⇒
list
Returns the greatest common divisors of the
corresponding elements in
list1
and
list2
.
gcd({12,14,16},{9,7,5})
¸
{3 7 1}
gcd(
matrix1, matrix2
)
⇒
matrix
Returns the greatest common divisors of the
corresponding elements in
matrix1
and
matrix2
.
gcd([2,4;6,8],[4,8;12,16])
¸
[
2 4
6 8
]
Get
CATALOG
Get
var
Retrieves a CBL 2
é
/CBL™ (Calculator-Based
Laboratory
é
) or CBR
é
(Calculator-Based
Ranger
é
) value from the link port and stores it in
variable
var
.
Program segment:
©
:Send {3,1,
ë
1,0}
:For i,1,99
: Get data[i]
: PtOn i,data[i]
:EndFor
©
GetCalc
CATALOG
GetCalc
var
Retrieves a value from the link port and stores it in
variable
var
. This is for unit-to-unit linking.
Note:
To get a variable to the link port from another
unit, use
2 °
on the other unit to select
and send a variable, or do a
SendCalc
on the other
unit.
Program segment:
©
:Disp "Press Enter when ready"
:Pause
:GetCalc L1
:Disp "List L1 received"
©
Summary of Contents for Titanium TI-89
Page 9: ...Getting Started 6 TI 89 Titanium keys Ë Ì Í Ê ...
Page 34: ...Getting Started 31 2 or D 2 B u s i n e s s D B D B Press Result ...
Page 43: ...Getting Started 40 3 0 D B D D B D Press Result ...
Page 44: ...Getting Started 41 D 2 0 0 2 D B Scroll down to October and press Press Result ...
Page 58: ...Getting Started 55 Example Set split screen mode to TOP BOTTOM Press Result 3 B D ...
Page 70: ...Getting Started 67 ...
Page 175: ...Operating the Calculator 172 From the Keyboard ...
Page 456: ...Tables 453 ...
Page 527: ...Data Matrix Editor 524 ...