Texas Instruments TINSPIRE Reference Guide - Page 96

Catalog &gt, setMode, Integer, Setting Integers, In the Calculator

Page 96 highlights

seqn( ) Catalog > seqn(Expr(u, n [, ListOfInitTerms[, nMax [, CeilingValue]]]) ⇒ list Generate the first 6 terms of the sequence u(n) = u(n-1)/2, with u(1)=2. Generates a list of terms for a sequence u(n)=Expr(u, n) as follows: Increments n from 1 through nMax by 1, evaluates u(n) for corresponding values of n using the Expr(u, n) formula and ListOfInitTerms, and returns the results as a list. seqn(Expr(n [, nMax [, CeilingValue]]) ⇒ list Generates a list of terms for a non-recursive sequence u(n)=Expr(n) as follows: Increments n from 1 through nMax by 1, evaluates u(n) for corresponding values of n using the Expr(n) formula, and returns the results as a list. If nMax is missing, nMax is set to 2500 If nMax=0, nMax is set to 2500 Note: seqn() calls seqGen( ) with n0=1 and nstep =1 setMode() Catalog > setMode(modeNameInteger, settingInteger) setMode(list) ⇒ integer list Valid only within a function or program. ⇒ integer Display approximate value of p using the default setting for Display Digits, and then display p with a setting of Fix2. Check to see that the default is restored after the program executes. setMode(modeNameInteger, settingInteger) temporarily sets mode modeNameInteger to the new setting settingInteger, and returns an integer corresponding to the original setting of that mode. The change is limited to the duration of the program/ function's execution. modeNameInteger specifies which mode you want to set. It must be one of the mode integers from the table below. settingInteger specifies the new setting for the mode. It must be one of the setting integers listed below for the specific mode you are setting. setMode(list) lets you change multiple settings. list contains pairs of mode integers and setting integers. setMode(list) returns a similar list whose integer pairs represent the original modes and settings. If you have saved all mode settings with getMode(0) & var, you can use setMode(var) to restore those settings until the function or program exits. See getMode(), page 42. Note: The current mode settings are passed to called subroutines. If any subroutine changes a mode setting, the mode change will be lost when control returns to the calling routine. Note for entering the example: In the Calculator application on the handheld, you can enter multi-line definitions @ · by pressing instead of at the end of each line. On the computer keyboard, hold down Alt and press Enter. Mode Name Display Digits Angle Mode Integer 1 2 Setting Integers 1=Float, 2=Float1, 3=Float2, 4=Float3, 5=Float4, 6=Float5, 7=Float6, 8=Float7, 9=Float8, 10=Float9, 11=Float10, 12=Float11, 13=Float12, 14=Fix0, 15=Fix1, 16=Fix2, 17=Fix3, 18=Fix4, 19=Fix5, 20=Fix6, 21=Fix7, 22=Fix8, 23=Fix9, 24=Fix10, 25=Fix11, 26=Fix12 1=Radian, 2=Degree, 3=Gradian 90 TI-Nspire™ Reference Guide

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164

90
TI-Nspire™ Reference Guide
seqn()
Catalog >
seqn(
Expr
(
u
,
n
[
,
ListOfInitTerms
[
,
nMax
[
,
CeilingValue
]]]
)
list
Generates a list of terms for a sequence
u
(
n
)=
Expr
(
u
,
n
) as follows:
Increments
n
from 1 through
nMax
by 1, evaluates
u
(
n
) for
corresponding values of
n
using the
Expr
(
u
,
n
) formula and
ListOfInitTerms
, and returns the results as a list.
seqn(
Expr
(
n
[
,
nMax
[
,
CeilingValue
]]
)
list
Generates a list of terms for a non-recursive sequence
u
(
n
)=
Expr
(
n
)
as follows: Increments
n
from 1 through
nMax
by 1, evaluates
u
(
n
)
for corresponding values of
n
using the
Expr
(
n
) formula, and returns
the results as a list.
If
nMax
is missing,
nMax
is set to 2500
If
nMax
=0,
nMax
is set to 2500
Note: seqn()
calls
seqGen( )
with
n0
=
1
and
nstep
=
1
Generate the first 6 terms of the sequence
u
(
n
) =
u
(
n
-1)/2, with
u
(1)=
2
.
setMode()
Catalog >
setMode(
modeNameInteger
,
settingInteger
)
integer
setMode(
list
)
integer list
Valid only within a function or program.
setMode(
modeNameInteger
,
settingInteger
)
temporarily sets
mode
modeNameInteger
to the new setting
settingInteger
, and
returns an integer corresponding to the original setting of that
mode. The change is limited to the duration of the program/
function’s execution.
modeNameInteger
specifies which mode you want to set. It must
be one of the mode integers from the table below.
settingInteger
specifies the new setting for the mode. It must be
one of the setting integers listed below for the specific mode you
are setting.
setMode(
list
)
lets you change multiple settings.
list
contains
pairs of mode integers and setting integers.
setMode(
list
)
returns a similar list whose integer pairs represent the original
modes and settings.
If you have saved all mode settings with
getMode(0)
&
var
,
you can use
setMode(
var
)
to restore those settings until the
function or program exits. See
getMode()
, page 42.
Note:
The current mode settings are passed to called
subroutines. If any subroutine changes a mode setting, the mode
change will be lost when control returns to the calling routine.
Note for entering the example:
In the Calculator
application on the handheld, you can enter multi-line definitions
by pressing
@
instead of
·
at the end of each line. On the
computer keyboard, hold down
Alt
and press
Enter
.
Display approximate value of
p
using the default setting for Display
Digits, and then display
p
with a setting of Fix2. Check to see that
the default is restored after the program executes.
Mode
Name
Mode
Integer
Setting Integers
Display Digits
1
1
=Float,
2
=Float1,
3
=Float2,
4
=Float3,
5
=Float4,
6
=Float5,
7
=Float6,
8
=Float7,
9
=Float8,
10
=Float9,
11
=Float10,
12
=Float11,
13
=Float12,
14
=Fix0,
15
=Fix1,
16
=Fix2,
17
=Fix3,
18
=Fix4,
19
=Fix5,
20
=Fix6,
21
=Fix7,
22
=Fix8,
23
=Fix9,
24
=Fix10,
25
=Fix11,
26
=Fix12
Angle
2
1
=Radian,
2
=Degree,
3
=Gradian