Texas Instruments NS/CLM/1L1/B Reference Guide - Page 36

Explanation of result, elements from, are >2.5 and, are >4.5, The element hello is a string

Page 36 highlights

format( ) format(Value[, formatString]) ⇒ string Returns Value as a character string based on the format template. formatString is a string and must be in the form: "F[n]", "S[n]", "E[n]", "G[n][c]", where [ ] indicate optional portions. F[n]: Fixed format. n is the number of digits to display after the decimal point. S[n]: Scientific format. n is the number of digits to display after the decimal point. E[n]: Engineering format. n is the number of digits after the first significant digit. The exponent is adjusted to a multiple of three, and the decimal point is moved to the right by zero, one, or two digits. G[n][c]: Same as fixed format but also separates digits to the left of the radix into groups of three. c specifies the group separator character and defaults to a comma. If c is a period, the radix will be shown as a comma. [Rc]: Any of the above specifiers may be suffixed with the Rc radix flag, where c is a single character that specifies what to substitute for the radix point. Catalog > fPart( ) fPart(Expr1) ⇒ expression fPart(List1) ⇒ list fPart(Matrix1) ⇒ matrix Returns the fractional part of the argument. For a list or matrix, returns the fractional parts of the elements. The argument can be a real or a complex number. Catalog > FPdf() FPdf(XVal,dfNumer,dfDenom) ⇒ number if XVal is a number, list if XVal is a list Computes the F distribution probability at XVal for the specified dfNumer (degrees of freedom) and dfDenom. Catalog > frequency( ) Catalog > frequency(List1,binsList) ⇒ list Returns a list containing counts of the elements in List1. The counts are based on ranges (bins) that you define in binsList. If binsList is {b(1), b(2), ..., b(n)}, the specified ranges are {?{b(1), b(1)

  • 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

30
TI-Nspire™ Reference Guide
format()
Catalog >
format(
Value
[
, formatString
]
)
string
Returns
Value
as a character string based on the format template.
formatString
is a string and must be in the form: “F[n]”, “S[n]”,
“E[n]”, “G[n][c]”, where [ ] indicate optional portions.
F[n]: Fixed format. n is the number of digits to display after the
decimal point.
S[n]: Scientific format. n is the number of digits to display after the
decimal point.
E[n]: Engineering format. n is the number of digits after the first
significant digit. The exponent is adjusted to a multiple of three, and
the decimal point is moved to the right by zero, one, or two digits.
G[n][c]: Same as fixed format but also separates digits to the left of
the radix into groups of three. c specifies the group separator
character and defaults to a comma. If c is a period, the radix will be
shown as a comma.
[Rc]: Any of the above specifiers may be suffixed with the Rc radix
flag, where c is a single character that specifies what to substitute for
the radix point.
fPart()
Catalog >
fPart(
Expr1
)
expression
fPart(
List1
)
list
fPart(
Matrix1
)
matrix
Returns the fractional part of the argument.
For a list or matrix, returns the fractional parts of the elements.
The argument can be a real or a complex number.
F
Pdf()
Catalog >
F
Pdf(
XVal
,
dfNumer
,
dfDenom
)
number
if
XVal
is a number,
list
if
XVal
is a list
Computes the
F
distribution probability at
XVal
for the
specified
dfNumer
(degrees of freedom) and
dfDenom
.
frequency()
Catalog >
frequency(
List1,binsList
)
list
Returns a list containing counts of the elements in
List1
. The counts
are based on ranges (bins) that you define in
binsList
.
If
binsList
is {b(1), b(2), …, b(n)}, the specified ranges are {
?
{
b(1),
b(1)<
?
{
b(2),…,b(n-1)<
?
{
b(n), b(n)>
?
}. The resulting list is one
element longer than
binsList
.
Each element of the result corresponds to the number of elements
from
List1
that are in the range of that bin. Expressed in terms of the
countIf()
function, the result is { countIf(list,
?
{
b(1)),
countIf(list,
b(1)<
?
{
b(2)), …, countIf(list, b(n-1)<
?
{
b(n)), countIf(list, b(n)>
?
)}.
Elements of
List1
that cannot be “placed in a bin” are ignored.
Within the Lists & Spreadsheet application, you can use a range of
cells in place of both arguments.
Note:
See also
countIf()
, page 18.
Explanation of result:
2
elements from
Datalist
are
{
2.5
4
elements from
Datalist
are >2.5 and
{
4.5
3
elements from
Datalist
are >4.5
The element "hello" is a string and cannot be placed in any of
the defined bins.