TI-Nspire™ReferenceGuide...decimal(base 10).Theresultisdisplayedin binary,regardlessoftheBasemode....
Transcript of TI-Nspire™ReferenceGuide...decimal(base 10).Theresultisdisplayedin binary,regardlessoftheBasemode....
TI-Nspire™ Reference Guide
This guidebook applies to TI-Nspire™ software version 4.5. To obtain the latest versionof the documentation, go to education.ti.com/go/download.
Important InformationExcept as otherwise expressly stated in the License that accompanies a program, TexasInstruments makes no warranty, either express or implied, including but not limited toany implied warranties of merchantability and fitness for a particular purpose,regarding any programs or book materials and makes such materials available solelyon an "as-is" basis. In no event shall Texas Instruments be liable to anyone for special,collateral, incidental, or consequential damages in connection with or arising out of thepurchase or use of these materials, and the sole and exclusive liability of TexasInstruments, regardless of the form of action, shall not exceed the amount set forth inthe license for the program. Moreover, Texas Instruments shall not be liable for anyclaim of any kind whatsoever against the use of these materials by any other party.
License
Please see the complete license installed in C:\Program Files\TI Education\<TI-Nspire™Product Name>\license.
© 2006 - 2017 Texas Instruments Incorporated
ii
Contents
Important Information ii
Expression Templates 1
Alphabetical Listing 7A 7B 15C 19D 34E 43F 50G 57I 67L 75M 90N 98O 106P 108Q 115R 118S 132T 151U 163V 163W 164X 166Z 167
iii
iv
Symbols 173
Empty (Void) Elements 196
Shortcuts for Entering Math Expressions 198
EOS™ (Equation Operating System) Hierarchy 200
Constants and Values 202
Error Codes and Messages 203
Warning Codes and Messages 211
Support and Service 213Texas Instruments Support and Service 213Service and Warranty Information 213
Index 214
Expression TemplatesExpression templates give you an easy way to enter math expressions in standardmathematical notation. When you insert a template, it appears on the entry line withsmall blocks at positions where you can enter elements. A cursor shows which elementyou can enter.
Position the cursor on each element, and type a value or expression for the element.
Fraction template /p keys
Note: See also / (divide), page 175.
Example:
Exponent template l key
Note: Type the first value, pressl, andthen type the exponent. To return the cursorto the baseline, press right arrow (¢).
Note: See also ^ (power), page 176.
Example:
Square root template /q keys
Note: See also √() (square root), page185.
Example:
Nth root template /l keys
Note: See also root(), page 129.
Example:
Expression Templates 1
2 Expression Templates
Nth root template /l keys
e exponent template u keys
Natural exponential e raised to a power
Note: See also e^(), page 43.
Example:
Log template /s key
Calculates log to a specified base. For adefault of base 10, omit the base.
Note: See also log(), page 86.
Example:
Piecewise template (2-piece) Catalog >
Lets you create expressions and conditionsfor a two-piece piecewise function. To adda piece, click in the template and repeat thetemplate.
Note: See also piecewise(), page 110.
Example:
Piecewise template (N-piece) Catalog >Lets you create expressions and conditionsfor an N-piece piecewise function. Promptsfor N.
Example:
See the example for Piecewise template (2-piece).
Piecewise template (N-piece) Catalog >
Note: See also piecewise(), page 110.
System of 2 equations template Catalog >
Creates a system of two linear equations.To add a row to an existing system, click inthe template and repeat the template.
Note: See also system(), page 150.
Example:
System of N equations template Catalog >Lets you create a system of N linearequations. Prompts for N.
Note: See also system(), page 150.
Example:
See the example for Systemof equationstemplate (2-equation).
Absolute value template Catalog >
Note: See also abs(), page 7.Example:
Expression Templates 3
4 Expression Templates
dd°mm’ss.ss’’ template Catalog >
Lets you enter angles in dd°mm’ss.ss’’format, where dd is the number of decimaldegrees, mm is the number of minutes, andss.ss is the number of seconds.
Example:
Matrix template (2 x 2) Catalog >
Creates a 2 x 2 matrix.
Example:
Matrix template (1 x 2) Catalog >
.Example:
Matrix template (2 x 1) Catalog >Example:
Matrix template (m x n) Catalog >The template appears after you areprompted to specify the number of rowsand columns.
Example:
Matrix template (m x n) Catalog >Note: If you create a matrix with a largenumber of rows and columns, it may take afew moments to appear.
Sum template (Σ) Catalog >
Note: See also Σ() (sumSeq), page 186.
Example:
Product template (Π) Catalog >
Note: See alsoΠ() (prodSeq), page 185.
Example:
First derivative template Catalog >
The first derivative template can be used tocalculate first derivative at a pointnumerically, using auto differentiationmethods.
Note: See also d() (derivative), page 184.
Example:
Second derivative template Catalog >Example:
Expression Templates 5
6 Expression Templates
Second derivative template Catalog >The second derivative template can be usedto calculate second derivative at a pointnumerically, using auto differentiationmethods.
Note: See also d() (derivative), page 184.
Definite integral template Catalog >
The definite integral template can be usedto calculate the definite integralnumerically, using the same method as nInt().
Note: See also nInt(), page 101.
Example:
Alphabetical ListingItems whose names are not alphabetic (such as +, !, and >) are listed at the end of thissection, page 173. Unless otherwise specified, all examples in this section wereperformed in the default reset mode, and all variables are assumed to be undefined.
A
abs() Catalog >
abs(Value1) ⇒ valueabs(List1) ⇒ listabs(Matrix1) ⇒ matrix
Returns the absolute value of theargument.
Note: See also Absolute value template,page 3.
If the argument is a complex number,returns the number’s modulus.
amortTbl() Catalog >amortTbl(NPmt,N,I,PV, [Pmt], [FV],[PpY], [CpY], [PmtAt], [roundValue]) ⇒matrix
Amortization function that returns a matrixas an amortization table for a set of TVMarguments.
NPmt is the number of payments to beincluded in the table. The table starts withthe first payment.
N, I, PV, Pmt, FV, PpY, CpY, and PmtAtare described in the table of TVMarguments, page 161.
• If you omit Pmt, it defaults toPmt=tvmPmt(N,I,PV,FV,PpY,CpY,PmtAt).
• If you omit FV, it defaults to FV=0.• The defaults for PpY, CpY, and PmtAt
are the same as for the TVM functions.
roundValue specifies the number ofdecimal places for rounding. Default=2.
Alphabetical Listing 7
8 Alphabetical Listing
amortTbl() Catalog >The columns in the result matrix are in thisorder: Payment number, amount paid tointerest, amount paid to principal, andbalance.
The balance displayed in row n is thebalance after payment n.
You can use the output matrix as input forthe other amortization functions ΣInt() andΣPrn(), page 186, and bal(), page 15.
and Catalog >BooleanExpr1 and BooleanExpr2 ⇒Boolean expression
BooleanList1 and BooleanList2 ⇒Boolean list
BooleanMatrix1 and BooleanMatrix2 ⇒Boolean matrix
Returns true or false or a simplified form ofthe original entry.
Integer1 andInteger2 ⇒ integer
Compares two real integers bit-by-bit usingan and operation. Internally, both integersare converted to signed, 64-bit binarynumbers. When corresponding bits arecompared, the result is 1 if both bits are 1;otherwise, the result is 0. The returnedvalue represents the bit results, and isdisplayed according to the Base mode.
You can enter the integers in any numberbase. For a binary or hexadecimal entry, youmust use the 0b or 0h prefix, respectively.Without a prefix, integers are treated asdecimal (base 10).
InHex basemode:
Important: Zero, not the letter O.
In Bin basemode:
InDec basemode:
Note: A binary entry canhave up to 64 digits(not counting the 0bprefix). A hexadecimalentry canhave up to 16 digits.
angle() Catalog >angle(Value1) ⇒ value InDegree anglemode:
angle() Catalog >Returns the angle of the argument,interpreting the argument as a complexnumber.
InGradian anglemode:
In Radian anglemode:
angle(List1) ⇒ listangle(Matrix1) ⇒ matrix
Returns a list or matrix of angles of theelements in List1 orMatrix1, interpretingeach element as a complex number thatrepresents a two-dimensional rectangularcoordinate point.
ANOVA Catalog >ANOVA List1,List2[,List3,...,List20][,Flag]
Performs a one-way analysis of variance forcomparing the means of two to 20populations. A summary of results is storedin the stat.results variable. (page 145)
Flag=0 for Data, Flag=1 for Stats
Output variable Description
stat.F Value of the F statistic
stat.PVal Smallest level of significance atwhich the null hypothesis canbe rejected
stat.df Degrees of freedomof the groups
stat.SS Sumof squares of the groups
stat.MS Mean squares for the groups
stat.dfError Degrees of freedomof the errors
stat.SSError Sumof squares of the errors
Alphabetical Listing 9
10 Alphabetical Listing
Output variable Description
stat.MSError Mean square for the errors
stat.sp Pooled standarddeviation
stat.xbarlist Meanof the input of the lists
stat.CLowerList 95%confidence intervals for themeanof each input list
stat.CUpperList 95%confidence intervals for themeanof each input list
ANOVA2way Catalog >ANOVA2way List1,List2[,List3,…,List10][,levRow]
Computes a two-way analysis of variance forcomparing the means of two to 10populations. A summary of results is storedin the stat.results variable. (See page 145.)
LevRow=0 for Block
LevRow=2,3,...,Len-1, for Two Factor,where Len=length(List1)=length(List2) = …= length(List10) and Len / LevRow Î {2,3,…}
Outputs: Block Design
Output variable Description
stat.F F statistic of the column factor
stat.PVal Smallest level of significance atwhich the null hypothesis canbe rejected
stat.df Degrees of freedomof the column factor
stat.SS Sumof squares of the column factor
stat.MS Mean squares for column factor
stat.FBlock F statistic for factor
stat.PValBlock Least probability atwhich the null hypothesis canbe rejected
stat.dfBlock Degrees of freedom for factor
stat.SSBlock Sumof squares for factor
stat.MSBlock Mean squares for factor
stat.dfError Degrees of freedomof the errors
Output variable Description
stat.SSError Sumof squares of the errors
stat.MSError Mean squares for the errors
stat.s Standarddeviationof the error
COLUMN FACTOR Outputs
Output variable Description
stat.Fcol F statistic of the column factor
stat.PValCol Probability value of the column factor
stat.dfCol Degrees of freedomof the column factor
stat.SSCol Sumof squares of the column factor
stat.MSCol Mean squares for column factor
ROW FACTOR Outputs
Output variable Description
stat.FRow F statistic of the row factor
stat.PValRow Probability value of the row factor
stat.dfRow Degrees of freedomof the row factor
stat.SSRow Sumof squares of the row factor
stat.MSRow Mean squares for row factor
INTERACTION Outputs
Output variable Description
stat.FInteract F statistic of the interaction
stat.PValInteract Probability value of the interaction
stat.dfInteract Degrees of freedomof the interaction
stat.SSInteract Sumof squares of the interaction
stat.MSInteract Mean squares for interaction
ERROR Outputs
Alphabetical Listing 11
12 Alphabetical Listing
Output variable Description
stat.dfError Degrees of freedomof the errors
stat.SSError Sumof squares of the errors
stat.MSError Mean squares for the errors
s Standarddeviationof the error
Ans /v keysAns ⇒ value
Returns the result of the most recentlyevaluated expression.
approx() Catalog >approx(Value1) ⇒ number
Returns the evaluation of the argument asan expression containing decimal values,when possible, regardless of the currentAuto or Approximate mode.
This is equivalent to entering the argumentand pressing/·.
approx(List1) ⇒ listapprox(Matrix1) ⇒ matrix
Returns a list or matrix where eachelement has been evaluated to a decimalvalue, when possible.
►approxFraction() Catalog >Value►approxFraction([Tol]) ⇒ value
List►approxFraction([Tol]) ⇒ list
Matrix►approxFraction([Tol]) ⇒ matrix
Returns the input as a fraction, using atolerance of Tol. If Tol is omitted, atolerance of 5.E-14 is used.
►approxFraction() Catalog >Note: You can insert this function from thecomputer keyboard by typing@>approxFraction(...).
approxRational() Catalog >approxRational(Value[, Tol]) ⇒ value
approxRational(List[, Tol]) ⇒ list
approxRational(Matrix[, Tol]) ⇒ matrix
Returns the argument as a fraction using atolerance of Tol. If Tol is omitted, atolerance of 5.E-14 is used.
arccos() See cos⁻¹(), page 26.
arccosh() See cosh⁻¹(), page 27.
arccot() See cot⁻¹(), page 28.
arccoth() See coth⁻¹(), page 29.
arccsc() See csc⁻¹(), page 31.
arccsch() See csch⁻¹(), page 32.
Alphabetical Listing 13
14 Alphabetical Listing
arcsec() See sec⁻¹(), page 133.
arcsech() See sech⁻¹(), page 133.
arcsin() See sin⁻¹(), page 141.
arcsinh() See sinh⁻¹(), page 142.
arctan() See tan⁻¹(), page 152.
arctanh() See tanh⁻¹(), page 153.
augment() Catalog >augment(List1, List2) ⇒ list
Returns a new list that is List2 appended tothe end of List1.augment(Matrix1,Matrix2) ⇒ matrix
Returns a new matrix that is Matrix2appended toMatrix1. When the “,”character is used, the matrices must haveequal row dimensions, andMatrix2 isappended toMatrix1 as new columns.Does not alterMatrix1 orMatrix2.
avgRC() Catalog >avgRC(Expr1, Var [=Value] [, Step]) ⇒expression
avgRC(Expr1, Var [=Value] [, List1]) ⇒list
avgRC(List1, Var [=Value] [, Step]) ⇒list
avgRC(Matrix1, Var [=Value] [, Step]) ⇒matrix
Returns the forward-difference quotient(average rate of change).
Expr1 can be a user-defined function name(see Func).
When Value is specified, it overrides anyprior variable assignment or any current “|”substitution for the variable.
Step is the step value. If Step is omitted, itdefaults to 0.001.
Note that the similar function centralDiff()uses the central-difference quotient.
B
bal() Catalog >bal(NPmt,N,I,PV ,[Pmt], [FV], [PpY],[CpY], [PmtAt], [roundValue]) ⇒ value
bal(NPmt,amortTable) ⇒ value
Amortization function that calculatesschedule balance after a specified payment.
N, I, PV, Pmt, FV, PpY, CpY, and PmtAtare described in the table of TVMarguments, page 161.
NPmt specifies the payment number afterwhich you want the data calculated.
N, I, PV, Pmt, FV, PpY, CpY, and PmtAtare described in the table of TVMarguments, page 161.
Alphabetical Listing 15
16 Alphabetical Listing
bal() Catalog >• If you omit Pmt, it defaults to
Pmt=tvmPmt(N,I,PV,FV,PpY,CpY,PmtAt).
• If you omit FV, it defaults to FV=0.• The defaults for PpY, CpY, and PmtAt
are the same as for the TVM functions.
roundValue specifies the number ofdecimal places for rounding. Default=2.
bal(NPmt,amortTable) calculates thebalance after payment number NPmt,based on amortization table amortTable.The amortTable argument must be amatrix in the form described underamortTbl(), page 7.
Note: See also ΣInt() and ΣPrn(), page 186.
►Base2 Catalog >Integer1►Base2⇒ integer
Note: You can insert this operator from thecomputer keyboard by typing @>Base2.
Converts Integer1 to a binary number.Binary or hexadecimal numbers alwayshave a 0b or 0h prefix, respectively. Use azero, not the letter O, followed by b or h.
0b binaryNumber0h hexadecimalNumberA binary number can have up to 64 digits. Ahexadecimal number can have up to 16.
Without a prefix, Integer1 is treated asdecimal (base 10). The result is displayed inbinary, regardless of the Base mode.
Negative numbers are displayed in “two'scomplement” form. For example,
⁻1 is displayed as0hFFFFFFFFFFFFFFFF in Hex base mode0b111...111 (64 1’s) in Binary base mode
⁻263 is displayed as0h8000000000000000 in Hex base mode0b100...000 (63 zeros) in Binary base mode
►Base2 Catalog >If you enter a decimal integer that isoutside the range of a signed, 64-bit binaryform, a symmetric modulo operation isused to bring the value into the appropriaterange. Consider the following examples ofvalues outside the range.
263 becomes ⁻263 and is displayed as0h8000000000000000 in Hex base mode0b100...000 (63 zeros) in Binary base mode
264 becomes 0 and is displayed as0h0 in Hex base mode0b0 in Binary base mode
⁻263− 1 becomes 263 − 1 and is displayedas0h7FFFFFFFFFFFFFFF in Hex base mode0b111...111 (64 1’s) in Binary base mode
►Base10 Catalog >Integer1►Base10⇒ integer
Note: You can insert this operator from thecomputer keyboard by typing @>Base10.
Converts Integer1 to a decimal (base 10)number. A binary or hexadecimal entrymust always have a 0b or 0h prefix,respectively.
0b binaryNumber0h hexadecimalNumber
Zero, not the letter O, followed by b or h.
A binary number can have up to 64 digits. Ahexadecimal number can have up to 16.
Without a prefix, Integer1 is treated asdecimal. The result is displayed in decimal,regardless of the Base mode.
►Base16 Catalog >Integer1►Base16⇒ integer
Note: You can insert this operator from thecomputer keyboard by typing @>Base16.
Alphabetical Listing 17
18 Alphabetical Listing
►Base16 Catalog >Converts Integer1 to a hexadecimalnumber. Binary or hexadecimal numbersalways have a 0b or 0h prefix, respectively.
0b binaryNumber0h hexadecimalNumber
Zero, not the letter O, followed by b or h.
A binary number can have up to 64 digits. Ahexadecimal number can have up to 16.
Without a prefix, Integer1 is treated asdecimal (base 10). The result is displayed inhexadecimal, regardless of the Base mode.
If you enter a decimal integer that is toolarge for a signed, 64-bit binary form, asymmetric modulo operation is used tobring the value into the appropriate range.For more information, see►Base2, page16.
binomCdf() Catalog >binomCdf(n,p) ⇒ list
binomCdf(n,p,lowBound,upBound) ⇒number if lowBound and upBound arenumbers, list if lowBound and upBound arelists
binomCdf(n,p,upBound)for P(0≤X≤upBound)⇒ number if upBound is a number, list ifupBound is a list
Computes a cumulative probability for thediscrete binomial distribution with n numberof trials and probability p of success on eachtrial.
For P(X ≤ upBound), set lowBound=0
binomPdf() Catalog >binomPdf(n,p) ⇒ list
binomPdf(n,p,XVal) ⇒ number if XVal is anumber, list if XVal is a list
binomPdf() Catalog >Computes a probability for the discretebinomial distribution with n number of trialsand probability p of success on each trial.
C
Catalog >ceiling(Value1) ⇒ value
Returns the nearest integer that is ≥ theargument.
The argument can be a real or a complexnumber.
Note: See also floor().
ceiling(List1) ⇒ listceiling(Matrix1) ⇒ matrix
Returns a list or matrix of the ceiling ofeach element.
centralDiff() Catalog >centralDiff(Expr1,Var [=Value][,Step]) ⇒expression
centralDiff(Expr1,Var [,Step])|Var=Value⇒ expression
centralDiff(Expr1,Var [=Value][,List]) ⇒list
centralDiff(List1,Var [=Value][,Step]) ⇒list
centralDiff(Matrix1,Var [=Value][,Step])⇒ matrix
Returns the numerical derivative using thecentral difference quotient formula.
When Value is specified, it overrides anyprior variable assignment or any current “|”substitution for the variable.
Step is the step value. If Step is omitted, itdefaults to 0.001.
Alphabetical Listing 19
20 Alphabetical Listing
centralDiff() Catalog >When using List1 orMatrix1, the operationgets mapped across the values in the list oracross the matrix elements.
Note: See also avgRC().
char() Catalog >char(Integer) ⇒ character
Returns a character string containing thecharacter numbered Integer from thehandheld character set. The valid range forInteger is 0–65535.
χ22way Catalog >χ22way obsMatrix
chi22way obsMatrix
Computes a χ2 test for association on thetwo-way table of counts in the observedmatrix obsMatrix. A summary of results isstored in the stat.results variable. (page145)
For information on the effect of emptyelements in a matrix, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.χ2 Chi square stat: sum (observed - expected)2/expected
stat.PVal Smallest level of significance atwhich the null hypothesis canbe rejected
stat.df Degrees of freedom for the chi square statistics
stat.ExpMat Matrix of expectedelemental count table, assuming null hypothesis
stat.CompMat Matrix of elemental chi square statistic contributions
χ2Cdf() Catalog >χ2Cdf(lowBound,upBound,df) ⇒ number iflowBound and upBound are numbers, list iflowBound and upBound are lists
χ2Cdf() Catalog >chi2Cdf(lowBound,upBound,df) ⇒ numberif lowBound and upBound are numbers, listif lowBound and upBound are lists
Computes the χ2 distribution probabilitybetween lowBound and upBound for thespecified degrees of freedom df.
For P(X ≤ upBound), set lowBound = 0.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
χ2GOF Catalog >χ2GOF obsList,expList,df
chi2GOF obsList,expList,df
Performs a test to confirm that sample datais from a population that conforms to aspecified distribution. obsList is a list ofcounts and must contain integers. Asummary of results is stored in thestat.results variable. (See page 145.)
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.χ2 Chi square stat: sum((observed - expected)2/expected
stat.PVal Smallest level of significance atwhich the null hypothesis canbe rejected
stat.df Degrees of freedom for the chi square statistics
stat.CompList Elemental chi square statistic contributions
χ2Pdf() Catalog >χ2Pdf(XVal,df) ⇒ number if XVal is anumber, list if XVal is a list
chi2Pdf(XVal,df) ⇒ number if XVal is anumber, list if XVal is a list
Alphabetical Listing 21
22 Alphabetical Listing
χ2Pdf() Catalog >Computes the probability density function(pdf) for the χ2 distribution at a specifiedXVal value for the specified degrees offreedom df.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
ClearAZ Catalog >ClearAZ
Clears all single-character variables in thecurrent problem space.
If one or more of the variables are locked,this command displays an error messageand deletes only the unlocked variables. SeeunLock, page 163.
ClrErr Catalog >ClrErr
Clears the error status and sets systemvariable errCode to zero.
The Else clause of the Try...Else...EndTryblock should use ClrErr or PassErr. If theerror is to be processed or ignored, useClrErr. If what to do with the error is notknown, use PassErr to send it to the nexterror handler. If there are no more pendingTry...Else...EndTry error handlers, the errordialog box will be displayed as normal.
Note: See also PassErr, page 109, and Try,page 157.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your product guidebook.
For anexample of ClrErr, See Example 2under the Try command, page 157.
colAugment() Catalog >colAugment(Matrix1,Matrix2) ⇒ matrix
Returns a new matrix that is Matrix2appended toMatrix1. The matrices musthave equal column dimensions, andMatrix2 is appended toMatrix1 as newrows. Does not alterMatrix1 orMatrix2.
colDim() Catalog >colDim(Matrix) ⇒ expression
Returns the number of columns containedinMatrix.
Note: See also rowDim().
colNorm() Catalog >colNorm(Matrix) ⇒ expression
Returns the maximum of the sums of theabsolute values of the elements in thecolumns inMatrix.
Note: Undefined matrix elements are notallowed. See also rowNorm().
conj() Catalog >conj(Value1) ⇒ value
conj(List1) ⇒ list
conj(Matrix1) ⇒ matrix
Returns the complex conjugate of theargument.
Alphabetical Listing 23
24 Alphabetical Listing
constructMat() Catalog >constructMat(Expr,Var1,Var2,numRows,numCols) ⇒matrix
Returns a matrix based on the arguments.
Expr is an expression in variables Var1 andVar2. Elements in the resulting matrix areformed by evaluating Expr for eachincremented value of Var1 and Var2.
Var1 is automatically incremented from 1through numRows. Within each row, Var2is incremented from 1 through numCols.
CopyVar Catalog >CopyVar Var1, Var2
CopyVar Var1., Var2.
CopyVar Var1, Var2 copies the value ofvariable Var1 to variable Var2, creatingVar2 if necessary. Variable Var1must havea value.
If Var1 is the name of an existing user-defined function, copies the definition ofthat function to function Var2. FunctionVar1must be defined.
Var1must meet the variable-namingrequirements or must be an indirectionexpression that simplifies to a variablename meeting the requirements.
CopyVar Var1., Var2. copies all membersof the Var1. variable group to the Var2.group, creating Var2. if necessary.
Var1. must be the name of an existingvariable group, such as the statistics stat.nnresults, or variables created using theLibShortcut() function. If Var2. alreadyexists, this command replaces all membersthat are common to both groups and addsthe members that do not already exist. Ifone or more members of Var2. are locked,all members of Var2. are left unchanged.
corrMat() Catalog >corrMat(List1,List2[,…[,List20]])
Computes the correlation matrix for theaugmented matrix [List1, List2, ..., List20].
cos() µ keycos(Value1) ⇒ value
cos(List1) ⇒ list
cos(Value1) returns the cosine of theargument as a value.
cos(List1) returns a list of the cosines of allelements in List1.
Note: The argument is interpreted as adegree, gradian or radian angle, accordingto the current angle mode setting. You canuse °, G, or r to override the angle modetemporarily.
InDegree anglemode:
InGradian anglemode:
In Radian anglemode:
cos(squareMatrix1) ⇒ squareMatrix
Returns the matrix cosine ofsquareMatrix1. This is not the same ascalculating the cosine of each element.
When a scalar function f(A) operates onsquareMatrix1 (A), the result is calculatedby the algorithm:
Compute the eigenvalues (λi) and
eigenvectors (Vi) of A.
squareMatrix1must be diagonalizable.Also, it cannot have symbolic variables thathave not been assigned a value.
Form the matrices:
In Radian anglemode:
Alphabetical Listing 25
26 Alphabetical Listing
cos() µ keyThen A = X B X⁻¹ and f(A) = X f(B) X⁻¹. Forexample, cos(A) = X cos(B) X⁻¹ where:
cos(B) =
All computations are performed usingfloating-point arithmetic.
cos⁻¹() µ key
cos⁻¹(Value1) ⇒ valuecos⁻¹(List1) ⇒ list
cos⁻¹(Value1) returns the angle whosecosine is Value1.
cos⁻¹(List1) returns a list of the inversecosines of each element of List1.
Note: The result is returned as a degree,gradian or radian angle, according to thecurrent angle mode setting.
Note: You can insert this function from thekeyboard by typing arccos(...).
InDegree anglemode:
InGradian anglemode:
In Radian anglemode:
cos⁻¹(squareMatrix1) ⇒ squareMatrix
Returns the matrix inverse cosine ofsquareMatrix1. This is not the same ascalculating the inverse cosine of eachelement. For information about thecalculation method, refer to cos().
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
In Radian anglemode andRectangularComplex Format:
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
cosh() Catalog >InDegree anglemode:
cosh() Catalog >cosh(Value1) ⇒ valuecosh(List1) ⇒ list
cosh(Value1) returns the hyperbolic cosineof the argument.
cosh(List1) returns a list of the hyperboliccosines of each element of List1.cosh(squareMatrix1) ⇒ squareMatrix
Returns the matrix hyperbolic cosine ofsquareMatrix1. This is not the same ascalculating the hyperbolic cosine of eachelement. For information about thecalculation method, refer to cos().
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
In Radian anglemode:
cosh⁻¹() Catalog >
cosh⁻¹(Value1) ⇒ valuecosh⁻¹(List1) ⇒ list
cosh⁻¹(Value1) returns the inversehyperbolic cosine of the argument.
cosh⁻¹(List1) returns a list of the inversehyperbolic cosines of each element ofList1.
Note: You can insert this function from thekeyboard by typing arccosh(...).
cosh⁻¹(squareMatrix1) ⇒ squareMatrix
Returns the matrix inverse hyperboliccosine of squareMatrix1. This is not thesame as calculating the inverse hyperboliccosine of each element. For informationabout the calculation method, refer to cos().
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
In Radian anglemode and InRectangularComplex Format:
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
Alphabetical Listing 27
28 Alphabetical Listing
cot() µ key
cot(Value1) ⇒ valuecot(List1) ⇒ list
Returns the cotangent of Value1 or returnsa list of the cotangents of all elements inList1.
Note: The argument is interpreted as adegree, gradian or radian angle, accordingto the current angle mode setting. You canuse °, G, or r to override the angle modetemporarily.
InDegree anglemode:
InGradian anglemode:
In Radian anglemode:
cot⁻¹() µ key
cot⁻¹(Value1) ⇒ valuecot⁻¹(List1) ⇒ list
Returns the angle whose cotangent isValue1 or returns a list containing theinverse cotangents of each element ofList1.
Note: The result is returned as a degree,gradian or radian angle, according to thecurrent angle mode setting.
Note: You can insert this function from thekeyboard by typing arccot(...).
InDegree anglemode:
InGradian anglemode:
In Radian anglemode:
coth() Catalog >
coth(Value1) ⇒ valuecoth(List1) ⇒ list
Returns the hyperbolic cotangent of Value1or returns a list of the hyperboliccotangents of all elements of List1.
coth⁻¹() Catalog >
coth⁻¹(Value1) ⇒ valuecoth⁻¹(List1) ⇒ list
Returns the inverse hyperbolic cotangent ofValue1 or returns a list containing theinverse hyperbolic cotangents of eachelement of List1.
Note: You can insert this function from thekeyboard by typing arccoth(...).
count() Catalog >count(Value1orList1 [,Value2orList2[,...]]) ⇒ value
Returns the accumulated count of allelements in the arguments that evaluate tonumeric values.
Each argument can be an expression, value,list, or matrix. You can mix data types anduse arguments of various dimensions.
For a list, matrix, or range of cells, eachelement is evaluated to determine if itshould be included in the count.
Within the Lists & Spreadsheet application,you can use a range of cells in place of anyargument.
Empty (void) elements are ignored. Formore information on empty elements, seepage 196.
countif() Catalog >countif(List,Criteria) ⇒ value
Returns the accumulated count of allelements in List that meet the specifiedCriteria.
Criteria can be:
• A value, expression, or string. For
Counts the number of elements equal to 3.
Alphabetical Listing 29
30 Alphabetical Listing
countif() Catalog >example, 3 counts only those elements inList that simplify to the value 3.
• A Boolean expression containing thesymbol ? as a placeholder for eachelement. For example, ?<5 counts onlythose elements in List that are less than5.
Within the Lists & Spreadsheet application,you can use a range of cells in place of List.
Empty (void) elements in the list areignored. For more information on emptyelements, see page 196.
Note: See also sumIf(), page 149, andfrequency(), page 55.
Counts the number of elements equal to“def.”
Counts 1 and3.
Counts 3, 5, and7.
Counts 1, 3, 7, and9.
cPolyRoots() Catalog >cPolyRoots(Poly,Var) ⇒ list
cPolyRoots(ListOfCoeffs) ⇒ list
The first syntax, cPolyRoots(Poly,Var),returns a list of complex roots ofpolynomial Poly with respect to variableVar.
Poly must be a polynomial in expandedform in one variable. Do not useunexpanded forms such as y2•y+1 orx•x+2•x+1The second syntax, cPolyRoots(ListOfCoeffs), returns a list of complexroots for the coefficients in ListOfCoeffs.
Note: See also polyRoots(), page 112.
crossP() Catalog >crossP(List1, List2) ⇒ list
Returns the cross product of List1 andList2 as a list.
crossP() Catalog >List1 and List2must have equaldimension, and the dimension must beeither 2 or 3.
crossP(Vector1, Vector2) ⇒ vector
Returns a row or column vector (dependingon the arguments) that is the cross productof Vector1 and Vector2.
Both Vector1 and Vector2must be rowvectors, or both must be column vectors.Both vectors must have equal dimension,and the dimension must be either 2 or 3.
csc() µ key
csc(Value1) ⇒ valuecsc(List1) ⇒ list
Returns the cosecant of Value1 or returns alist containing the cosecants of all elementsin List1.
InDegree anglemode:
InGradian anglemode:
In Radian anglemode:
csc⁻¹() µ key
csc⁻¹(Value1) ⇒valuecsc⁻¹(List1) ⇒ list
Returns the angle whose cosecant isValue1 or returns a list containing theinverse cosecants of each element of List1.
Note: The result is returned as a degree,gradian or radian angle, according to thecurrent angle mode setting.
Note: You can insert this function from thekeyboard by typing arccsc(...).
InDegree anglemode:
InGradian anglemode:
In Radian anglemode:
Alphabetical Listing 31
32 Alphabetical Listing
csch() Catalog >csch(Value1) ⇒ value
csch(List1) ⇒ list
Returns the hyperbolic cosecant of Value1or returns a list of the hyperbolic cosecantsof all elements of List1.
csch⁻¹() Catalog >
csch⁻¹(Value) ⇒ valuecsch⁻¹(List1) ⇒ list
Returns the inverse hyperbolic cosecant ofValue1 or returns a list containing theinverse hyperbolic cosecants of eachelement of List1.
Note: You can insert this function from thekeyboard by typing arccsch(...).
CubicReg Catalog >CubicReg X, Y[, [Freq] [, Category,Include]]
Computes the cubic polynomial regressiony=a•x3+b•x2+c•x+d on lists X and Y withfrequency Freq. A summary of results isstored in the stat.results variable. (See page145.)
All the lists must have equal dimensionexcept for Include.
X and Y are lists of independent anddependent variables.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Category is a list of numeric or stringcategory codes for the corresponding X andY data.
CubicReg Catalog >Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Outputvariable Description
stat.RegEqn Regressionequation: a•x3+b•x2+c•x+d
stat.a, stat.b,stat.c, stat.d
Regression coefficients
stat.R2 Coefficient of determination
stat.Resid Residuals from the regression
stat.XReg List of data points in themodifiedX List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.YReg List of data points in themodifiedY List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.FreqReg List of frequencies corresponding to stat.XReg and stat.YReg
cumulativeSum() Catalog >cumulativeSum(List1) ⇒ list
Returns a list of the cumulative sums of theelements in List1, starting at element 1.
cumulativeSum(Matrix1) ⇒ matrix
Returns a matrix of the cumulative sums ofthe elements inMatrix1. Each element isthe cumulative sum of the column from topto bottom.
An empty (void) element in List1 orMatrix1 produces a void element in theresulting list or matrix. For moreinformation on empty elements, see page196.
Alphabetical Listing 33
34 Alphabetical Listing
Cycle Catalog >Cycle
Transfers control immediately to the nextiteration of the current loop (For, While, orLoop).
Cycle is not allowed outside the threelooping structures (For, While, or Loop).
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
Function listing that sums the integers from1to 100 skipping 50.
►Cylind Catalog >Vector►Cylind
Note: You can insert this operator from thecomputer keyboard by typing @>Cylind.
Displays the row or column vector incylindrical form [r,∠θ, z].
Vector must have exactly three elements.It can be either a row or a column.
D
dbd() Catalog >dbd(date1,date2) ⇒ value
Returns the number of days between date1and date2 using the actual-day-countmethod.
date1 and date2 can be numbers or lists ofnumbers within the range of the dates onthe standard calendar. If both date1 anddate2 are lists, they must be the samelength.
date1 and date2must be between theyears 1950 through 2049.
dbd() Catalog >You can enter the dates in either of twoformats. The decimal placementdifferentiates between the date formats.
MM.DDYY (format used commonly in theUnited States)DDMM.YY (format use commonly inEurope)
►DD Catalog >Expr1►DD ⇒ valueList1►DD ⇒ listMatrix1►DD ⇒ matrix
Note: You can insert this operator from thecomputer keyboard by typing @>DD.
Returns the decimal equivalent of theargument expressed in degrees. Theargument is a number, list, or matrix that isinterpreted by the Angle mode setting ingradians, radians or degrees.
InDegree anglemode:
InGradian anglemode:
In Radian anglemode:
►Decimal Catalog >Number1►Decimal ⇒ value
List1►Decimal ⇒ value
Matrix1►Decimal ⇒ value
Note: You can insert this operator from thecomputer keyboard by typing @>Decimal.
Displays the argument in decimal form.This operator can be used only at the end ofthe entry line.
Define Catalog >Define Var = Expression
Alphabetical Listing 35
36 Alphabetical Listing
Define Catalog >Define Function(Param1, Param2, ...) =Expression
Defines the variable Var or the user-defined function Function.
Parameters, such as Param1, provideplaceholders for passing arguments to thefunction. When calling a user-definedfunction, you must supply arguments (forexample, values or variables) thatcorrespond to the parameters. When called,the function evaluates Expression usingthe supplied arguments.
Var and Function cannot be the name of asystem variable or built-in function orcommand.
Note: This form of Define is equivalent toexecuting the expression: expression→Function(Param1,Param2).Define Function(Param1, Param2, ...) =Func BlockEndFunc
Define Program(Param1, Param2, ...) =Prgm BlockEndPrgm
In this form, the user-defined function orprogram can execute a block of multiplestatements.
Block can be either a single statement or aseries of statements on separate lines.Block also can include expressions andinstructions (such as If, Then, Else, and For).
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
Define Catalog >Note: See also Define LibPriv, page 37, andDefine LibPub, page 37.
Define LibPriv Catalog >Define LibPriv Var = ExpressionDefine LibPriv Function(Param1, Param2,...) = Expression
Define LibPriv Function(Param1, Param2,...) = Func BlockEndFunc
Define LibPriv Program(Param1, Param2,...) = Prgm BlockEndPrgm
Operates the same as Define, except definesa private library variable, function, orprogram. Private functions and programs donot appear in the Catalog.
Note: See also Define, page 35, and DefineLibPub, page 37.
Define LibPub Catalog >Define LibPub Var = ExpressionDefine LibPub Function(Param1, Param2,...) = Expression
Define LibPub Function(Param1, Param2,...) = Func BlockEndFunc
Define LibPub Program(Param1, Param2,...) = Prgm BlockEndPrgm
Operates the same as Define, except definesa public library variable, function, orprogram. Public functions and programsappear in the Catalog after the library hasbeen saved and refreshed.
Alphabetical Listing 37
38 Alphabetical Listing
Define LibPub Catalog >Note: See also Define, page 35, and DefineLibPriv, page 37.
deltaList() See ΔList(), page 82.
DelVar Catalog >DelVar Var1[, Var2] [, Var3] ...
DelVar Var.
Deletes the specified variable or variablegroup from memory.
If one or more of the variables are locked,this command displays an error messageand deletes only the unlocked variables. SeeunLock, page 163.
DelVar Var. deletes all members of theVar. variable group (such as the statisticsstat.nn results or variables created usingthe LibShortcut() function). The dot (.) inthis form of the DelVar command limits itto deleting a variable group; the simplevariable Var is not affected.
delVoid() Catalog >delVoid(List1) ⇒ list
Returns a list that has the contents of List1with all empty (void) elements removed.
For more information on empty elements,see page 196.
det() Catalog >det(squareMatrix[, Tolerance]) ⇒expression
Returns the determinant of squareMatrix.
Optionally, any matrix element is treated aszero if its absolute value is less thanTolerance. This tolerance is used only if thematrix has floating-point entries and doesnot contain any symbolic variables thathave not been assigned a value. Otherwise,Tolerance is ignored.
• If you use/· or set the Auto orApproximate mode to Approximate,computations are done using floating-point arithmetic.
• If Tolerance is omitted or not used, thedefault tolerance is calculated as:5E⁻14 •max(dim(squareMatrix))•rowNorm(squareMatrix)
diag() Catalog >diag(List) ⇒ matrixdiag(rowMatrix) ⇒ matrixdiag(columnMatrix) ⇒ matrix
Returns a matrix with the values in theargument list or matrix in its maindiagonal.
diag(squareMatrix) ⇒ rowMatrix
Returns a row matrix containing theelements from the main diagonal ofsquareMatrix.
squareMatrix must be square.
dim() Catalog >dim(List) ⇒ integer
Returns the dimension of List.dim(Matrix) ⇒ list
Returns the dimensions of matrix as a two-element list {rows, columns}.
Alphabetical Listing 39
40 Alphabetical Listing
dim() Catalog >dim(String) ⇒ integer
Returns the number of characters containedin character string String.
Disp Catalog >Disp exprOrString1 [, exprOrString2] ...
Displays the arguments in the Calculatorhistory. The arguments are displayed insuccession, with thin spaces as separators.
Useful mainly in programs and functions toensure the display of intermediatecalculations.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
DispAt Catalog >DispAt int,expr1 [,expr2 ...] ...
DispAt allows you to specify the linewhere the specified expression or stringwill be displayed on the screen.
The line number can be specified as anexpression.
Please note that the line number is notfor the entire screen but for the areaimmediately following thecommand/program.
This command allows dashboard-likeoutput from programs where the valueof an expression or from a sensorreading is updated on the same line.
DispAtand Disp can be used within thesame program.
Example
DispAt Catalog >Note: The maximum number is set to 8since that matches a screen-full of lineson the handheld screen - as long as thelines don't have 2D math expressions.The exact number of lines depends onthe content of the displayedinformation.
Illustrative examples:
Define z()=PrgmFor n,1,3DispAt 1,"N: ",nDisp "Hello"EndForEndPrgm
Outputz()
Iteration 1:Line 1: N:1
Line 2: Hello
Iteration 2:Line 1: N:2
Line 2: HelloLine 3: Hello
Iteration 3:Line 1: N:3
Line 2: HelloLine 3: HelloLine 4: Hello
Define z1()=PrgmFor n,1,3DispAt 1,"N: ",nEndFor
For n,1,4Disp "Hello"EndForEndPrgm
z1()Line 1: N:3
Line 2: HelloLine 3: HelloLine 4: HelloLine 5: Hello
Alphabetical Listing 41
42 Alphabetical Listing
DispAt Catalog >
Error conditions:
Error Message DescriptionDispAt line number must be between 1 and 8 Expression evaluates the line number
outside the range 1-8 (inclusive)
Too few arguments The function or command is missing oneor more arguments.
No arguments Same as current 'syntax error' dialog
Too many arguments Limit argument. Same error as Disp.
Invalid data type First argument must be a number.
Void: DispAt void "Hello World" Datatype error is thrownfor the void (if the callback is defined)
►DMS Catalog >Value ►DMS
List ►DMS
Matrix ►DMS
Note: You can insert this operator from thecomputer keyboard by typing @>DMS.
Interprets the argument as an angle anddisplays the equivalent DMS(DDDDDD°MM'SS.ss'') number. See °, ', ''on page 190 for DMS (degree, minutes,seconds) format.
Note:►DMS will convert from radians todegrees when used in radian mode. If theinput is followed by a degree symbol ° , noconversion will occur. You can use►DMSonly at the end of an entry line.
InDegree anglemode:
dotP() Catalog >dotP(List1, List2) ⇒ expression
Returns the “dot” product of two lists.
dotP(Vector1, Vector2) ⇒ expression
Returns the “dot” product of two vectors.
Both must be row vectors, or both must becolumn vectors.
E
e^() u keye^(Value1) ⇒ value
Returns e raised to the Value1 power.
Note: See also e exponent template, page2.
Note: Pressingu to display e^( is differentfrom pressing the characterE on thekeyboard.
You can enter a complex number in reiθpolar form. However, use this form inRadian angle mode only; it causes aDomain error in Degree or Gradian anglemode.
e^(List1) ⇒ list
Returns e raised to the power of eachelement in List1.e^(squareMatrix1) ⇒ squareMatrix
Returns the matrix exponential ofsquareMatrix1. This is not the same ascalculating e raised to the power of eachelement. For information about thecalculation method, refer to cos().
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
Alphabetical Listing 43
44 Alphabetical Listing
eff() Catalog >eff(nominalRate,CpY) ⇒ value
Financial function that converts the nominalinterest rate nominalRate to an annualeffective rate, given CpY as the number ofcompounding periods per year.
nominalRate must be a real number, andCpY must be a real number > 0.
Note: See also nom(), page 102.
eigVc() Catalog >eigVc(squareMatrix) ⇒ matrix
Returns a matrix containing theeigenvectors for a real or complexsquareMatrix, where each column in theresult corresponds to an eigenvalue. Notethat an eigenvector is not unique; it may bescaled by any constant factor. Theeigenvectors are normalized, meaning that:
if V = [x1, x2, … , xn]
then x12 + x2
2 + … + xn2 = 1
squareMatrix is first balanced withsimilarity transformations until the row andcolumn norms are as close to the samevalue as possible. The squareMatrix is thenreduced to upper Hessenberg form and theeigenvectors are computed via a Schurfactorization.
In Rectangular Complex Format:
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
eigVl() Catalog >eigVl(squareMatrix) ⇒ list
Returns a list of the eigenvalues of a real orcomplex squareMatrix.
squareMatrix is first balanced withsimilarity transformations until the row andcolumn norms are as close to the samevalue as possible. The squareMatrix is thenreduced to upper Hessenberg form and theeigenvalues are computed from the upperHessenberg matrix.
In Rectangular complex formatmode:
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
Else See If, page 67.
ElseIf Catalog >If BooleanExpr1 Then Block1ElseIf BooleanExpr2 Then Block2⋮ElseIf BooleanExprN Then BlockNEndIf⋮
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
EndFor See For, page 53.
EndFunc See Func, page 57.
EndIf See If, page 67.
EndLoop See Loop, page 89.
EndPrgm See Prgm, page 113.
EndTry See Try, page 157.
Alphabetical Listing 45
46 Alphabetical Listing
EndWhile See While, page 166.
euler () Catalog >euler(Expr, Var, depVar, {Var0, VarMax},depVar0, VarStep [, eulerStep]) ⇒ matrix
euler(SystemOfExpr, Var, ListOfDepVars,{Var0, VarMax}, ListOfDepVars0,VarStep [, eulerStep]) ⇒ matrix
euler(ListOfExpr, Var, ListOfDepVars,{Var0, VarMax}, ListOfDepVars0,VarStep [, eulerStep]) ⇒ matrix
Uses the Euler method to solve the system
with depVar(Var0)=depVar0 on theinterval [Var0,VarMax]. Returns a matrixwhose first row defines the Var outputvalues and whose second row defines thevalue of the first solution component at thecorresponding Var values, and so on.
Expr is the right-hand side that defines theordinary differential equation (ODE).
SystemOfExpr is the system of right-handsides that define the system of ODEs(corresponds to order of dependentvariables in ListOfDepVars).
ListOfExpr is a list of right-hand sides thatdefine the system of ODEs (corresponds tothe order of dependent variables inListOfDepVars).
Var is the independent variable.
ListOfDepVars is a list of dependentvariables.
{Var0, VarMax} is a two-element list thattells the function to integrate from Var0 toVarMax.
ListOfDepVars0 is a list of initial valuesfor dependent variables.
Differential equation:y'=0.001*y*(100-y) and y(0)=10
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
Systemof equations:
with y1(0)=2 and y2(0)=5
euler () Catalog >VarStep is a nonzero number such that sign(VarStep) = sign(VarMax-Var0) andsolutions are returned at Var0+i•VarStepfor all i=0,1,2,… such that Var0+i•VarStepis in [var0,VarMax] (there may not be asolution value at VarMax).
eulerStep is a positive integer (defaults to1) that defines the number of euler stepsbetween output values. The actual step sizeused by the euler method isVarStep ⁄ eulerStep.
eval () Hub Menueval(Expr) ⇒string
eval() is valid only in the TI-Innovator™ HubCommand argument of programmingcommands Get, GetStr, and Send. Thesoftware evaluates expression Expr andreplaces the eval() statement with theresult as a character string.
The argument Expr must simplify to a realnumber.
Set the blue element of the RGB LED to halfintensity.
Reset the blue element to OFF.
eval() argumentmust simplify to a realnumber.
Program to fade-in the redelement
Execute the program.
Alphabetical Listing 47
48 Alphabetical Listing
eval () Hub MenuAlthough eval() does not display its result,you can view the resulting Hub commandstring after executing the command byinspecting any of the following specialvariables.
iostr.SendAnsiostr.GetAnsiostr.GetStrAns
Note: See also Get (page 58), GetStr (page65), and Send (page 134).
Exit Catalog >Exit
Exits the current For, While, or Loop block.
Exit is not allowed outside the three loopingstructures (For, While, or Loop).
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
Function listing:
exp() u keyexp(Value1) ⇒ value
Returns e raised to the Value1 power.
Note: See also e exponent template, page2.
You can enter a complex number in reiθpolar form. However, use this form inRadian angle mode only; it causes aDomain error in Degree or Gradian anglemode.
exp(List1) ⇒ list
Returns e raised to the power of eachelement in List1.
exp() u keyexp(squareMatrix1) ⇒ squareMatrix
Returns the matrix exponential ofsquareMatrix1. This is not the same ascalculating e raised to the power of eachelement. For information about thecalculation method, refer to cos().
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
expr() Catalog >expr(String) ⇒ expression
Returns the character string contained inString as an expression and immediatelyexecutes it.
ExpReg Catalog >ExpReg X, Y [, [Freq] [, Category,Include]]
Computes the exponential regression y = a•(b)x on lists X and Y with frequency Freq. Asummary of results is stored in thestat.results variable. (See page 145.)
All the lists must have equal dimensionexcept for Include.
X and Y are lists of independent anddependent variables.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Category is a list of numeric or stringcategory codes for the corresponding X andY data.
Alphabetical Listing 49
50 Alphabetical Listing
ExpReg Catalog >Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Outputvariable Description
stat.RegEqn Regressionequation: a•(b)x
stat.a, stat.b Regression coefficients
stat.r2 Coefficient of linear determination for transformeddata
stat.r Correlation coefficient for transformeddata (x, ln(y))
stat.Resid Residuals associatedwith the exponentialmodel
stat.ResidTrans Residuals associatedwith linear fit of transformeddata
stat.XReg List of data points in themodifiedX List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.YReg List of data points in themodifiedY List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.FreqReg List of frequencies corresponding to stat.XReg and stat.YReg
F
factor() Catalog >factor(rationalNumber) returns the rationalnumber factored into primes. Forcomposite numbers, the computing timegrows exponentially with the number ofdigits in the second-largest factor. Forexample, factoring a 30-digit integer couldtake more than a day, and factoring a 100-digit number could take more than acentury.
To stop a calculation manually,
• Handheld: Hold down thec key andpress· repeatedly.
• Windows®: Hold down the F12 key and
factor() Catalog >press Enter repeatedly.
• Macintosh®: Hold down the F5 key andpress Enter repeatedly.
• iPad®: The app displays a prompt. Youcan continue waiting or cancel.
If you merely want to determine if anumber is prime, use isPrime() instead. It ismuch faster, particularly if rationalNumberis not prime and if the second-largest factorhas more than five digits.
FCdf() Catalog >FCdf(lowBound,upBound,dfNumer,dfDenom) ⇒number if lowBound and upBound arenumbers, list if lowBound and upBound arelists
FCdf(lowBound,upBound,dfNumer,dfDenom) ⇒number if lowBound and upBound arenumbers, list if lowBound and upBound arelists
Computes the F distribution probabilitybetween lowBound and upBound for thespecified dfNumer (degrees of freedom) anddfDenom.
For P(X ≤ upBound), set lowBound = 0.
Fill Catalog >Fill Value, matrixVar⇒ matrix
Replaces each element in variablematrixVar with Value.
matrixVar must already exist.
Fill Value, listVar⇒ list
Replaces each element in variable listVarwith Value.
listVar must already exist.
Alphabetical Listing 51
52 Alphabetical Listing
FiveNumSummary Catalog >FiveNumSummary X[,[Freq][,Category,Include]]
Provides an abbreviated version of the 1-variable statistics on list X. A summary ofresults is stored in the stat.results variable.(See page 145.)
X represents a list containing the data.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1.
Category is a list of numeric category codesfor the corresponding X data.
Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
An empty (void) element in any of the listsX, Freq, or Category results in a void forthe corresponding element of all those lists.For more information on empty elements,see page 196.
Output variable Description
stat.MinX Minimumof x values.
stat.Q1X 1stQuartile of x.
stat.MedianX Medianof x.
stat.Q3X 3rdQuartile of x.
stat.MaxX Maximumof x values.
floor() Catalog >floor(Value1) ⇒ integer
Returns the greatest integer that is ≤ theargument. This function is identical to int().
The argument can be a real or a complexnumber.
floor() Catalog >floor(List1) ⇒ listfloor(Matrix1) ⇒ matrix
Returns a list or matrix of the floor of eachelement.
Note: See also ceiling() and int().
For Catalog >For Var, Low, High [, Step] BlockEndFor
Executes the statements in Blockiteratively for each value of Var, from LowtoHigh, in increments of Step.
Var must not be a system variable.
Step can be positive or negative. Thedefault value is 1.
Block can be either a single statement or aseries of statements separated with the “:”character.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
format() Catalog >format(Value[, formatString]) ⇒ string
Returns Value as a character string basedon the format template.
formatString is a string and must be in theform: “F[n]”, “S[n]”, “E[n]”, “G[n][c]”,where [ ] indicate optional portions.
F[n]: Fixed format. n is the number of digitsto display after the decimal point.
S[n]: Scientific format. n is the number ofdigits to display after the decimal point.
Alphabetical Listing 53
54 Alphabetical Listing
format() Catalog >E[n]: Engineering format. n is the numberof digits after the first significant digit. Theexponent is adjusted to a multiple of three,and the decimal point is moved to the rightby zero, one, or two digits.
G[n][c]: Same as fixed format but alsoseparates digits to the left of the radix intogroups of three. c specifies the groupseparator character and defaults to acomma. If c is a period, the radix will beshown as a comma.
[Rc]: Any of the above specifiers may besuffixed with the Rc radix flag, where c is asingle character that specifies what tosubstitute for the radix point.
fPart() Catalog >fPart(Expr1) ⇒ expressionfPart(List1) ⇒ listfPart(Matrix1) ⇒ matrix
Returns the fractional part of the argument.
For a list or matrix, returns the fractionalparts of the elements.
The argument can be a real or a complexnumber.
FPdf() Catalog >FPdf(XVal,dfNumer,dfDenom) ⇒ numberif XVal is a number, list if XVal is a list
Computes the F distribution probability atXVal for the specified dfNumer (degrees offreedom) and dfDenom.
freqTable►list() Catalog >freqTable►list(List1,freqIntegerList) ⇒list
Returns a list containing the elements fromList1 expanded according to thefrequencies in freqIntegerList. Thisfunction can be used for building afrequency table for the Data & Statisticsapplication.
List1 can be any valid list.
freqIntegerList must have the samedimension as List1 and must contain non-negative integer elements only. Eachelement specifies the number of times thecorresponding List1 element will berepeated in the result list. A value of zeroexcludes the corresponding List1 element.
Note: You can insert this function from thecomputer keyboard by typingfreqTable@>list(...).
Empty (void) elements are ignored. Formore information on empty elements, seepage 196.
frequency() Catalog >frequency(List1,binsList) ⇒ list
Returns a list containing counts of theelements in List1. The counts are based onranges (bins) that you define in binsList.
If binsList is {b(1), b(2), …, b(n)}, thespecified ranges are {?≤b(1), b(1)<?≤b(2),…,b(n-1)<?≤b(n), b(n)>?}. The resultinglist is one element longer than binsList.
Each element of the result corresponds tothe number of elements from List1 thatare in the range of that bin. Expressed interms 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)>?)}.
Explanationof result:
2 elements fromDatalist are≤2.5
4 elements fromDatalist are >2.5 and≤4.5
3 elements fromDatalist are >4.5
The element “hello” is a string and cannot beplaced in any of the definedbins.
Alphabetical Listing 55
56 Alphabetical Listing
frequency() Catalog >Elements of List1 that cannot be “placed ina bin” are ignored. Empty (void) elementsare also ignored. For more information onempty elements, see page 196.
Within the Lists & Spreadsheet application,you can use a range of cells in place of botharguments.
Note: See also countIf(), page 29.
FTest_2Samp Catalog >FTest_2Samp List1,List2[,Freq1[,Freq2[,Hypoth]]]
FTest_2Samp List1,List2[,Freq1[,Freq2[,Hypoth]]]
(Data list input)
FTest_2Samp sx1,n1,sx2,n2[,Hypoth]
FTest_2Samp sx1,n1,sx2,n2[,Hypoth]
(Summary stats input)
Performs a two-sample F test. A summaryof results is stored in the stat.resultsvariable. (See page 145.)
For Ha: σ1 > σ2, set Hypoth>0
For Ha: σ1 ≠ σ2 (default), set Hypoth =0
For Ha: σ1 < σ2, set Hypoth<0
For information on the effect of emptyelements in a list, see Empty (Void)Elements, page 196.
Output variable Description
stat.F CalculatedF statistic for the data sequence
stat.PVal Smallest level of significance atwhich the null hypothesis canbe rejected
stat.dfNumer numerator degrees of freedom= n1-1
stat.dfDenom denominator degrees of freedom= n2-1
stat.sx1, stat.sx2 Sample standarddeviations of the data sequences inList 1 andList 2
Output variable Description
stat.x1_barstat.x2_bar
Samplemeans of the data sequences inList 1 andList 2
stat.n1, stat.n2 Size of the samples
Func Catalog >Func BlockEndFunc
Template for creating a user-definedfunction.
Block can be a single statement, a seriesof statements separated with the “:”character, or a series of statements onseparate lines. The function can use theReturn instruction to return a specific result.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
Define a piecewise function:
Result of graphing g(x)
G
gcd() Catalog >gcd(Number1, Number2) ⇒ expression
Returns the greatest common divisor of thetwo arguments. The gcd of two fractions isthe gcd of their numerators divided by thelcm of their denominators.
In Auto or Approximate mode, the gcd offractional floating-point numbers is 1.0.
gcd(List1, List2) ⇒ list
Returns the greatest common divisors ofthe corresponding elements in List1 andList2.
Alphabetical Listing 57
58 Alphabetical Listing
gcd() Catalog >gcd(Matrix1, Matrix2) ⇒ matrix
Returns the greatest common divisors ofthe corresponding elements inMatrix1 andMatrix2.
geomCdf() Catalog >geomCdf(p,lowBound,upBound) ⇒ numberif lowBound and upBound are numbers, listif lowBound and upBound are lists
geomCdf(p,upBound)for P(1≤X≤upBound)⇒ number if upBound is a number, list ifupBound is a list
Computes a cumulative geometricprobability from lowBound to upBound withthe specified probability of success p.
For P(X ≤ upBound), set lowBound = 1.
geomPdf() Catalog >geomPdf(p,XVal) ⇒ number if XVal is anumber, list if XVal is a list
Computes a probability at XVal, the numberof the trial on which the first success occurs,for the discrete geometric distribution withthe specified probability of success p.
Get Hub MenuGet [promptString,] var[, statusVar]
Get [promptString,] func(arg1, ...argn)[, statusVar]
Programming command: Retrieves a valuefrom a connected TI-Innovator™ Hub andassigns the value to variable var.
The value must be requested:
• In advance, through a Send "READ ..."command.
— or —
Example: Request the current value of thehub's built-in light-level sensor. UseGet toretrieve the value andassign it to variablelightval.
Embed the READ requestwithin theGetcommand.
Get Hub Menu• By embedding a "READ ..." request as
the optional promptString argument.This method lets you use a singlecommand to request the value andretrieve it.
Implicit simplification takes place. Forexample, a received string of "123" isinterpreted as a numeric value. To preservethe string, use GetStr instead of Get.
If you include the optional argumentstatusVar, it is assigned a value based onthe success of the operation. A value ofzero means that no data was received.
In the second syntax, the func() argumentallows a program to store the receivedstring as a function definition. This syntaxoperates as if the program executed thecommand:
Define func(arg1, ...argn) = receivedstring
The program can then use the definedfunction func().
Note: You can use the Get command withina user-defined program but not within afunction.
Note: See also GetStr, page 65 and Send,page 134.
getDenom() Catalog >getDenom(Fraction1) ⇒ value
Transforms the argument into anexpression having a reduced commondenominator, and then returns itsdenominator.
Alphabetical Listing 59
60 Alphabetical Listing
getKey() Catalog >getKey([0|1]) ⇒ returnString
Description:getKey() - allows a TI-Basicprogram to get keyboard input -handheld, desktop and emulator ondesktop.
Example:
• keypressed := getKey() will return akey or an empty string if no key hasbeen pressed. This call will returnimmediately.
• keypressed := getKey(1) will wait tilla key is pressed. This call will pauseexecution of the program till a key ispressed.
Example:
Handling of key presses:
Handheld Device/EmulatorKey Desktop Return Value
Esc Esc "esc"
Touchpad - Top click n/a "up"
On n/a "home"
Scratchapps n/a "scratchpad"
Touchpad - Left click n/a "left"
Touchpad - Center click n/a "center"
Touchpad - Right click n/a "right"
Doc n/a "doc"
Tab Tab "tab"
Touchpad - Bottom click Down Arrow "down"
Menu n/a "menu"
Ctrl Ctrl no return
Shift Shift no return
Var n/a "var"
Handheld Device/EmulatorKey Desktop Return Value
Del n/a "del"
= = "="
trig n/a "trig"
0 through 9 0-9 "0" ... "9"
Templates n/a "template"
Catalog n/a "cat"
^ ^ "^"
X^2 n/a "square"
/ (division key) / "/"
* (multiply key) * "*"
e^x n/a "exp"
10^x n/a "10power"
+ + "+"
- - "-"
( ( "("
) ) ")"
. . "."
(-) n/a "-" (negate sign)
Enter Enter "enter"
ee n/a "E" (scientific notation E)
a - z a-z alpha = letter pressed (lowercase)("a" - "z")
shift a-z shift a-z alpha = letter pressed"A" - "Z"
Note: ctrl-shift works to lockcaps
?! n/a "?!"
Alphabetical Listing 61
62 Alphabetical Listing
Handheld Device/EmulatorKey Desktop Return Value
pi n/a "pi"
Flag n/a no return
, , ","
Return n/a "return"
Space Space " " (space)
Inaccessible Special Character Keys like@,!,^, etc.
The character is returned
n/a Function Keys No returned character
n/a Special desktop control keys No returned character
Inaccessible Other desktop keys that arenot available on thecalculator while getkey() iswaiting for a keystroke. ({,},;, :, ...)
Same character you get inNotes (not in a math box)
Note: It is important to note that the presence of getKey() in a program changes howcertain events are handled by the system. Some of these are described below.Terminate program and Handle event - Exactly as if the user were to break out of programby pressing the ON key"Support" below means - System works as expected - program continues to run.
Event Device Desktop - TI-Nspire™Student Software
Quick Poll Terminate program,handle event
Same as the handheld (TI-Nspire™ Student Software,TI-Nspire™ Navigator™ NCTeacher Software-only)
Remote file mgmt
(Incl. sending 'Exit Press 2Test' file from anotherhandheld or desktop-handheld)
Terminate program,handle event
Same as the handheld.(TI-Nspire™ StudentSoftware, TI-Nspire™Navigator™ NC TeacherSoftware-only)
End Class Terminate program,handle event
Support(TI-Nspire™ StudentSoftware, TI-Nspire™Navigator™ NC TeacherSoftware-only)
Event Device Desktop - TI-Nspire™ AllVersions
TI-Innovator™ Hubconnect/disconnect
Support - Can successfullyissue commands to the TI-Innovator™ Hub. After youexit the program the TI-Innovator™ Hub is stillworking with thehandheld.
Same as the handheld
getLangInfo() Catalog >getLangInfo() ⇒ string
Returns a string that corresponds to theshort name of the currently activelanguage. You can, for example, use it in aprogram or function to determine thecurrent language.
English = “en”Danish = “da”German = “de”Finnish = “fi”French = “fr”Italian = “it”Dutch = “nl”Belgian Dutch = “nl_BE”Norwegian = “no”Portuguese = “pt”Spanish = “es”Swedish = “sv”
getLockInfo() Catalog >getLockInfo(Var) ⇒ value
Returns the current locked/unlocked stateof variable Var.
value =0: Var is unlocked or does not exist.
value =1: Var is locked and cannot bemodified or deleted.
See Lock, page 85, and unLock, page 163.
Alphabetical Listing 63
64 Alphabetical Listing
getMode() Catalog >getMode(ModeNameInteger) ⇒ value
getMode(0) ⇒ list
getMode(ModeNameInteger) returns avalue representing the current setting oftheModeNameInteger mode.
getMode(0) returns a list containingnumber pairs. Each pair consists of a modeinteger and a setting integer.
For a listing of the modes and theirsettings, refer to the table below.
If you save the settings with getMode(0) →var, you can use setMode(var) in a functionor program to temporarily restore thesettings within the execution of thefunction or program only. See setMode(),page 136.
ModeName
ModeInteger Setting Integers
DisplayDigits
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
ExponentialFormat
3 1=Normal, 2=Scientific, 3=Engineering
Real orComplex
4 1=Real, 2=Rectangular, 3=Polar
Auto orApprox.
5 1=Auto, 2=Approximate
VectorFormat
6 1=Rectangular, 2=Cylindrical, 3=Spherical
Base 7 1=Decimal, 2=Hex, 3=Binary
getNum() Catalog >getNum(Fraction1) ⇒ value
Transforms the argument into anexpression having a reduced commondenominator, and then returns itsnumerator.
GetStr Hub MenuGetStr [promptString,] var[, statusVar]
GetStr [promptString,] func(arg1, ...argn)[, statusVar]
Programming command: Operatesidentically to the Get command, except thatthe retrieved value is always interpreted asa string. By contrast, the Get commandinterprets the response as an expressionunless it is enclosed in quotation marks ("").
Note: See also Get, page 58 and Send, page134.
For examples, seeGet.
getType() Catalog >getType(var) ⇒ string
Returns a string that indicates the data typeof variable var.
If var has not been defined, returns thestring "NONE".
Alphabetical Listing 65
66 Alphabetical Listing
getVarInfo() Catalog >getVarInfo() ⇒ matrix or string
getVarInfo(LibNameString) ⇒ matrix orstring
getVarInfo() returns a matrix of information(variable name, type, library accessibility,and locked/unlocked state) for all variablesand library objects defined in the currentproblem.
If no variables are defined, getVarInfo()returns the string "NONE".
getVarInfo(LibNameString)returns a matrixof information for all library objects definedin library LibNameString. LibNameStringmust be a string (text enclosed in quotationmarks) or a string variable.
If the library LibNameString does not exist,an error occurs.
Note the example, in which the result ofgetVarInfo() is assigned to variable vs.Attempting to display row 2 or row 3 of vsreturns an “Invalid list or matrix” errorbecause at least one of elements in thoserows (variable b, for example) revaluates toa matrix.
This error could also occur when using Ansto reevaluate a getVarInfo() result.
The system gives the above error becausethe current version of the software does notsupport a generalized matrix structurewhere an element of a matrix can be eithera matrix or a list.
Goto Catalog >Goto labelName
Transfers control to the label labelName.
labelName must be defined in the samefunction using a Lbl instruction.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
►Grad Catalog >Expr1►Grad⇒ expression
Converts Expr1 to gradian angle measure.
Note: You can insert this operator from thecomputer keyboard by typing @>Grad.
InDegree anglemode:
In Radian anglemode:
I
identity() Catalog >identity(Integer) ⇒ matrix
Returns the identity matrix with adimension of Integer.
Integer must be a positive integer.
If Catalog >If BooleanExpr
Statement
If BooleanExpr ThenBlock
EndIf
Alphabetical Listing 67
68 Alphabetical Listing
If Catalog >If BooleanExpr evaluates to true, executesthe single statement Statement or the blockof statements Block before continuingexecution.
If BooleanExpr evaluates to false,continues execution without executing thestatement or block of statements.
Block can be either a single statement or asequence of statements separated with the“:” character.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
If BooleanExpr Then Block1Else Block2EndIf
If BooleanExpr evaluates to true, executesBlock1 and then skips Block2.
If BooleanExpr evaluates to false, skipsBlock1 but executes Block2.
Block1 and Block2 can be a singlestatement.
If BooleanExpr1 Then Block1ElseIf BooleanExpr2 Then Block2⋮ElseIf BooleanExprN Then BlockNEndIf
Allows for branching. If BooleanExpr1evaluates to true, executes Block1. IfBooleanExpr1 evaluates to false, evaluatesBooleanExpr2, and so on.
ifFn() Catalog >ifFn(BooleanExpr,Value_If_true [,Value_If_false [,Value_If_unknown]]) ⇒expression, list, or matrix
Evaluates the boolean expressionBooleanExpr (or each element fromBooleanExpr ) and produces a result basedon the following rules:
• BooleanExpr can test a single value, alist, or a matrix.
• If an element of BooleanExpr evaluatesto true, returns the correspondingelement from Value_If_true.
• If an element of BooleanExpr evaluatesto false, returns the correspondingelement from Value_If_false. If youomit Value_If_false, returns undef.
• If an element of BooleanExpr is neithertrue nor false, returns the correspondingelement Value_If_unknown. If you omitValue_If_unknown, returns undef.
• If the second, third, or fourth argumentof the ifFn() function is a singleexpression, the Boolean test is applied toevery position in BooleanExpr.
Note: If the simplified BooleanExprstatement involves a list or matrix, all otherlist or matrix arguments must have thesame dimension(s), and the result will havethe same dimension(s).
Test value of 1 is less than2.5, so itscorresponding
Value_If_True element of 5 is copied tothe result list.
Test value of 2 is less than2.5, so itscorresponding
Value_If_True element of 6 is copied tothe result list.
Test value of 3 is not less than2.5, so itscorresponding Value_If_False element of10 is copied to the result list.
Value_If_true is a single value andcorresponds to any selectedposition.
Value_If_false is not specified. Undef isused.
One element selected fromValue_If_true.One element selected fromValue_If_unknown.
imag() Catalog >imag(Value1) ⇒ value
Returns the imaginary part of theargument.
Alphabetical Listing 69
70 Alphabetical Listing
imag() Catalog >imag(List1) ⇒ list
Returns a list of the imaginary parts of theelements.
imag(Matrix1) ⇒ matrix
Returns a matrix of the imaginary parts ofthe elements.
Indirection See #(), page 188.
inString() Catalog >inString(srcString, subString[, Start]) ⇒integer
Returns the character position in stringsrcString at which the first occurrence ofstring subString begins.
Start, if included, specifies the characterposition within srcString where the searchbegins. Default = 1 (the first character ofsrcString).
If srcString does not contain subString orStart is > the length of srcString, returnszero.
int() Catalog >
int(Value) ⇒ integerint(List1) ⇒ listint(Matrix1) ⇒ matrix
Returns the greatest integer that is lessthan or equal to the argument. Thisfunction is identical to floor().
The argument can be a real or a complexnumber.
For a list or matrix, returns the greatestinteger of each of the elements.
intDiv() Catalog >intDiv(Number1, Number2) ⇒ integerintDiv(List1, List2) ⇒ listintDiv(Matrix1,Matrix2) ⇒ matrix
Returns the signed integer part of(Number1 ÷ Number2).
For lists and matrices, returns the signedinteger part of (argument 1 ÷ argument 2)for each element pair.
interpolate () Catalog >interpolate(xValue, xList, yList,yPrimeList) ⇒ list
This function does the following:
Given xList, yList=f(xList), andyPrimeList=f'(xList) for some unknownfunction f, a cubic interpolant is used toapproximate the function f at xValue. It isassumed that xList is a list ofmonotonically increasing or decreasingnumbers, but this function may return avalue even when it is not. This functionwalks through xList looking for an interval[xList[i], xList[i+1]] that contains xValue.If it finds such an interval, it returns aninterpolated value for f(xValue); otherwise,it returns undef.
xList, yList, and yPrimeList must be ofequal dimension ≥ 2 and containexpressions that simplify to numbers.
xValue can be a number or a list ofnumbers.
Differential equation:y'=-3•y+6•t+5 and y(0)=5
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
Use the interpolate() function to calculate thefunction values for the xvaluelist:
invχ2() Catalog >invχ2(Area,df)
invChi2(Area,df)
Computes the Inverse cumulative χ2 (chi-square) probability function specified bydegree of freedom, df for a given Areaunder the curve.
Alphabetical Listing 71
72 Alphabetical Listing
invF() Catalog >invF(Area,dfNumer,dfDenom)
invF(Area,dfNumer,dfDenom)
computes the Inverse cumulative Fdistribution function specified by dfNumerand dfDenom for a given Area under thecurve.
invBinom() Catalog >invBinom(CumulativeProb,NumTrials,Prob,OutputForm)⇒scalar or matrix
Inverse binomial. Given the number of trials(NumTrials) and the probability of successof each trial (Prob), this function returnsthe minimum number of successes, k, suchthat the value, k, is greater than or equal tothe given cumulative probability(CumulativeProb).
OutputForm=0, displays result as a scalar(default).
OutputForm=1, displays result as a matrix.
Example: Mary andKevin are playing a dicegame. Mary has to guess themaximumnumber of times 6 shows up in 30 rolls. If thenumber 6 shows up thatmany times or less,Mary wins. Furthermore, the smaller thenumber that she guesses, the greater herwinnings. What is the smallest number Marycan guess if shewants the probability ofwinning to be greater than77%?
invBinomN() Catalog >invBinomN(CumulativeProb,Prob,NumSuccess,OutputForm)⇒scalar ormatrix
Inverse binomial with respect to N. Giventhe probability of success of each trial(Prob), and the number of successes(NumSuccess), this function returns theminimum number of trials, N, such that thevalue, N, is less than or equal to the givencumulative probability (CumulativeProb).
OutputForm=0, displays result as a scalar(default).
OutputForm=1, displays result as a matrix.
Example: Monique is practicing goal shotsfor netball. She knows fromexperience thather chance ofmaking any one shot is 70%.She plans to practice until she scores 50goals. Howmany shots must she attempt toensure that the probability ofmaking at least50 goals is more than0.99?
invNorm() Catalog >invNorm(Area[,μ[,σ]])
Computes the inverse cumulative normaldistribution function for a given Area underthe normal distribution curve specified by μand σ.
invt() Catalog >invt(Area,df)
Computes the inverse cumulative student-tprobability function specified by degree offreedom, df for a given Area under thecurve.
iPart() Catalog >iPart(Number) ⇒ integeriPart(List1) ⇒ listiPart(Matrix1) ⇒ matrix
Returns the integer part of the argument.
For lists and matrices, returns the integerpart of each element.
The argument can be a real or a complexnumber.
irr() Catalog >irr(CF0,CFList [,CFFreq]) ⇒ value
Financial function that calculates internalrate of return of an investment.
CF0 is the initial cash flow at time 0; itmust be a real number.
CFList is a list of cash flow amounts afterthe initial cash flow CF0.
Alphabetical Listing 73
74 Alphabetical Listing
irr() Catalog >CFFreq is an optional list in which eachelement specifies the frequency ofoccurrence for a grouped (consecutive) cashflow amount, which is the correspondingelement of CFList. The default is 1; if youenter values, they must be positive integers< 10,000.
Note: See alsomirr(), page 94.
isPrime() Catalog >isPrime(Number) ⇒ Boolean constantexpression
Returns true or false to indicate if numberis a whole number ≥ 2 that is evenlydivisible only by itself and 1.
If Number exceeds about 306 digits and hasno factors ≤1021, isPrime(Number) displaysan error message.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
Function to find the next prime after aspecifiednumber:
isVoid() Catalog >isVoid(Var) ⇒ Boolean constantexpressionisVoid(Expr) ⇒ Boolean constantexpressionisVoid(List) ⇒ list of Boolean constantexpressions
Returns true or false to indicate if theargument is a void data type.
For more information on void elements, seepage 196.
L
Lbl Catalog >Lbl labelName
Defines a label with the name labelNamewithin a function.
You can use a Goto labelName instructionto transfer control to the instructionimmediately following the label.
labelName must meet the same namingrequirements as a variable name.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
lcm() Catalog >lcm(Number1, Number2) ⇒ expressionlcm(List1, List2) ⇒ listlcm(Matrix1,Matrix2) ⇒ matrix
Returns the least common multiple of thetwo arguments. The lcm of two fractions isthe lcm of their numerators divided by thegcd of their denominators. The lcm offractional floating-point numbers is theirproduct.
For two lists or matrices, returns the leastcommon multiples of the correspondingelements.
left() Catalog >left(sourceString[, Num]) ⇒ string
Returns the leftmost Num characterscontained in character string sourceString.
If you omit Num, returns all ofsourceString.left(List1[, Num]) ⇒ list
Alphabetical Listing 75
76 Alphabetical Listing
left() Catalog >Returns the leftmost Num elementscontained in List1.
If you omit Num, returns all of List1.left(Comparison) ⇒ expression
Returns the left-hand side of an equation orinequality.
libShortcut() Catalog >libShortcut(LibNameString,ShortcutNameString[, LibPrivFlag]) ⇒ list of variables
Creates a variable group in the currentproblem that contains references to all theobjects in the specified library documentlibNameString. Also adds the groupmembers to the Variables menu. You canthen refer to each object using itsShortcutNameString.
Set LibPrivFlag=0 to exclude privatelibrary objects (default)Set LibPrivFlag=1 to include privatelibrary objects
To copy a variable group, see CopyVar onpage 24.To delete a variable group, see DelVar onpage 38.
This example assumes a properly stored andrefreshed library document named linalg2that contains objects definedas clearmat,gauss1, andgauss2.
LinRegBx Catalog >LinRegBx X,Y[,[Freq][,Category,Include]]
Computes the linear regression y = a+b•x onlists X and Y with frequency Freq. Asummary of results is stored in thestat.results variable. (See page 145.)
All the lists must have equal dimensionexcept for Include.
X and Y are lists of independent anddependent variables.
LinRegBx Catalog >Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Category is a list of numeric or stringcategory codes for the corresponding X andY data.
Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Outputvariable Description
stat.RegEqn Regression Equation: a+b•x
stat.a, stat.b Regression coefficients
stat.r2 Coefficient of determination
stat.r Correlation coefficient
stat.Resid Residuals from the regression
stat.XReg List of data points in themodifiedX List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.YReg List of data points in themodifiedY List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.FreqReg List of frequencies corresponding to stat.XReg and stat.YReg
LinRegMx Catalog >LinRegMx X,Y[,[Freq][,Category,Include]]
Computes the linear regression y = m•x+b onlists X and Y with frequency Freq. Asummary of results is stored in thestat.results variable. (See page 145.)
All the lists must have equal dimensionexcept for Include.
Alphabetical Listing 77
78 Alphabetical Listing
LinRegMx Catalog >X and Y are lists of independent anddependent variables.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Category is a list of numeric or stringcategory codes for the corresponding X andY data.
Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Outputvariable Description
stat.RegEqn Regression Equation: y =m•x+b
stat.m,stat.b
Regression coefficients
stat.r2 Coefficient of determination
stat.r Correlation coefficient
stat.Resid Residuals from the regression
stat.XReg List of data points in themodifiedX List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.YReg List of data points in themodifiedY List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.FreqReg List of frequencies corresponding to stat.XReg and stat.YReg
LinRegtIntervals Catalog >LinRegtIntervals X,Y[,F[,0[,CLev]]]
For Slope. Computes a level C confidenceinterval for the slope.
LinRegtIntervals Catalog >LinRegtIntervals X,Y[,F[,1,Xval[,CLev]]]
For Response. Computes a predicted y-value,a level C prediction interval for a singleobservation, and a level C confidenceinterval for the mean response.
A summary of results is stored in thestat.results variable. (See page 145.)
All the lists must have equal dimension.
X and Y are lists of independent anddependent variables.
F is an optional list of frequency values.Each element in F specifies the frequency ofoccurrence for each corresponding X and Ydata point. The default value is 1. Allelements must be integers ≥ 0.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.RegEqn Regression Equation: a+b•x
stat.a, stat.b Regression coefficients
stat.df Degrees of freedom
stat.r2 Coefficient of determination
stat.r Correlation coefficient
stat.Resid Residuals from the regression
For Slope type only
Output variable Description
[stat.CLower, stat.CUpper] Confidence interval for the slope
stat.ME Confidence intervalmargin of error
stat.SESlope Standard error of slope
stat.s Standard error about the line
For Response type only
Alphabetical Listing 79
80 Alphabetical Listing
Output variable Description
[stat.CLower, stat.CUpper] Confidence interval for themean response
stat.ME Confidence intervalmargin of error
stat.SE Standard error ofmean response
[stat.LowerPred,stat.UpperPred]
Prediction interval for a single observation
stat.MEPred Prediction intervalmargin of error
stat.SEPred Standard error for prediction
stat.y a + b•XVal
LinRegtTest Catalog >LinRegtTest X,Y[,Freq[,Hypoth]]
Computes a linear regression on the X and Ylists and a t test on the value of slope β andthe correlation coefficient ρ for the equationy=α+βx. It tests the null hypothesis H
0:β=0
(equivalently, ρ=0) against one of threealternative hypotheses.
All the lists must have equal dimension.
X and Y are lists of independent anddependent variables.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Hypoth is an optional value specifying oneof three alternative hypotheses againstwhich the null hypothesis (H
0:β=ρ=0) will be
tested.
For Ha: β≠0 and ρ≠0 (default), set Hypoth=0
For Ha: β<0 and ρ<0, set Hypoth<0
For Ha: β>0 and ρ>0, set Hypoth>0
A summary of results is stored in thestat.results variable. (See page 145.)
LinRegtTest Catalog >For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.RegEqn Regressionequation: a + b•x
stat.t t-Statistic for significance test
stat.PVal Smallest level of significance atwhich the null hypothesis canbe rejected
stat.df Degrees of freedom
stat.a, stat.b Regression coefficients
stat.s Standard error about the line
stat.SESlope Standard error of slope
stat.r2 Coefficient of determination
stat.r Correlation coefficient
stat.Resid Residuals from the regression
linSolve() Catalog >linSolve( SystemOfLinearEqns, Var1,Var2, ...) ⇒ list
linSolve(LinearEqn1 and LinearEqn2 and..., Var1, Var2, ...) ⇒ list
linSolve({LinearEqn1, LinearEqn2, ...},Var1, Var2, ...) ⇒ list
linSolve(SystemOfLinearEqns, {Var1,Var2, ...}) ⇒ list
linSolve(LinearEqn1 and LinearEqn2 and..., {Var1, Var2, ...}) ⇒ list
linSolve({LinearEqn1, LinearEgn2, ...},{Var1, Var2, ...}) ⇒ list
Returns a list of solutions for the variablesVar1, Var2, ...
Alphabetical Listing 81
82 Alphabetical Listing
linSolve() Catalog >The first argument must evaluate to asystem of linear equations or a single linearequation. Otherwise, an argument erroroccurs.
For example, evaluating linSolve(x=1and x=2,x) produces an “ArgumentError” result.
ΔList() Catalog >ΔList(List1) ⇒ list
Note: You can insert this function from thekeyboard by typing deltaList(...).
Returns a list containing the differencesbetween consecutive elements in List1.Each element of List1 is subtracted fromthe next element of List1. The resulting listis always one element shorter than theoriginal List1.
list►mat() Catalog >list►mat(List [, elementsPerRow]) ⇒matrix
Returns a matrix filled row-by-row with theelements from List.
elementsPerRow, if included, specifies thenumber of elements per row. Default is thenumber of elements in List (one row).
If List does not fill the resulting matrix,zeros are added.
Note: You can insert this function from thecomputer keyboard by typing list@>mat(...).
ln() /u keys
ln(Value1) ⇒ valueln(List1) ⇒ list
ln() /u keysReturns the natural logarithm of theargument.
For a list, returns the natural logarithms ofthe elements.
If complex formatmode is Real:
If complex formatmode is Rectangular:
ln(squareMatrix1) ⇒ squareMatrix
Returns the matrix natural logarithm ofsquareMatrix1. This is not the same ascalculating the natural logarithm of eachelement. For information about thecalculation method, refer to cos() on.
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
In Radian anglemode andRectangularcomplex format:
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
LnReg Catalog >LnReg X, Y[, [Freq] [, Category, Include]]
Computes the logarithmic regression y =a+b•ln(x) on lists X and Y with frequencyFreq. A summary of results is stored in thestat.results variable. (See page 145.)
All the lists must have equal dimensionexcept for Include.
X and Y are lists of independent anddependent variables.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Alphabetical Listing 83
84 Alphabetical Listing
LnReg Catalog >Category is a list of numeric or stringcategory codes for the corresponding X andY data.
Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Outputvariable Description
stat.RegEqn Regressionequation: a+b•ln(x)
stat.a, stat.b Regression coefficients
stat.r2 Coefficient of linear determination for transformeddata
stat.r Correlation coefficient for transformeddata (ln(x), y)
stat.Resid Residuals associatedwith the logarithmicmodel
stat.ResidTrans Residuals associatedwith linear fit of transformeddata
stat.XReg List of data points in themodifiedX List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.YReg List of data points in themodifiedY List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.FreqReg List of frequencies corresponding to stat.XReg and stat.YReg
Local Catalog >Local Var1[, Var2] [, Var3] ...
Declares the specified vars as localvariables. Those variables exist only duringevaluation of a function and are deletedwhen the function finishes execution.
Note: Local variables save memory becausethey only exist temporarily. Also, they donot disturb any existing global variablevalues. Local variables must be used for Forloops and for temporarily saving values in amulti-line function since modifications onglobal variables are not allowed in afunction.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
Lock Catalog >LockVar1[, Var2] [, Var3] ...LockVar.
Locks the specified variables or variablegroup. Locked variables cannot be modifiedor deleted.
You cannot lock or unlock the systemvariable Ans, and you cannot lock thesystem variable groups stat. or tvm.
Note: The Lock command clears theUndo/Redo history when applied tounlocked variables.
See unLock, page 163, and getLockInfo(),page 63.
Alphabetical Listing 85
86 Alphabetical Listing
log() /s keyslog(Value1[,Value2]) ⇒ value
log(List1[,Value2]) ⇒ list
Returns the base-Value2 logarithm of thefirst argument.
Note: See also Log template, page 2.
For a list, returns the base-Value2logarithm of the elements.
If the second argument is omitted, 10 isused as the base.
If complex formatmode is Real:
If complex formatmode is Rectangular:
log(squareMatrix1[,Value]) ⇒squareMatrix
Returns the matrix base-Value logarithm ofsquareMatrix1. This is not the same ascalculating the base-Value logarithm ofeach element. For information about thecalculation method, refer to cos().
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
If the base argument is omitted, 10 is usedas base.
In Radian anglemode andRectangularcomplex format:
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
Logistic Catalog >Logistic X, Y[, [Freq] [, Category, Include]]
Computes the logistic regression y = (c/(1+a•e-bx)) on lists X and Y with frequencyFreq. A summary of results is stored in thestat.results variable. (See page 145.)
All the lists must have equal dimensionexcept for Include.
Logistic Catalog >X and Y are lists of independent anddependent variables.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Category is a list of numeric or stringcategory codes for the corresponding X andY data.
Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Outputvariable Description
stat.RegEqn Regressionequation: c/(1+a•e-bx)
stat.a,stat.b, stat.c
Regression coefficients
stat.Resid Residuals from the regression
stat.XReg List of data points in themodifiedX List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.YReg List of data points in themodifiedY List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.FreqReg List of frequencies corresponding to stat.XReg and stat.YReg
LogisticD Catalog >LogisticD X, Y [, [Iterations] , [Freq] [,Category, Include] ]
Computes the logistic regression y = (c/(1+a•e-bx)+d) on lists X and Y with frequencyFreq, using a specified number ofIterations. A summary of results is stored inthe stat.results variable. (See page 145.)
Alphabetical Listing 87
88 Alphabetical Listing
LogisticD Catalog >All the lists must have equal dimensionexcept for Include.
X and Y are lists of independent anddependent variables.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Category is a list of numeric or stringcategory codes for the corresponding X andY data.
Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Outputvariable Description
stat.RegEqn Regressionequation: c/(1+a•e-bx)+d)
stat.a, stat.b,stat.c, stat.d
Regression coefficients
stat.Resid Residuals from the regression
stat.XReg List of data points in themodifiedX List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.YReg List of data points in themodifiedY List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.FreqReg List of frequencies corresponding to stat.XReg and stat.YReg
Loop Catalog >Loop BlockEndLoop
Repeatedly executes the statements inBlock. Note that the loop will be executedendlessly, unless a Goto or Exit instructionis executed within Block.
Block is a sequence of statementsseparated with the “:” character.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
LU Catalog >LU Matrix, lMatrix, uMatrix, pMatrix[,Tol]
Calculates the Doolittle LU (lower-upper)decomposition of a real or complex matrix.The lower triangular matrix is stored inlMatrix, the upper triangular matrix inuMatrix, and the permutation matrix(which describes the row swaps doneduring the calculation) in pMatrix.
lMatrix•uMatrix = pMatrix•matrix
Optionally, any matrix element is treated aszero if its absolute value is less than Tol.This tolerance is used only if the matrix hasfloating-point entries and does not containany symbolic variables that have not beenassigned a value. Otherwise, Tol is ignored.
• If you use/· or set the Auto orApproximate mode to Approximate,computations are done using floating-point arithmetic.
• If Tol is omitted or not used, the defaulttolerance is calculated as:5E⁻14•max(dim(Matrix))•rowNorm(Matrix)
Alphabetical Listing 89
90 Alphabetical Listing
LU Catalog >The LU factorization algorithm uses partialpivoting with row interchanges.
M
mat►list() Catalog >mat►list(Matrix) ⇒ list
Returns a list filled with the elements inMatrix. The elements are copied fromMatrix row by row.
Note: You can insert this function from thecomputer keyboard by typing mat@>list(...).
max() Catalog >
max(Value1, Value2) ⇒ expressionmax(List1, List2) ⇒ listmax(Matrix1,Matrix2) ⇒ matrix
Returns the maximum of the twoarguments. If the arguments are two listsor matrices, returns a list or matrixcontaining the maximum value of each pairof corresponding elements.
max(List) ⇒ expression
Returns the maximum element in list.max(Matrix1) ⇒ matrix
Returns a row vector containing themaximum element of each column inMatrix1.
Empty (void) elements are ignored. Formore information on empty elements, seepage 196.
Note: See alsomin().
mean() Catalog >mean(List[, freqList]) ⇒ expression
Returns the mean of the elements in List.
Each freqList element counts the numberof consecutive occurrences of thecorresponding element in List.mean(Matrix1[, freqMatrix]) ⇒ matrix
Returns a row vector of the means of allthe columns inMatrix1.
Each freqMatrix element counts thenumber of consecutive occurrences of thecorresponding element inMatrix1.
Empty (void) elements are ignored. Formore information on empty elements, seepage 196.
In Rectangular vector format:
median() Catalog >median(List[, freqList]) ⇒ expression
Returns the median of the elements in List.
Each freqList element counts the numberof consecutive occurrences of thecorresponding element in List.median(Matrix1[, freqMatrix]) ⇒ matrix
Returns a row vector containing themedians of the columns inMatrix1.
Each freqMatrix element counts thenumber of consecutive occurrences of thecorresponding element inMatrix1.
Notes:
• All entries in the list or matrix mustsimplify to numbers.
• Empty (void) elements in the list ormatrix are ignored. For more informationon empty elements, see page 196.
Alphabetical Listing 91
92 Alphabetical Listing
MedMed Catalog >MedMed X,Y [, Freq] [, Category, Include]]
Computes the median-median line y =(m•x+b) on lists X and Y with frequencyFreq. A summary of results is stored in thestat.results variable. (See page 145.)
All the lists must have equal dimensionexcept for Include.
X and Y are lists of independent anddependent variables.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Category is a list of numeric or stringcategory codes for the corresponding X andY data.
Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Outputvariable Description
stat.RegEqn Median-median line equation: m•x+b
stat.m,stat.b
Model coefficients
stat.Resid Residuals from themedian-median line
stat.XReg List of data points in themodifiedX List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.YReg List of data points in themodifiedY List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.FreqReg List of frequencies corresponding to stat.XReg and stat.YReg
mid() Catalog >mid(sourceString, Start[, Count]) ⇒string
Returns Count characters from characterstring sourceString, beginning withcharacter number Start.
If Count is omitted or is greater than thedimension of sourceString, returns allcharacters from sourceString, beginningwith character number Start.
Count must be ≥ 0. If Count = 0, returns anempty string.
mid(sourceList, Start [, Count]) ⇒ list
Returns Count elements from sourceList,beginning with element number Start.
If Count is omitted or is greater than thedimension of sourceList, returns allelements from sourceList, beginning withelement number Start.
Count must be ≥ 0. If Count = 0, returns anempty list.
mid(sourceStringList, Start[, Count]) ⇒list
Returns Count strings from the list ofstrings sourceStringList, beginning withelement number Start.
min() Catalog >
min(Value1, Value2) ⇒ expressionmin(List1, List2) ⇒ listmin(Matrix1, Matrix2) ⇒ matrix
Returns the minimum of the twoarguments. If the arguments are two listsor matrices, returns a list or matrixcontaining the minimum value of each pairof corresponding elements.
min(List) ⇒ expression
Returns the minimum element of List.
Alphabetical Listing 93
94 Alphabetical Listing
min() Catalog >min(Matrix1) ⇒ matrix
Returns a row vector containing theminimum element of each column inMatrix1.
Note: See alsomax().
mirr() Catalog >mirr(financeRate,reinvestRate,CF0,CFList[,CFFreq])
Financial function that returns the modifiedinternal rate of return of an investment.
financeRate is the interest rate that youpay on the cash flow amounts.
reinvestRate is the interest rate at whichthe cash flows are reinvested.
CF0 is the initial cash flow at time 0; itmust be a real number.
CFList is a list of cash flow amounts afterthe initial cash flow CF0.
CFFreq is an optional list in which eachelement specifies the frequency ofoccurrence for a grouped (consecutive) cashflow amount, which is the correspondingelement of CFList. The default is 1; if youenter values, they must be positive integers< 10,000.
Note: See also irr(), page 73.
mod() Catalog >
mod(Value1, Value2) ⇒ expressionmod(List1, List2) ⇒ listmod(Matrix1,Matrix2) ⇒ matrix
Returns the first argument modulo thesecond argument as defined by theidentities:
mod() Catalog >mod(x,0) = xmod(x,y) = x − y floor(x/y)
When the second argument is non-zero, theresult is periodic in that argument. Theresult is either zero or has the same sign asthe second argument.
If the arguments are two lists or twomatrices, returns a list or matrix containingthe modulo of each pair of correspondingelements.
Note: See also remain(), page 124
mRow() Catalog >mRow(Value,Matrix1, Index) ⇒ matrix
Returns a copy of Matrix1 with eachelement in row Index of Matrix1multipliedby Value.
mRowAdd() Catalog >mRowAdd(Value,Matrix1, Index1, Index2)⇒ matrix
Returns a copy of Matrix1 with eachelement in row Index2 of Matrix1 replacedwith:
Value • row Index1 + row Index2
MultReg Catalog >MultReg Y, X1[,X2[,X3,…[,X10]]]
Calculates multiple linear regression of list Yon lists X1, X2, …, X10. A summary ofresults is stored in the stat.results variable.(See page 145.)
All the lists must have equal dimension.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Alphabetical Listing 95
96 Alphabetical Listing
Output variable Description
stat.RegEqn Regression Equation: b0+b1•x1+b2•x2+ ...
stat.b0, stat.b1, ... Regression coefficients
stat.R2 Coefficient ofmultiple determination
stat.yList yList = b0+b1•x1+ ...
stat.Resid Residuals from the regression
MultRegIntervals Catalog >MultRegIntervals Y, X1[, X2[, X3,…[,X10]]], XValList[, CLevel]
Computes a predicted y-value, a level Cprediction interval for a single observation,and a level C confidence interval for themean response.
A summary of results is stored in thestat.results variable. (See page 145.)
All the lists must have equal dimension.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.RegEqn Regression Equation: b0+b1•x1+b2•x2+ ...
stat.y A point estimate: y = b0 + b1 • xl + ... for XValList
stat.dfError Error degrees of freedom
stat.CLower, stat.CUpper Confidence interval for a mean response
stat.ME Confidence intervalmargin of error
stat.SE Standard error ofmean response
stat.LowerPred,stat.UpperrPred
Prediction interval for a single observation
stat.MEPred Prediction intervalmargin of error
stat.SEPred Standard error for prediction
stat.bList List of regression coefficients, {b0,b1,b2,...}
stat.Resid Residuals from the regression
MultRegTests Catalog >MultRegTests Y, X1[, X2[, X3,…[, X10]]]
Multiple linear regression test computes amultiple linear regression on the given dataand provides the global F test statistic and ttest statistics for the coefficients.
A summary of results is stored in thestat.results variable. (See page 145.)
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Outputs
Outputvariable Description
stat.RegEqn Regression Equation: b0+b1•x1+b2•x2+ ...
stat.F GlobalF test statistic
stat.PVal P-value associatedwith globalF statistic
stat.R2 Coefficient ofmultiple determination
stat.AdjR2 Adjusted coefficient ofmultiple determination
stat.s Standarddeviationof the error
stat.DW Durbin-Watson statistic; used to determinewhether first-order auto correlation ispresent in themodel
stat.dfReg Regressiondegrees of freedom
stat.SSReg Regression sumof squares
stat.MSReg Regressionmean square
stat.dfError Error degrees of freedom
stat.SSError Error sumof squares
stat.MSError Error mean square
stat.bList {b0,b1,...} List of coefficients
stat.tList List of t statistics, one for each coefficient in the bList
stat.PList List P-values for each t statistic
stat.SEList List of standard errors for coefficients in bList
stat.yList yList = b0+b1•x1+ . . .
Alphabetical Listing 97
98 Alphabetical Listing
Outputvariable Description
stat.Resid Residuals from the regression
stat.sResid Standardized residuals; obtainedby dividing a residual by its standarddeviation
stat.CookDist Cook’s distance; measure of the influence of anobservationbasedon the residualand leverage
stat.Leverage Measure of how far the values of the independent variable are from their meanvalues
N
nand /= keysBooleanExpr1 nand BooleanExpr2 returnsBoolean expressionBooleanList1 nand BooleanList2 returnsBoolean listBooleanMatrix1 nand BooleanMatrix2returns Boolean matrix
Returns the negation of a logical andoperation on the two arguments. Returnstrue, false, or a simplified form of theequation.
For lists and matrices, returns comparisonselement by element.
Integer1 nand Integer2⇒ integer
Compares two real integers bit-by-bit usinga nand operation. Internally, both integersare converted to signed, 64-bit binarynumbers. When corresponding bits arecompared, the result is 1 if both bits are 1;otherwise, the result is 0. The returnedvalue represents the bit results, and isdisplayed according to the Base mode.
You can enter the integers in any numberbase. For a binary or hexadecimal entry, youmust use the 0b or 0h prefix, respectively.Without a prefix, integers are treated asdecimal (base 10).
nCr() Catalog >nCr(Value1, Value2) ⇒ expression
For integer Value1 and Value2 withValue1 ≥ Value2≥ 0, nCr() is the number ofcombinations of Value1 things takenValue2 at a time. (This is also known as abinomial coefficient.)
nCr(Value, 0) ⇒ 1
nCr(Value, negInteger) ⇒ 0
nCr(Value, posInteger) ⇒ Value•(Value−1) ... (Value−posInteger+1)/posInteger!
nCr(Value, nonInteger) ⇒ expression! /((Value−nonInteger)!•nonInteger!)nCr(List1, List2) ⇒ list
Returns a list of combinations based on thecorresponding element pairs in the twolists. The arguments must be the same sizelist.
nCr(Matrix1,Matrix2) ⇒ matrix
Returns a matrix of combinations based onthe corresponding element pairs in the twomatrices. The arguments must be the samesize matrix.
nDerivative() Catalog >nDerivative(Expr1,Var=Value[,Order])⇒ value
nDerivative(Expr1,Var[,Order])|Var=Value⇒ value
Returns the numerical derivative calculatedusing auto differentiation methods.
When Value is specified, it overrides anyprior variable assignment or any current “|”substitution for the variable.
If the variable Var does not contain anumeric value, you must provide Value.
Order of the derivative must be 1 or 2.
Alphabetical Listing 99
100 Alphabetical Listing
nDerivative() Catalog >Note: The nDerivative() algorithm has alimitiation: it works recursively through theunsimplified expression, computing thenumeric value of the first derivative (andsecond, if applicable) and the evaluation ofeach subexpression, which may lead to anunexpected result.
Consider the example on the right. The firstderivative of x•(x^2+x)^(1/3) at x=0 is equalto 0. However, because the first derivativeof the subexpression (x^2+x)^(1/3) isundefined at x=0, and this value is used tocalculate the derivative of the totalexpression, nDerivative() reports the resultas undefined and displays a warningmessage.
If you encounter this limitation, verify thesolution graphically. You can also try usingcentralDiff().
newList() Catalog >newList(numElements) ⇒ list
Returns a list with a dimension ofnumElements. Each element is zero.
newMat() Catalog >newMat(numRows, numColumns) ⇒matrix
Returns a matrix of zeros with thedimension numRows by numColumns.
nfMax() Catalog >nfMax(Expr, Var) ⇒ valuenfMax(Expr, Var, lowBound) ⇒ valuenfMax(Expr, Var, lowBound, upBound) ⇒valuenfMax(Expr, Var) |lowBound≤Var≤upBound⇒ value
nfMax() Catalog >Returns a candidate numerical value ofvariable Var where the local maximum ofExpr occurs.
If you supply lowBound and upBound, thefunction looks in the closed interval[lowBound,upBound] for the localmaximum.
nfMin() Catalog >nfMin(Expr, Var) ⇒ valuenfMin(Expr, Var, lowBound) ⇒ valuenfMin(Expr, Var, lowBound, upBound) ⇒valuenfMin(Expr, Var) |lowBound≤Var≤upBound⇒ value
Returns a candidate numerical value ofvariable Var where the local minimum ofExpr occurs.
If you supply lowBound and upBound, thefunction looks in the closed interval[lowBound,upBound] for the localminimum.
nInt() Catalog >nInt(Expr1, Var, Lower, Upper) ⇒expression
If the integrand Expr1 contains no variableother than Var, and if Lower andUpperare constants, positive ∞, or negative ∞,then nInt() returns an approximation of ∫(Expr1, Var, Lower, Upper). Thisapproximation is a weighted average ofsome sample values of the integrand in theinterval Lower<Var<Upper.The goal is six significant digits. Theadaptive algorithm terminates when itseems likely that the goal has beenachieved, or when it seems unlikely thatadditional samples will yield a worthwhileimprovement.
Alphabetical Listing 101
102 Alphabetical Listing
nInt() Catalog >A warning is displayed (“Questionableaccuracy”) when it seems that the goal hasnot been achieved.
Nest nInt() to do multiple numericintegration. Integration limits can dependon integration variables outside them.
nom() Catalog >nom(effectiveRate,CpY) ⇒ value
Financial function that converts the annualeffective interest rate effectiveRate to anominal rate, given CpY as the number ofcompounding periods per year.
effectiveRate must be a real number, andCpY must be a real number > 0.
Note: See also eff(), page 44.
nor /= keysBooleanExpr1 nor BooleanExpr2 returnsBoolean expressionBooleanList1 nor BooleanList2 returnsBoolean listBooleanMatrix1 nor BooleanMatrix2returns Boolean matrix
Returns the negation of a logical oroperation on the two arguments. Returnstrue, false, or a simplified form of theequation.
For lists and matrices, returns comparisonselement by element.
Integer1 nor Integer2⇒ integer
Compares two real integers bit-by-bit usinga nor operation. Internally, both integersare converted to signed, 64-bit binarynumbers. When corresponding bits arecompared, the result is 1 if both bits are 1;otherwise, the result is 0. The returnedvalue represents the bit results, and isdisplayed according to the Base mode.
nor /= keysYou can enter the integers in any numberbase. For a binary or hexadecimal entry, youmust use the 0b or 0h prefix, respectively.Without a prefix, integers are treated asdecimal (base 10).
norm() Catalog >norm(Matrix) ⇒ expression
norm(Vector) ⇒ expression
Returns the Frobenius norm.
normCdf() Catalog >normCdf(lowBound,upBound[,μ[,σ]]) ⇒number if lowBound and upBound arenumbers, list if lowBound and upBound arelists
Computes the normal distribution probabilitybetween lowBound and upBound for thespecified μ (default=0) and σ (default=1).
For P(X ≤ upBound), set lowBound = ⁻9E999.
normPdf() Catalog >normPdf(XVal[,μ[,σ]]) ⇒ number if XVal isa number, list if XVal is a list
Computes the probability density functionfor the normal distribution at a specifiedXVal value for the specified μ and σ.
not Catalog >not BooleanExpr⇒ Boolean expression
Returns true, false, or a simplified form ofthe argument.
not Integer1⇒ integer InHex basemode:
Alphabetical Listing 103
104 Alphabetical Listing
not Catalog >Returns the one’s complement of a realinteger. Internally, Integer1 is converted toa signed, 64-bit binary number. The value ofeach bit is flipped (0 becomes 1, and viceversa) for the one’s complement. Resultsare displayed according to the Base mode.
You can enter the integer in any numberbase. For a binary or hexadecimal entry, youmust use the 0b or 0h prefix, respectively.Without a prefix, the integer is treated asdecimal (base 10).
If you enter a decimal integer that is toolarge for a signed, 64-bit binary form, asymmetric modulo operation is used tobring the value into the appropriate range.For more information, see►Base2, page16.
Important: Zero, not the letter O.
In Bin basemode:
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
Note: A binary entry canhave up to 64 digits(not counting the 0bprefix). A hexadecimalentry canhave up to 16 digits.
nPr() Catalog >nPr(Value1, Value2) ⇒ expression
For integer Value1 and Value2 withValue1 ≥ Value2 ≥ 0, nPr() is the numberof permutations of Value1 things takenValue2 at a time.
nPr(Value, 0) ⇒ 1
nPr(Value, negInteger) ⇒ 1 / ((Value+1)•(Value+2)...(Value−negInteger))
nPr(Value, posInteger) ⇒ Value•(Value−1) ... (Value−posInteger+1)
nPr(Value, nonInteger) ⇒ Value! /(Value−nonInteger)!nPr(List1, List2) ⇒ list
Returns a list of permutations based on thecorresponding element pairs in the twolists. The arguments must be the same sizelist.
nPr(Matrix1,Matrix2) ⇒ matrix
nPr() Catalog >Returns a matrix of permutations based onthe corresponding element pairs in the twomatrices. The arguments must be the samesize matrix.
npv() Catalog >npv(InterestRate,CFO,CFList[,CFFreq])
Financial function that calculates netpresent value; the sum of the presentvalues for the cash inflows and outflows. Apositive result for npv indicates a profitableinvestment.
InterestRate is the rate by which todiscount the cash flows (the cost of money)over one period.
CF0 is the initial cash flow at time 0; itmust be a real number.
CFList is a list of cash flow amounts afterthe initial cash flow CF0.
CFFreq is a list in which each elementspecifies the frequency of occurrence for agrouped (consecutive) cash flow amount,which is the corresponding element ofCFList. The default is 1; if you entervalues, they must be positive integers <10,000.
nSolve() Catalog >nSolve(Equation,Var[=Guess]) ⇒ numberor error_string
nSolve(Equation,Var[=Guess],lowBound)⇒ number or error_string
nSolve(Equation,Var[=Guess],lowBound,upBound) ⇒ numberor error_string
nSolve(Equation,Var[=Guess]) |lowBound≤Var≤upBound⇒ number orerror_string
Note: If there aremultiple solutions, you canuse a guess to help find a particular solution.
Alphabetical Listing 105
106 Alphabetical Listing
nSolve() Catalog >Iteratively searches for one approximatereal numeric solution to Equation for itsone variable. Specify the variable as:
variable– or –variable = real number
For example, x is valid and so is x=3.
nSolve() attempts to determine either onepoint where the residual is zero or tworelatively close points where the residualhas opposite signs and the magnitude ofthe residual is not excessive. If it cannotachieve this using a modest number ofsample points, it returns the string “nosolution found.”
O
OneVar Catalog >OneVar [1,]X[,[Freq][,Category,Include]]
OneVar [n,]X1,X2[X3[,…[,X20]]]
Calculates 1-variable statistics on up to 20lists. A summary of results is stored in thestat.results variable. (See page 145.)
All the lists must have equal dimensionexcept for Include.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Category is a list of numeric category codesfor the corresponding X values.
Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
OneVar Catalog >An empty (void) element in any of the listsX, Freq, or Category results in a void forthe corresponding element of all those lists.An empty element in any of the lists X1through X20 results in a void for thecorresponding element of all those lists. Formore information on empty elements, seepage 196.
Output variable Description
stat.v Meanof x values
stat.Σx Sumof x values
stat.Σx2 Sumof x2 values
stat.sx Sample standarddeviationof x
stat.σx Population standarddeviationof x
stat.n Number of data points
stat.MinX Minimumof x values
stat.Q1X 1stQuartile of x
stat.MedianX Medianof x
stat.Q3X 3rdQuartile of x
stat.MaxX Maximumof x values
stat.SSX Sumof squares of deviations from themeanof x
or Catalog >BooleanExpr1 or BooleanExpr2 returnsBoolean expressionBooleanList1 or BooleanList2 returnsBoolean listBooleanMatrix1 or BooleanMatrix2returns Boolean matrix
Returns true or false or a simplified form ofthe original entry.
Returns true if either or both expressionssimplify to true. Returns false only if bothexpressions evaluate to false.
Note: See xor.
Alphabetical Listing 107
108 Alphabetical Listing
or Catalog >Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
Integer1 or Integer2⇒ integer
Compares two real integers bit-by-bit usingan or operation. Internally, both integersare converted to signed, 64-bit binarynumbers. When corresponding bits arecompared, the result is 1 if either bit is 1;the result is 0 only if both bits are 0. Thereturned value represents the bit results,and is displayed according to the Basemode.
You can enter the integers in any numberbase. For a binary or hexadecimal entry, youmust use the 0b or 0h prefix, respectively.Without a prefix, integers are treated asdecimal (base 10).
If you enter a decimal integer that is toolarge for a signed, 64-bit binary form, asymmetric modulo operation is used tobring the value into the appropriate range.For more information, see►Base2, page16.
Note: See xor.
InHex basemode:
Important: Zero, not the letter O.
In Bin basemode:
Note: A binary entry canhave up to 64 digits(not counting the 0bprefix). A hexadecimalentry canhave up to 16 digits.
ord() Catalog >ord(String) ⇒ integerord(List1) ⇒ list
Returns the numeric code of the firstcharacter in character string String, or a listof the first characters of each list element.
P
P►Rx() Catalog >P►Rx(rExpr, θExpr) ⇒ expressionP►Rx(rList, θList) ⇒ listP►Rx(rMatrix, θMatrix) ⇒ matrix
In Radian anglemode:
P►Rx() Catalog >Returns the equivalent x-coordinate of the(r, θ) pair.
Note: The θ argument is interpreted aseither a degree, gradian or radian angle,according to the current angle mode. If theargument is an expression, you can use °, G,or r to override the angle mode settingtemporarily.
Note: You can insert this function from thecomputer keyboard by typing P@>Rx(...).
P►Ry() Catalog >
P►Ry(rValue, θValue) ⇒ valueP►Ry(rList, θList) ⇒ listP►Ry(rMatrix, θMatrix) ⇒ matrix
Returns the equivalent y-coordinate of the(r, θ) pair.
Note: The θ argument is interpreted aseither a degree, radian or gradian angle,according to the current angle mode.°r
Note: You can insert this function from thecomputer keyboard by typing P@>Ry(...).
In Radian anglemode:
PassErr Catalog >PassErr
Passes an error to the next level.
If system variable errCode is zero, PassErrdoes not do anything.
The Else clause of the Try...Else...EndTryblock should use ClrErr or PassErr. If theerror is to be processed or ignored, useClrErr. If what to do with the error is notknown, use PassErr to send it to the nexterror handler. If there are no more pendingTry...Else...EndTry error handlers, the errordialog box will be displayed as normal.
Note: See also ClrErr, page 22, and Try, page157.
For anexample of PassErr, See Example 2under the Try command, page 157.
Alphabetical Listing 109
110 Alphabetical Listing
PassErr Catalog >Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your product guidebook.
piecewise() Catalog >piecewise(Expr1[, Cond1[, Expr2 [, Cond2[, … ]]]])
Returns definitions for a piecewise functionin the form of a list. You can also createpiecewise definitions by using a template.
Note: See also Piecewise template, page 2.
poissCdf() Catalog >poissCdf(λ,lowBound,upBound) ⇒ numberif lowBound and upBound are numbers, listif lowBound and upBound are lists
poissCdf(λ,upBound)for P(0≤X≤upBound) ⇒number if upBound is a number, list ifupBound is a list
Computes a cumulative probability for thediscrete Poisson distribution with specifiedmean λ.
For P(X ≤ upBound), set lowBound=0
poissPdf() Catalog >poissPdf(λ,XVal) ⇒ number if XVal is anumber, list if XVal is a list
Computes a probability for the discretePoisson distribution with the specified meanλ.
►Polar Catalog >Vector►Polar
Note: You can insert this operator from thecomputer keyboard by typing @>Polar.
►Polar Catalog >Displays vector in polar form [r∠θ]. Thevector must be of dimension 2 and can be arow or a column.
Note:►Polar is a display-formatinstruction, not a conversion function. Youcan use it only at the end of an entry line,and it does not update ans.
Note: See also►Rect, page 122.
complexValue►Polar
Displays complexVector in polar form.
• Degree angle mode returns (r∠θ).• Radian angle mode returns reiθ.
complexValue can have any complex form.However, an reiθ entry causes an error inDegree angle mode.
Note: You must use the parentheses for an(r∠θ) polar entry.
In Radian anglemode:
InGradian anglemode:
InDegree anglemode:
polyEval() Catalog >polyEval(List1, Expr1) ⇒ expressionpolyEval(List1, List2) ⇒ expression
Interprets the first argument as thecoefficient of a descending-degreepolynomial, and returns the polynomialevaluated for the value of the secondargument.
Alphabetical Listing 111
112 Alphabetical Listing
polyRoots() Catalog >polyRoots(Poly,Var) ⇒ list
polyRoots(ListOfCoeffs) ⇒ list
The first syntax, polyRoots(Poly,Var),returns a list of real roots of polynomialPoly with respect to variable Var. If no realroots exist, returns an empty list: { }.
Poly must be a polynomial in expandedform in one variable. Do not useunexpanded forms such as y2•y+1 orx•x+2•x+1The second syntax, polyRoots(ListOfCoeffs), returns a list of real rootsfor the coefficients in ListOfCoeffs.
Note: See also cPolyRoots(), page 30.
PowerReg Catalog >PowerReg X,Y[, Freq][, Category, Include]]
Computes the power regressiony = (a•(x)b)on lists X and Y with frequency Freq. Asummary of results is stored in thestat.results variable. (See page 145.)
All the lists must have equal dimensionexcept for Include.
X and Y are lists of independent anddependent variables.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Category is a list of numeric or stringcategory codes for the corresponding X andY data.
Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
PowerReg Catalog >For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Outputvariable Description
stat.RegEqn Regressionequation: a•(x)b
stat.a, stat.b Regression coefficients
stat.r2 Coefficient of linear determination for transformeddata
stat.r Correlation coefficient for transformeddata (ln(x), ln(y))
stat.Resid Residuals associatedwith the power model
stat.ResidTrans Residuals associatedwith linear fit of transformeddata
stat.XReg List of data points in themodifiedX List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.YReg List of data points in themodifiedY List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.FreqReg List of frequencies corresponding to stat.XReg and stat.YReg
Prgm Catalog >Prgm BlockEndPrgm
Template for creating a user-definedprogram. Must be used with the Define,Define LibPub, or Define LibPriv command.
Block can be a single statement, a seriesof statements separated with the “:”character, or a series of statements onseparate lines.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
Calculate GCDanddisplay intermediateresults.
Alphabetical Listing 113
114 Alphabetical Listing
Prgm Catalog >
prodSeq() See Π (), page 185.
Product (PI) See Π (), page 185.
product() Catalog >product(List[, Start[, End]]) ⇒ expression
Returns the product of the elementscontained in List. Start and End areoptional. They specify a range of elements.
product(Matrix1[, Start[, End]]) ⇒ matrix
Returns a row vector containing theproducts of the elements in the columns ofMatrix1. Start and end are optional. Theyspecify a range of rows.
Empty (void) elements are ignored. Formore information on empty elements, seepage 196.
propFrac() Catalog >propFrac(Value1[, Var]) ⇒ value
propFrac(rational_number) returnsrational_number as the sum of an integerand a fraction having the same sign and agreater denominator magnitude thannumerator magnitude.
propFrac() Catalog >propFrac(rational_expression,Var) returnsthe sum of proper ratios and a polynomialwith respect to Var. The degree of Var inthe denominator exceeds the degree of Varin the numerator in each proper ratio.Similar powers of Var are collected. Theterms and their factors are sorted with Varas the main variable.
If Var is omitted, a proper fractionexpansion is done with respect to the mostmain variable. The coefficients of thepolynomial part are then made proper withrespect to their most main variable firstand so on.
You can use the propFrac() function torepresent mixed fractions and demonstrateaddition and subtraction of mixed fractions.
Q
QR Catalog >QR Matrix, qMatrix, rMatrix[, Tol]
Calculates the Householder QR factorizationof a real or complex matrix. The resulting Qand R matrices are stored to the specifiedMatrix. The Q matrix is unitary. The Rmatrix is upper triangular.
Optionally, any matrix element is treated aszero if its absolute value is less than Tol.This tolerance is used only if the matrix hasfloating-point entries and does not containany symbolic variables that have not beenassigned a value. Otherwise, Tol is ignored.
• If you use/· or set the Auto orApproximate mode to Approximate,computations are done using floating-point arithmetic.
• If Tol is omitted or not used, the default
The floating-point number (9.) inm1 causesresults to be calculated in floating-pointform.
Alphabetical Listing 115
116 Alphabetical Listing
QR Catalog >tolerance is calculated as:5E−14 •max(dim(Matrix)) •rowNorm(Matrix)
The QR factorization is computednumerically using Householdertransformations. The symbolic solution iscomputed using Gram-Schmidt. Thecolumns in qMatName are the orthonormalbasis vectors that span the space defined bymatrix.
QuadReg Catalog >QuadReg X,Y[, Freq][, Category, Include]]
Computes the quadratic polynomialregression y=a•x2+b•x+c on lists X and Ywith frequency Freq. A summary of resultsis stored in the stat.results variable. (Seepage 145.)
All the lists must have equal dimensionexcept for Include.
X and Y are lists of independent anddependent variables.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Category is a list of numeric or stringcategory codes for the corresponding X andY data.
Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Outputvariable
Description
stat.RegEqn Regressionequation: a•x2+b•x+c
stat.a,stat.b, stat.c
Regression coefficients
stat.R2 Coefficient of determination
stat.Resid Residuals from the regression
stat.XReg List of data points in themodifiedX List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.YReg List of data points in themodifiedY List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.FreqReg List of frequencies corresponding to stat.XReg and stat.YReg
QuartReg Catalog >QuartReg X,Y[, Freq][, Category, Include]]
Computes the quartic polynomial regressiony = a•x4+b•x3+c• x2+d•x+e on lists X and Ywith frequency Freq. A summary of resultsis stored in the stat.results variable. (Seepage 145.)
All the lists must have equal dimensionexcept for Include.
X and Y are lists of independent anddependent variables.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Category is a list of numeric or stringcategory codes for the corresponding X andY data.
Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Alphabetical Listing 117
118 Alphabetical Listing
Output variable Description
stat.RegEqn Regressionequation: a•x4+b•x3+c• x2+d•x+e
stat.a, stat.b,stat.c, stat.d,stat.e
Regression coefficients
stat.R2 Coefficient of determination
stat.Resid Residuals from the regression
stat.XReg List of data points in themodifiedX List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.YReg List of data points in themodifiedY List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.FreqReg List of frequencies corresponding to stat.XReg and stat.YReg
R
R►Pθ() Catalog >
R►Pθ (xValue, yValue) ⇒ valueR►Pθ (xList, yList) ⇒ listR►Pθ (xMatrix, yMatrix) ⇒ matrix
Returns the equivalent θ-coordinate of the(x,y) pair arguments.
Note: The result is returned as a degree,gradian or radian angle, according to thecurrent angle mode setting.
Note: You can insert this function from thecomputer keyboard by typing R@>Ptheta(...).
InDegree anglemode:
InGradian anglemode:
In Radian anglemode:
R►Pr() Catalog >
R►Pr (xValue, yValue) ⇒ valueR►Pr (xList, yList) ⇒ listR►Pr (xMatrix, yMatrix) ⇒ matrix
Returns the equivalent r-coordinate of the(x,y) pair arguments.
In Radian anglemode:
R►Pr() Catalog >Note: You can insert this function from thecomputer keyboard by typing R@>Pr(...).
►Rad Catalog >Value1►Rad⇒ valueConverts the argument to radian anglemeasure.
Note: You can insert this operator from thecomputer keyboard by typing @>Rad.
InDegree anglemode:
InGradian anglemode:
rand() Catalog >rand() ⇒ expressionrand(#Trials) ⇒ list
rand() returns a random value between 0and 1.
rand(#Trials) returns a list containing#Trials random values between 0 and 1.
Set the random-number seed.
randBin() Catalog >randBin(n, p) ⇒ expressionrandBin(n, p, #Trials) ⇒ list
randBin(n, p) returns a random real numberfrom a specified Binomial distribution.
randBin(n, p, #Trials) returns a listcontaining #Trials random real numbersfrom a specified Binomial distribution.
Alphabetical Listing 119
120 Alphabetical Listing
randInt() Catalog >randInt(lowBound,upBound)⇒ expressionrandInt(lowBound,upBound,#Trials) ⇒ list
randInt(lowBound,upBound)returns a randominteger within therange specified bylowBound andupBound integerbounds.
randInt(lowBound,upBound,#Trials) returns alist containing#Trials randomintegers within thespecified range.
randMat() Catalog >randMat(numRows, numColumns) ⇒matrix
Returns a matrix of integers between -9and 9 of the specified dimension.
Both arguments must simplify to integers. Note: The values in this matrix will changeeach time youpress·.
randNorm() Catalog >randNorm(μ, σ) ⇒ expressionrandNorm(μ, σ, #Trials) ⇒ list
randNorm(μ, σ) returns a decimal numberfrom the specified normal distribution. Itcould be any real number but will be heavilyconcentrated in the interval [μ−3•σ, μ+3•σ].
randNorm(μ, σ, #Trials) returns a listcontaining #Trials decimal numbers fromthe specified normal distribution.
randPoly() Catalog >randPoly(Var, Order) ⇒ expression
Returns a polynomial in Var of thespecifiedOrder. The coefficients arerandom integers in the range −9 through 9.The leading coefficient will not be zero.
Order must be 0–99.
randSamp() Catalog >randSamp(List,#Trials[,noRepl]) ⇒ list
Returns a list containing a random sampleof #Trials trials from List with an optionfor sample replacement (noRepl=0), or nosample replacement (noRepl=1). Thedefault is with sample replacement.
RandSeed Catalog >RandSeed Number
If Number = 0, sets the seeds to the factorydefaults for the random-number generator.If Number ≠ 0, it is used to generate twoseeds, which are stored in system variablesseed1 and seed2.
real() Catalog >real(Value1) ⇒ value
Returns the real part of the argument.
real(List1) ⇒ list
Returns the real parts of all elements.
real(Matrix1) ⇒ matrix
Returns the real parts of all elements.
Alphabetical Listing 121
122 Alphabetical Listing
►Rect Catalog >Vector►Rect
Note: You can insert this operator from thecomputer keyboard by typing @>Rect.
Displays Vector in rectangular form [x, y,z]. The vector must be of dimension 2 or 3and can be a row or a column.
Note:►Rect is a display-format instruction,not a conversion function. You can use itonly at the end of an entry line, and it doesnot update ans.
Note: See also►Polar, page 110.
complexValue►Rect
Displays complexValue in rectangular forma+bi. The complexValue can have anycomplex form. However, an reiθ entrycauses an error in Degree angle mode.
Note: You must use parentheses for an(r∠θ) polar entry.
In Radian anglemode:
InGradian anglemode:
InDegree anglemode:
Note: To type∠ , select it from the symbollist in the Catalog.
ref() Catalog >ref(Matrix1[, Tol]) ⇒ matrix
Returns the row echelon form of Matrix1.
Optionally, any matrix element is treated aszero if its absolute value is less than Tol.This tolerance is used only if the matrix hasfloating-point entries and does not containany symbolic variables that have not beenassigned a value. Otherwise, Tol is ignored.
ref() Catalog >
• If you use/· or set the Auto orApproximate mode to Approximate,computations are done using floating-point arithmetic.
• If Tol is omitted or not used, the defaulttolerance is calculated as:5E−14 •max(dim(Matrix1)) •rowNorm(Matrix1)
Avoid undefined elements inMatrix1. Theycan lead to unexpected results.
For example, if a is undefined in thefollowing expression, a warning messageappears and the result is shown as:
The warning appears because thegeneralized element 1/a would not be validfor a=0.
You can avoid this by storing a value to abeforehand or by using the constraint (“|”)operator to substitute a value, as shown inthe following example.
Note: See also rref(), page 132.
RefreshProbeVars Catalog >RefreshProbeVars
Allows you to access sensor data from allconnected sensor probes in your TI-Basicprogram.
Example
Define temp()=
Prgm
© Check if system is ready
RefreshProbeVars status
Alphabetical Listing 123
124 Alphabetical Listing
RefreshProbeVars Catalog >
StatusVarValue Status
statusVar=0
Normal (continue with theprogram)
statusVar=1
The Vernier DataQuest™application is in data collectionmode.Note: The Vernier DataQuest™application must be in metermode for this command to work.
statusVar=2
The Vernier DataQuest™application is not launched.
statusVar=3
The Vernier DataQuest™application is launched, but youhave not connected any probes.
If status=0 Then
Disp "ready"
For n,1,50
RefreshProbeVars status
temperature:=meter.temperature
Disp "Temperature:",temperature
If temperature>30 Then
Disp "Too hot"
EndIf
© Wait for 1 second betweensamples
Wait 1
EndFor
Else
Disp "Not ready. Try againlater"
EndIf
EndPrgm
Note: This can also be used with TI-Innovator™ Hub.
remain() Catalog >
remain(Value1, Value2) ⇒ valueremain(List1, List2) ⇒ listremain(Matrix1,Matrix2) ⇒ matrix
Returns the remainder of the firstargument with respect to the secondargument as defined by the identities:
remain(x,0) xremain(x,y) x−y•iPart(x/y)
remain() Catalog >As a consequence, note that remain(−x,y) −remain(x,y). The result is either zero or ithas the same sign as the first argument.
Note: See alsomod(), page 94.
Request Catalog >Request promptString, var[, DispFlag[, statusVar]]
Request promptString, func(arg1, ...argn)[, DispFlag [, statusVar]]
Programming command: Pauses theprogram and displays a dialog boxcontaining the message promptString andan input box for the user’s response.
When the user types a response and clicksOK, the contents of the input box areassigned to variable var.
If the user clicks Cancel, the programproceeds without accepting any input. Theprogram uses the previous value of var ifvar was already defined.
The optional DispFlag argument can beany expression.
• IfDispFlag is omitted or evaluates to 1,the prompt message and user’s responseare displayed in the Calculator history.
• IfDispFlag evaluates to 0, the promptand response are not displayed in thehistory.
Define a program:
Define request_demo()=Prgm Request “Radius: ”,r Disp “Area = “,pi*r2EndPrgm
Run the programand type a response:
request_demo()
Result after selecting OK:
Radius: 6/2Area= 28.2743
The optional statusVar argument gives theprogram a way to determine how the userdismissed the dialog box. Note thatstatusVar requires the DispFlag argument.
• If the user clicked OK or pressed Enter orCtrl+Enter, variable statusVar is set to avalue of 1.
• Otherwise, variable statusVar is set to avalue of 0.
Define a program:
Define polynomial()=Prgm Request "Enter a polynomial inx:",p(x) Disp "Real roots are:",polyRoots(p(x),x)EndPrgm
Run the programand type a response:
polynomial()
Alphabetical Listing 125
126 Alphabetical Listing
Request Catalog >The func() argument allows a program tostore the user’s response as a functiondefinition. This syntax operates as if theuser executed the command:
Define func(arg1, ...argn) = user’sresponse
The program can then use the definedfunction func(). The promptString shouldguide the user to enter an appropriateuser’s response that completes thefunction definition.
Note: You can use the Request commandwithin a user-defined program but notwithin a function.
To stop a program that contains a Requestcommand inside an infinite loop:
• Handheld: Hold down thec key andpress· repeatedly.
• Windows®: Hold down the F12 key andpress Enter repeatedly.
• Macintosh®: Hold down the F5 key andpress Enter repeatedly.
• iPad®: The app displays a prompt. Youcan continue waiting or cancel.
Note: See also RequestStr, page 126.
Result after entering x^3+3x+1 and selectingOK:
Real roots are: {-0.322185}
RequestStr Catalog >RequestStr promptString, var[, DispFlag]
Programming command: Operatesidentically to the first syntax of the Requestcommand, except that the user’s responseis always interpreted as a string. Bycontrast, the Request command interpretsthe response as an expression unless theuser encloses it in quotation marks (““).
Note: You can use the RequestStr commandwithin a user-defined program but notwithin a function.
Define a program:
Define requestStr_demo()=Prgm RequestStr “Your name:”,name,0 Disp “Response has “,dim(name),”characters.”EndPrgm
Run the programand type a response:
requestStr_demo()
RequestStr Catalog >To stop a program that contains aRequestStr command inside an infinite loop:
• Handheld: Hold down thec key andpress· repeatedly.
• Windows®: Hold down the F12 key andpress Enter repeatedly.
• Macintosh®: Hold down the F5 key andpress Enter repeatedly.
• iPad®: The app displays a prompt. Youcan continue waiting or cancel.
Note: See also Request, page 125.
Result after selecting OK (Note that theDispFlag argumentof 0 omits the promptand response from the history):
requestStr_demo()
Response has 5 characters.
Return Catalog >Return [Expr]
Returns Expr as the result of the function.Use within a Func...EndFunc block.
Note: Use Return without an argumentwithin a Prgm...EndPrgm block to exit aprogram.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
right() Catalog >right(List1[, Num]) ⇒ list
Returns the rightmost Num elementscontained in List1.
If you omit Num, returns all of List1.right(sourceString[, Num]) ⇒ string
Returns the rightmost Num characterscontained in character string sourceString.
If you omit Num, returns all ofsourceString.
Alphabetical Listing 127
128 Alphabetical Listing
right() Catalog >right(Comparison) ⇒ expression
Returns the right side of an equation orinequality.
rk23 () Catalog >rk23(Expr, Var, depVar, {Var0, VarMax},depVar0, VarStep [, diftol]) ⇒ matrix
rk23(SystemOfExpr, Var, ListOfDepVars,{Var0, VarMax}, ListOfDepVars0,VarStep[, diftol]) ⇒ matrix
rk23(ListOfExpr, Var, ListOfDepVars,{Var0, VarMax}, ListOfDepVars0,VarStep[, diftol]) ⇒ matrix
Uses the Runge-Kutta method to solve thesystem
with depVar(Var0)=depVar0 on theinterval [Var0,VarMax]. Returns a matrixwhose first row defines the Var outputvalues as defined by VarStep. The secondrow defines the value of the first solutioncomponent at the corresponding Varvalues, and so on.
Expr is the right hand side that defines theordinary differential equation (ODE).
SystemOfExpr is a system of right-handsides that define the system of ODEs(corresponds to order of dependentvariables in ListOfDepVars).
ListOfExpr is a list of right-hand sides thatdefine the system of ODEs (corresponds toorder of dependent variables inListOfDepVars).
Var is the independent variable.
ListOfDepVars is a list of dependentvariables.
Differential equation:
y'=0.001*y*(100-y) and y(0)=10
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
Same equationwithdiftol set to 1.E−6
System of equations:
with y1(0)=2 and y2(0)=5
rk23 () Catalog >{Var0, VarMax} is a two-element list thattells the function to integrate from Var0 toVarMax.
ListOfDepVars0 is a list of initial valuesfor dependent variables.
If VarStep evaluates to a nonzero number:sign(VarStep) = sign(VarMax-Var0) andsolutions are returned at Var0+i*VarStepfor all i=0,1,2,… such that Var0+i*VarStepis in [var0,VarMax] (may not get a solutionvalue at VarMax).
if VarStep evaluates to zero, solutions arereturned at the "Runge-Kutta" Var values.
diftol is the error tolerance (defaults to0.001).
root() Catalog >root(Value) ⇒ rootroot(Value1, Value2) ⇒ root
root(Value) returns the square root ofValue.
root(Value1, Value2) returns the Value2root of Value1. Value1 can be a real orcomplex floating point constant or aninteger or complex rational constant.
Note: See also Nth root template, page 1.
rotate() Catalog >rotate(Integer1[,#ofRotations]) ⇒ integer
Rotates the bits in a binary integer. You canenter Integer1 in any number base; it isconverted automatically to a signed, 64-bitbinary form. If the magnitude of Integer1 istoo large for this form, a symmetric modulooperation brings it within the range. Formore information, see►Base2, page 16.
In Bin basemode:
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
Alphabetical Listing 129
130 Alphabetical Listing
rotate() Catalog >If #ofRotations is positive, the rotation is tothe left. If #ofRotations is negative, therotation is to the right. The default is −1(rotate right one bit).
For example, in a right rotation:
InHex basemode:
Each bit rotates right.
0b00000000000001111010110000110101
Rightmost bit rotates to leftmost.
produces:
0b10000000000000111101011000011010
The result is displayed according to theBase mode.
Important: To enter a binary orhexadecimal number, always use the 0bor0hprefix (zero, not the letter O).
rotate(List1[,#ofRotations]) ⇒ list
Returns a copy of List1 rotated right or leftby #of Rotations elements. Does not alterList1.
If #ofRotations is positive, the rotation is tothe left. If #of Rotations is negative, therotation is to the right. The default is −1(rotate right one element).
InDec basemode:
rotate(String1[,#ofRotations]) ⇒ string
Returns a copy of String1 rotated right orleft by #ofRotations characters. Does notalter String1.
If #ofRotations is positive, the rotation is tothe left. If #ofRotations is negative, therotation is to the right. The default is −1(rotate right one character).
round() Catalog >round(Value1[, digits]) ⇒ value
Returns the argument rounded to thespecified number of digits after the decimalpoint.
digits must be an integer in the range 0–12. If digits is not included, returns theargument rounded to 12 significant digits.
round() Catalog >Note: Display digits mode may affect howthis is displayed.
round(List1[, digits]) ⇒ list
Returns a list of the elements rounded tothe specified number of digits.
round(Matrix1[, digits]) ⇒ matrix
Returns a matrix of the elements roundedto the specified number of digits.
rowAdd() Catalog >rowAdd(Matrix1, rIndex1, rIndex2) ⇒matrix
Returns a copy of Matrix1 with rowrIndex2 replaced by the sum of rowsrIndex1 and rIndex2.
rowDim() Catalog >rowDim(Matrix) ⇒ expression
Returns the number of rows inMatrix.
Note: See also colDim(), page 23.
rowNorm() Catalog >rowNorm(Matrix) ⇒ expression
Returns the maximum of the sums of theabsolute values of the elements in the rowsinMatrix.
Note: All matrix elements must simplify tonumbers. See also colNorm(), page 23.
Alphabetical Listing 131
132 Alphabetical Listing
rowSwap() Catalog >rowSwap(Matrix1, rIndex1, rIndex2) ⇒matrix
Returns Matrix1 with rows rIndex1 andrIndex2 exchanged.
rref() Catalog >rref(Matrix1[, Tol]) ⇒ matrix
Returns the reduced row echelon form ofMatrix1.
Optionally, any matrix element is treated aszero if its absolute value is less than Tol.This tolerance is used only if the matrix hasfloating-point entries and does not containany symbolic variables that have not beenassigned a value. Otherwise, Tol is ignored.
• If you use/· or set the Auto orApproximate mode to Approximate,computations are done using floating-point arithmetic.
• If Tol is omitted or not used, the defaulttolerance is calculated as:5E−14 •max(dim(Matrix1)) •rowNorm(Matrix1)
Note: See also ref(), page 122.
S
sec() µ key
sec(Value1) ⇒ valuesec(List1) ⇒ list
Returns the secant of Value1 or returns alist containing the secants of all elementsin List1.
InDegree anglemode:
sec() µ keyNote: The argument is interpreted as adegree, gradian or radian angle, accordingto the current angle mode setting. You canuse °, G, or r to override the angle modetemporarily.
sec⁻¹() µ key
sec⁻¹(Value1) ⇒ valuesec⁻¹(List1) ⇒ list
Returns the angle whose secant is Value1or returns a list containing the inversesecants of each element of List1.
Note: The result is returned as a degree,gradian, or radian angle, according to thecurrent angle mode setting.
Note: You can insert this function from thekeyboard by typing arcsec(...).
InDegree anglemode:
InGradian anglemode:
In Radian anglemode:
sech() Catalog >
sech(Value1) ⇒ valuesech(List1) ⇒ list
Returns the hyperbolic secant of Value1 orreturns a list containing the hyperbolicsecants of the List1 elements.
sech⁻¹() Catalog >
sech⁻¹(Value1) ⇒ valuesech⁻¹(List1) ⇒ list
Returns the inverse hyperbolic secant ofValue1 or returns a list containing theinverse hyperbolic secants of each elementof List1.
Note: You can insert this function from thekeyboard by typing arcsech(...).
In Radian angle andRectangular complexmode:
Alphabetical Listing 133
134 Alphabetical Listing
Send Hub MenuSend exprOrString1 [, exprOrString2] ...
Programming command: Sends one ormore TI-Innovator™ Hub commands to aconnected hub.
exprOrStringmust be a valid TI-Innovator™Hub Command. Typically, exprOrStringcontains a "SET ..." command to control adevice or a "READ ..." command to requestdata.
The arguments are sent to the hub insuccession.
Note: You can use the Send commandwithin a user-defined program but notwithin a function.
Note: See also Get (page 58), GetStr (page65), and eval() (page 47).
Example: Turnon the blue element of thebuilt-in RGB LED for 0.5 seconds.
Example: Request the current value of thehub's built-in light-level sensor. A Getcommand retrieves the value andassigns itto variable lightval.
Example: Senda calculated frequency to thehub's built-in speaker. Use special variableiostr.SendAns to show the hub commandwith the expressionevaluated.
seq() Catalog >seq(Expr, Var, Low, High[, Step]) ⇒ list
Increments Var from Low throughHigh byan increment of Step, evaluates Expr, andreturns the results as a list. The originalcontents of Var are still there after seq() iscompleted.
The default value for Step = 1. Note: To force anapproximate result,
Handheld: Press/·.Windows®: Press Ctrl+Enter.Macintosh®: Press “+Enter.iPad®: Holdenter, and select .
seqGen() Catalog >seqGen(Expr, Var, depVar, {Var0,VarMax}[, ListOfInitTerms
[, VarStep[, CeilingValue]]]) ⇒ list
Generates a list of terms for sequencedepVar(Var)=Expr as follows: Incrementsindependent variable Var from Var0through VarMax by VarStep, evaluatesdepVar(Var) for corresponding values ofVar using the Expr formula andListOfInitTerms, and returns the results asa list.
seqGen(ListOrSystemOfExpr, Var,ListOfDepVars, {Var0, VarMax} [,MatrixOfInitTerms[, VarStep[,CeilingValue]]]) ⇒ matrix
Generates a matrix of terms for a system(or list) of sequences ListOfDepVars(Var)=ListOrSystemOfExpr as follows:Increments independent variable Var fromVar0 through VarMax by VarStep,evaluates ListOfDepVars(Var) forcorresponding values of Var usingListOrSystemOfExpr formula andMatrixOfInitTerms, and returns the resultsas a matrix.
The original contents of Var are unchangedafter seqGen() is completed.
The default value for VarStep = 1.
Generate the first 5 terms of the sequence u(n) = u(n-1)2/2, withu(1)=2 andVarStep=1.
Example inwhichVar0=2:
Systemof two sequences:
Note: The Void (_) in the initial termmatrixabove is used to indicate that the initial termfor u1(n) is calculatedusing the explicitsequence formula u1(n)=1/n.
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 nfrom 1 through nMax by 1, evaluates u(n)for corresponding values of n using theExpr(u, n) formula and ListOfInitTerms,and returns the results as a list.
seqn(Expr(n[, nMax[, CeilingValue]]) ⇒list
Generate the first 6 terms of the sequence u(n) = u(n-1)/2, withu(1)=2.
Alphabetical Listing 135
136 Alphabetical Listing
seqn() Catalog >Generates a list of terms for a non-recursive sequence u(n)=Expr(n) asfollows: Increments n from 1 through nMaxby 1, evaluates u(n) for correspondingvalues of n using the Expr(n) formula, andreturns 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 andnstep =1
setMode() Catalog >setMode(modeNameInteger,settingInteger) ⇒ integersetMode(list) ⇒ integer list
Valid only within a function or program.
setMode(modeNameInteger,settingInteger) temporarily sets modemodeNameInteger to the new settingsettingInteger, and returns an integercorresponding to the original setting of thatmode. The change is limited to the durationof the program/function’s execution.
modeNameInteger specifies which modeyou want to set. It must be one of the modeintegers from the table below.
settingInteger specifies the new setting forthe mode. It must be one of the settingintegers listed below for the specific modeyou are setting.
setMode(list) lets you change multiplesettings. list contains pairs of modeintegers and setting integers. setMode(list)returns a similar list whose integer pairsrepresent the original modes and settings.
If you have saved all mode settings withgetMode(0)→var, you can use setMode(var) to restore those settings until thefunction or program exits. See getMode(),page 64.
Display approximate value of π using thedefault setting for Display Digits, and thendisplay π with a setting of Fix2. Check to seethat the default is restored after theprogramexecutes.
setMode() Catalog >Note: The current mode settings are passedto called subroutines. If any subroutinechanges a mode setting, the mode changewill be lost when control returns to thecalling routine.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
ModeName
ModeInteger Setting Integers
DisplayDigits
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
ExponentialFormat
3 1=Normal, 2=Scientific, 3=Engineering
Real orComplex
4 1=Real, 2=Rectangular, 3=Polar
Auto orApprox.
5 1=Auto, 2=Approximate
VectorFormat
6 1=Rectangular, 2=Cylindrical, 3=Spherical
Base 7 1=Decimal, 2=Hex, 3=Binary
shift() Catalog >shift(Integer1[,#ofShifts]) ⇒ integer
Shifts the bits in a binary integer. You canenter Integer1 in any number base; it isconverted automatically to a signed, 64-bitbinary form. If the magnitude of Integer1 istoo large for this form, a symmetric modulooperation brings it within the range. Formore information, see►Base2, page 16.
In Bin basemode:
InHex basemode:
Alphabetical Listing 137
138 Alphabetical Listing
shift() Catalog >If #ofShifts is positive, the shift is to theleft. If #ofShifts is negative, the shift is tothe right. The default is −1 (shift right onebit).
In a right shift, the rightmost bit is droppedand 0 or 1 is inserted to match the leftmostbit. In a left shift, the leftmost bit isdropped and 0 is inserted as the rightmostbit.
For example, in a right shift:
Each bit shifts right.
0b0000000000000111101011000011010
Inserts 0 if leftmost bit is 0,or 1 if leftmost bit is 1.
produces:
0b00000000000000111101011000011010
The result is displayed according to theBase mode. Leading zeros are not shown.
Important: To enter a binary orhexadecimal number, always use the 0bor0hprefix (zero, not the letter O).
shift(List1[,#ofShifts]) ⇒ list
Returns a copy of List1 shifted right or leftby #ofShifts elements. Does not alter List1.
If #ofShifts is positive, the shift is to theleft. If #ofShifts is negative, the shift is tothe right. The default is −1 (shift right oneelement).
Elements introduced at the beginning orend of list by the shift are set to the symbol“undef”.
InDec basemode:
shift(String1[,#ofShifts]) ⇒ string
Returns a copy of String1 shifted right orleft by #ofShifts characters. Does not alterString1.
If #ofShifts is positive, the shift is to theleft. If #ofShifts is negative, the shift is tothe right. The default is −1 (shift right onecharacter).
shift() Catalog >Characters introduced at the beginning orend of string by the shift are set to a space.
sign() Catalog >
sign(Value1) ⇒ valuesign(List1) ⇒ listsign(Matrix1) ⇒ matrix
For real and complex Value1, returnsValue1 / abs(Value1) when Value1 ≠ 0.
Returns 1 if Value1is positive.Returns −1 ifValue1 is negative. sign(0) returns „1 if thecomplex format mode is Real; otherwise, itreturns itself.
sign(0) represents the unit circle in thecomplex domain.
For a list or matrix, returns the signs of allthe elements.
If complex formatmode is Real:
simult() Catalog >simult(coeffMatrix, constVector[, Tol]) ⇒matrix
Returns a column vector that contains thesolutions to a system of linear equations.
Note: See also linSolve(), page 81.
coeffMatrix must be a square matrix thatcontains the coefficients of the equations.
constVector must have the same numberof rows (same dimension) as coeffMatrixand contain the constants.
Optionally, any matrix element is treated aszero if its absolute value is less than Tol.This tolerance is used only if the matrix hasfloating-point entries and does not containany symbolic variables that have not beenassigned a value. Otherwise, Tol is ignored.
• If you set the Auto or Approximate modeto Approximate, computations are done
Solve for x and y:x + 2y = 13x + 4y =−1
The solution is x=−3 and y=2.
Solve:ax + by = 1cx + dy = 2
Alphabetical Listing 139
140 Alphabetical Listing
simult() Catalog >using floating-point arithmetic.
• If Tol is omitted or not used, the defaulttolerance is calculated as:5E−14 •max(dim(coeffMatrix))•rowNorm(coeffMatrix)
simult(coeffMatrix, constMatrix[, Tol]) ⇒matrix
Solves multiple systems of linear equations,where each system has the same equationcoefficients but different constants.
Each column in constMatrix must containthe constants for a system of equations.Each column in the resulting matrixcontains the solution for the correspondingsystem.
Solve: x + 2y = 13x + 4y =−1
x + 2y = 23x + 4y =−3
For the first system, x=−3 and y=2. For thesecond system, x=−7 and y=9/2.
sin() µ key
sin(Value1) ⇒ valuesin(List1) ⇒ list
sin(Value1) returns the sine of theargument.
sin(List1) returns a list of the sines of allelements in List1.
Note: The argument is interpreted as adegree, gradian or radian angle, accordingto the current angle mode. You can use °, g,or r to override the angle mode settingtemporarily.
InDegree anglemode:
InGradian anglemode:
In Radian anglemode:
sin(squareMatrix1) ⇒ squareMatrix
Returns the matrix sine of squareMatrix1.This is not the same as calculating the sineof each element. For information about thecalculation method, refer to cos().
In Radian anglemode:
sin() µ keysquareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
sin⁻¹() µ key
sin⁻¹(Value1) ⇒ valuesin⁻¹(List1) ⇒ list
sin⁻¹(Value1) returns the angle whose sineis Value1.
sin⁻¹(List1) returns a list of the inversesines of each element of List1.
Note: The result is returned as a degree,gradian or radian angle, according to thecurrent angle mode setting.
Note: You can insert this function from thekeyboard by typing arcsin(...).
InDegree anglemode:
InGradian anglemode:
In Radian anglemode:
sin⁻¹(squareMatrix1) ⇒ squareMatrix
Returns the matrix inverse sine ofsquareMatrix1. This is not the same ascalculating the inverse sine of eachelement. For information about thecalculation method, refer to cos().
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
In Radian anglemode andRectangularcomplex formatmode:
sinh() Catalog >
sinh(Numver1) ⇒ valuesinh(List1) ⇒ list
sinh (Value1) returns the hyperbolic sine ofthe argument.
sinh (List1) returns a list of the hyperbolicsines of each element of List1.
Alphabetical Listing 141
142 Alphabetical Listing
sinh() Catalog >sinh(squareMatrix1) ⇒ squareMatrix
Returns the matrix hyperbolic sine ofsquareMatrix1. This is not the same ascalculating the hyperbolic sine of eachelement. For information about thecalculation method, refer to cos().
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
In Radian anglemode:
sinh⁻¹() Catalog >
sinh⁻¹(Value1) ⇒ valuesinh⁻¹(List1) ⇒ list
sinh⁻¹(Value1) returns the inversehyperbolic sine of the argument.
sinh⁻¹(List1) returns a list of the inversehyperbolic sines of each element of List1.
Note: You can insert this function from thekeyboard by typing arcsinh(...).
sinh⁻¹(squareMatrix1) ⇒ squareMatrix
Returns the matrix inverse hyperbolic sineof squareMatrix1. This is not the same ascalculating the inverse hyperbolic sine ofeach element. For information about thecalculation method, refer to cos().
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
In Radian anglemode:
SinReg Catalog >SinReg X, Y[, [Iterations],[Period][,Category, Include]]
Computes the sinusoidal regression on listsX and Y. A summary of results is stored inthe stat.results variable. (See page 145.)
All the lists must have equal dimensionexcept for Include.
SinReg Catalog >X and Y are lists of independent anddependent variables.
Iterations is a value that specifies themaximum number of times (1 through 16) asolution will be attempted. If omitted, 8 isused. Typically, larger values result in betteraccuracy but longer execution times, andvice versa.
Period specifies an estimated period. Ifomitted, the difference between values in Xshould be equal and in sequential order. Ifyou specify Period, the differences betweenx values can be unequal.
Category is a list of numeric or stringcategory codes for the corresponding X andY data.
Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
The output of SinReg is always in radians,regardless of the angle mode setting.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Outputvariable Description
stat.RegEqn Regression Equation: a•sin(bx+c)+d
stat.a, stat.b,stat.c, stat.d
Regression coefficients
stat.Resid Residuals from the regression
stat.XReg List of data points in themodifiedX List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.YReg List of data points in themodifiedY List actually used in the regressionbasedonrestrictions ofFreq, Category List, and Include Categories
stat.FreqReg List of frequencies corresponding to stat.XReg and stat.YReg
Alphabetical Listing 143
144 Alphabetical Listing
SortA Catalog >SortA List1[, List2] [, List3]...SortA Vector1[, Vector2] [, Vector3]...
Sorts the elements of the first argument inascending order.
If you include additional arguments, sortsthe elements of each so that their newpositions match the new positions of theelements in the first argument.
All arguments must be names of lists orvectors. All arguments must have equaldimensions.
Empty (void) elements within the firstargument move to the bottom. For moreinformation on empty elements, see page196.
SortD Catalog >SortD List1[, List2][, List3]...SortD Vector1[,Vector2][,Vector3]...
Identical to SortA, except SortD sorts theelements in descending order.
Empty (void) elements within the firstargument move to the bottom. For moreinformation on empty elements, see page196.
►Sphere Catalog >Vector►Sphere
Note: You can insert this operator from thecomputer keyboard by typing @>Sphere.
Displays the row or column vector inspherical form [ρ∠θ∠φ].
Vector must be of dimension 3 and can beeither a row or a column vector.
►Sphere Catalog >Note:►Sphere is a display-formatinstruction, not a conversion function. Youcan use it only at the end of an entry line.
sqrt() Catalog >
sqrt(Value1) ⇒ valuesqrt(List1) ⇒ list
Returns the square root of the argument.
For a list, returns the square roots of all theelements in List1.
Note: See also Square root template, page1.
stat.results Catalog >stat.results
Displays results from a statisticscalculation.
The results are displayed as a set of name-value pairs. The specific names shown aredependent on the most recently evaluatedstatistics function or command.
You can copy a name or value and paste itinto other locations.
Note: Avoid defining variables that use thesame names as those used for statisticalanalysis. In some cases, an error conditioncould occur. Variable names used forstatistical analysis are listed in the tablebelow.
Alphabetical Listing 145
146 Alphabetical Listing
stat.astat.AdjR²stat.bstat.b0stat.b1stat.b2stat.b3stat.b4stat.b5stat.b6stat.b7stat.b8stat.b9stat.b10stat.bListstat.χ²stat.cstat.CLowerstat.CLowerListstat.CompListstat.CompMatrixstat.CookDiststat.CUpperstat.CUpperListstat.d
stat.dfDenomstat.dfBlockstat.dfColstat.dfErrorstat.dfInteractstat.dfRegstat.dfNumerstat.dfRowstat.DWstat.estat.ExpMatrixstat.Fstat.FBlockstat.Fcolstat.FInteractstat.FreqRegstat.Frowstat.Leveragestat.LowerPredstat.LowerValstat.mstat.MaxXstat.MaxYstat.MEstat.MedianX
stat.MedianYstat.MEPredstat.MinXstat.MinYstat.MSstat.MSBlockstat.MSColstat.MSErrorstat.MSInteractstat.MSRegstat.MSRowstat.nStat.Çstat.Ç1stat.Ç2stat.ÇDiffstat.PListstat.PValstat.PValBlockstat.PValColstat.PValInteractstat.PValRowstat.Q1Xstat.Q1Y
stat.Q3Xstat.Q3Ystat.rstat.r²stat.RegEqnstat.Residstat.ResidTransstat.σxstat.σystat.σx1stat.σx2stat.Σxstat.Σx²stat.Σxystat.Σystat.Σy²stat.sstat.SEstat.SEListstat.SEPredstat.sResidstat.SEslopestat.spstat.SS
stat.SSBlockstat.SSColstat.SSXstat.SSYstat.SSErrorstat.SSInteractstat.SSRegstat.SSRowstat.tListstat.UpperPredstat.UpperValstat.vstat.v1stat.v2stat.vDiffstat.vListstat.XRegstat.XValstat.XValListstat.w
stat.y
stat.yListstat.YReg
Note: Each time the Lists & Spreadsheet application calculates statistical results, itcopies the “stat.” group variables to a “stat#.” group, where # is a number that isincremented automatically. This lets you maintain previous results whileperforming multiple calculations.
stat.values Catalog >stat.values
Displays a matrix of the values calculated forthe most recently evaluated statisticsfunction or command.
Unlike stat.results, stat.values omits thenames associated with the values.
You can copy a value and paste it into otherlocations.
See the stat.results example.
stDevPop() Catalog >stDevPop(List [, freqList]) ⇒ expression
Returns the population standard deviationof the elements in List.
Each freqList element counts the numberof consecutive occurrences of thecorresponding element in List.
Note:List must have at least two elements.Empty (void) elements are ignored. Formore information on empty elements, seepage 196.
In Radian angle andauto modes:
stDevPop(Matrix1[, freqMatrix]) ⇒matrix
Returns a row vector of the populationstandard deviations of the columns inMatrix1.
Each freqMatrix element counts thenumber of consecutive occurrences of thecorresponding element inMatrix1.
Note:Matrix1must have at least two rows.Empty (void) elements are ignored. Formore information on empty elements, seepage 196.
stDevSamp() Catalog >stDevSamp(List[, freqList]) ⇒ expression
Returns the sample standard deviation ofthe elements in List.
Each freqList element counts the numberof consecutive occurrences of thecorresponding element in List.
Note:List must have at least two elements.Empty (void) elements are ignored. Formore information on empty elements, seepage 196.
Alphabetical Listing 147
148 Alphabetical Listing
stDevSamp() Catalog >stDevSamp(Matrix1[, freqMatrix]) ⇒matrix
Returns a row vector of the samplestandard deviations of the columns inMatrix1.
Each freqMatrix element counts thenumber of consecutive occurrences of thecorresponding element inMatrix1.
Note:Matrix1must have at least two rows.Empty (void) elements are ignored. Formore information on empty elements, seepage 196.
Stop Catalog >Stop
Programming command: Terminates theprogram.
Stop is not allowed in functions.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
Store See→(store), page 193.
string() Catalog >string(Expr) ⇒ string
Simplifies Expr and returns the result as acharacter string.
subMat() Catalog >subMat(Matrix1[, startRow][, startCol][,endRow][, endCol]) ⇒ matrix
Returns the specified submatrix of Matrix1.
Defaults: startRow=1, startCol=1,endRow=last row, endCol=last column.
Sum (Sigma) See Σ(), page 186.
sum() Catalog >sum(List[, Start[, End]]) ⇒ expression
Returns the sum of all elements in List.
Start and End are optional. They specify arange of elements.
Any void argument produces a void result.Empty (void) elements in List are ignored.For more information on empty elements,see page 196.
sum(Matrix1[, Start[, End]]) ⇒ matrix
Returns a row vector containing the sumsof all elements in the columns inMatrix1.
Start and End are optional. They specify arange of rows.
Any void argument produces a void result.Empty (void) elements inMatrix1 areignored. For more information on emptyelements, see page 196.
sumIf() Catalog >sumIf(List,Criteria[, SumList]) ⇒ value
Returns the accumulated sum of allelements in List that meet the specifiedCriteria. Optionally, you can specify analternate list, sumList, to supply theelements to accumulate.
Alphabetical Listing 149
150 Alphabetical Listing
sumIf() Catalog >List can be an expression, list, or matrix.SumList, if specified, must have the samedimension(s) as List.
Criteria can be:
• A value, expression, or string. Forexample, 34 accumulates only thoseelements in List that simplify to thevalue 34.
• A Boolean expression containing thesymbol ? as a placeholder for eachelement. For example, ?<10 accumulatesonly those elements in List that are lessthan 10.
When a List element meets the Criteria,the element is added to the accumulatingsum. If you include sumList, thecorresponding element from sumList isadded to the sum instead.
Within the Lists & Spreadsheet application,you can use a range of cells in place of Listand sumList.
Empty (void) elements are ignored. Formore information on empty elements, seepage 196.
Note: See also countIf(), page 29.
sumSeq() See Σ(), page 186.
system() Catalog >system(Value1[, Value2[, Value3[, ...]]])
Returns a system of equations, formatted asa list. You can also create a system by usinga template.
T
T (transpose) Catalog >Matrix1T ⇒ matrix
Returns the complex conjugate transpose ofMatrix1.
Note: You can insert this operator from thecomputer keyboard by typing @t.
tan() µ key
tan(Value1) ⇒ valuetan(List1) ⇒ list
tan(Value1) returns the tangent of theargument.
tan(List1) returns a list of the tangents ofall elements in List1.
Note: The argument is interpreted as adegree, gradian or radian angle, accordingto the current angle mode. You can use °, gor r to override the angle mode settingtemporarily.
InDegree anglemode:
InGradian anglemode:
In Radian anglemode:
tan(squareMatrix1) ⇒ squareMatrix
Returns the matrix tangent ofsquareMatrix1. This is not the same ascalculating the tangent of each element.For information about the calculationmethod, refer to cos().
In Radian anglemode:
Alphabetical Listing 151
152 Alphabetical Listing
tan() µ keysquareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
tan⁻¹() µ keytan⁻¹(Value1) ⇒ value
tan⁻¹(List1) ⇒ list
tan⁻¹(Value1) returns the angle whosetangent is Value1.
tan⁻¹(List1) returns a list of the inversetangents of each element of List1.
Note: The result is returned as a degree,gradian or radian angle, according to thecurrent angle mode setting.
Note: You can insert this function from thekeyboard by typing arctan(...).
InDegree anglemode:
InGradian anglemode:
In Radian anglemode:
tan⁻¹(squareMatrix1) ⇒ squareMatrix
Returns the matrix inverse tangent ofsquareMatrix1. This is not the same ascalculating the inverse tangent of eachelement. For information about thecalculation method, refer to cos().
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
In Radian anglemode:
tanh() Catalog >tanh(Value1) ⇒ value
tanh(List1) ⇒ list
tanh(Value1) returns the hyperbolictangent of the argument.
tanh(List1) returns a list of the hyperbolictangents of each element of List1.tanh(squareMatrix1) ⇒ squareMatrix In Radian anglemode:
tanh() Catalog >Returns the matrix hyperbolic tangent ofsquareMatrix1. This is not the same ascalculating the hyperbolic tangent of eachelement. For information about thecalculation method, refer to cos().
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
tanh⁻¹() Catalog >
tanh⁻¹(Value1) ⇒ valuetanh⁻¹(List1) ⇒ list
tanh⁻¹(Value1) returns the inversehyperbolic tangent of the argument.
tanh⁻¹(List1) returns a list of the inversehyperbolic tangents of each element ofList1.
Note: You can insert this function from thekeyboard by typing arctanh(...).
In Rectangular complex format:
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
tanh⁻¹(squareMatrix1) ⇒ squareMatrix
Returns the matrix inverse hyperbolictangent of squareMatrix1. This is not thesame as calculating the inverse hyperbolictangent of each element. For informationabout the calculation method, refer to cos().
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
In Radian anglemode andRectangularcomplex format:
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
tCdf() Catalog >tCdf(lowBound,upBound,df) ⇒ number iflowBound and upBound are numbers, list iflowBound and upBound are lists
Computes the Student-t distributionprobability between lowBound and upBoundfor the specified degrees of freedom df.
Alphabetical Listing 153
154 Alphabetical Listing
tCdf() Catalog >For P(X ≤ upBound), set lowBound = ⁻9E999.
Text Catalog >TextpromptString[, DispFlag]
Programming command: Pauses theprogram and displays the character stringpromptString in a dialog box.
When the user selects OK, programexecution continues.
The optional flag argument can be anyexpression.
• IfDispFlag is omitted or evaluates to 1,the text message is added to theCalculator history.
• IfDispFlag evaluates to 0, the textmessage is not added to the history.
If the program needs a typed response fromthe user, refer to Request, page 125, orRequestStr, page 126.
Note: You can use this command within auser-defined program but not within afunction.
Define a program that pauses to displayeachof five randomnumbers in a dialogbox.
Within the Prgm...EndPrgm template,complete each line by pressing@ insteadof·. On the computer keyboard, holddownAlt andpress Enter.
Define text_demo()=Prgm For i,1,5 strinfo:=”Random number “ &string(rand(i)) Text strinfo EndForEndPrgm
Run the program:
text_demo()
Sample of one dialog box:
Then See If, page 67.
tInterval Catalog >tInterval List[, Freq[, CLevel]]
(Data list input)
tInterval v, sx, n[, CLevel]
(Summary stats input)
tInterval Catalog >Computes a t confidence interval. Asummary of results is stored in thestat.results variable. (See page 145.)
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.CLower, stat.CUpper Confidence interval for anunknownpopulationmean
stat.v Samplemeanof the data sequence from the normal randomdistribution
stat.ME Margin of error
stat.df Degrees of freedom
stat.σx Sample standarddeviation
stat.n Lengthof the data sequencewith samplemean
tInterval_2Samp Catalog >tInterval_2Samp List1,List2[,Freq1[,Freq2[,CLevel[,Pooled]]]]
(Data list input)
tInterval_2Samp v1,sx1,n1,v2,sx2,n2[,CLevel[,Pooled]]
(Summary stats input)
Computes a two-sample t confidenceinterval. A summary of results is stored inthe stat.results variable. (See page 145.)
Pooled=1 pools variances; Pooled=0 doesnot pool variances.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.CLower,stat.CUpper
Confidence interval containing confidence level probability of distribution
stat.v1-v2 Samplemeans of the data sequences from the normal randomdistribution
Alphabetical Listing 155
156 Alphabetical Listing
Output variable Description
stat.ME Margin of error
stat.df Degrees of freedom
stat.v1, stat.v2 Samplemeans of the data sequences from the normal randomdistribution
stat.σx1, stat.σx2 Sample standarddeviations for List 1 and List 2
stat.n1, stat.n2 Number of samples in data sequences
stat.sp The pooled standarddeviation. CalculatedwhenPooled = YES
tPdf() Catalog >tPdf(XVal,df) ⇒ number if XVal is anumber, list if XVal is a list
Computes the probability density function(pdf) for the Student-t distribution at aspecified x value with specified degrees offreedom df.
trace() Catalog >trace(squareMatrix) ⇒ value
Returns the trace (sum of all the elementson the main diagonal) of squareMatrix.
Try Catalog >Try block1Else block2EndTry
Executes block1 unless an error occurs.Program execution transfers to block2 if anerror occurs in block1. System variableerrCode contains the error code to allowthe program to perform error recovery. Fora list of error codes, see “Error codes andmessages,” page 211.
block1 and block2 can be either a singlestatement or a series of statementsseparated with the “:” character.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
To see the commands Try, ClrErr, andPassErr in operation, enter the eigenvals()program shown at the right. Run theprogram by executing each of the followingexpressions.
Note: See also ClrErr, page 22, and PassErr,page 109.
Define eigenvals(a,b)=Prgm© Programeigenvals(A,B) displayseigenvalues of A•B
Try Disp "A= ",a Disp "B= ",b Disp " "
Disp "Eigenvalues of A•B are:",eigVl(a*b)
Else If errCode=230 Then Disp "Error: Product of A•B must be asquarematrix" ClrErr Else PassErr EndIfEndTry
EndPrgm
Alphabetical Listing 157
158 Alphabetical Listing
tTest Catalog >tTest μ0,List[,Freq[,Hypoth]]
(Data list input)
tTest μ0,v,sx,n,[Hypoth]
(Summary stats input)
Performs a hypothesis test for a singleunknown population mean μ when thepopulation standard deviation σ is unknown.A summary of results is stored in thestat.results variable. (See page 145.)
Test H0: μ = μ0, against one of the
following:
For Ha: μ < μ0, set Hypoth<0
For Ha: μ ≠ μ0 (default), set Hypoth=0
For Ha: μ > μ0, set Hypoth>0
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.t (v −μ0) / (stdev / sqrt(n))
stat.PVal Smallest level of significance atwhich the null hypothesis canbe rejected
stat.df Degrees of freedom
stat.v Samplemeanof the data sequence inList
stat.sx Sample standarddeviationof the data sequence
stat.n Size of the sample
tTest_2Samp Catalog >tTest_2Samp List1,List2[,Freq1[,Freq2[,Hypoth[,Pooled]]]]
(Data list input)
tTest_2Samp v1,sx1,n1,v2,sx2,n2[,Hypoth[,Pooled]]
(Summary stats input)
tTest_2Samp Catalog >Computes a two-sample t test. A summaryof results is stored in the stat.resultsvariable. (See page 145.)
Test H0: μ1 = μ2, against one of the
following:
For Ha: μ1< μ2, set Hypoth<0
For Ha: μ1≠ μ2 (default), set Hypoth=0
For Ha: μ1> μ2, set Hypoth>0
Pooled=1 pools variancesPooled=0 does not pool variances
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.t Standardnormal value computed for the difference ofmeans
stat.PVal Smallest level of significance atwhich the null hypothesis canbe rejected
stat.df Degrees of freedom for the t-statistic
stat.v1, stat.v2 Samplemeans of the data sequences inList 1 andList 2
stat.sx1, stat.sx2 Sample standarddeviations of the data sequences inList 1 andList 2
stat.n1, stat.n2 Size of the samples
stat.sp The pooled standarddeviation. CalculatedwhenPooled=1.
tvmFV() Catalog >tvmFV(N,I,PV,Pmt,[PpY],[CpY],[PmtAt])⇒ value
Financial function that calculates the futurevalue of money.
Note: Arguments used in the TVM functionsare described in the table of TVMarguments, page 161. See also amortTbl(),page 7.
tvmI() Catalog >tvmI(N,PV,Pmt,FV,[PpY],[CpY],[PmtAt])⇒ value
Alphabetical Listing 159
160 Alphabetical Listing
tvmI() Catalog >Financial function that calculates theinterest rate per year.
Note: Arguments used in the TVM functionsare described in the table of TVMarguments, page 161. See also amortTbl(),page 7.
tvmN() Catalog >tvmN(I,PV,Pmt,FV,[PpY],[CpY],[PmtAt])⇒ value
Financial function that calculates thenumber of payment periods.
Note: Arguments used in the TVM functionsare described in the table of TVMarguments, page 161. See also amortTbl(),page 7.
tvmPmt() Catalog >tvmPmt(N,I,PV,FV,[PpY],[CpY],[PmtAt])⇒ value
Financial function that calculates theamount of each payment.
Note: Arguments used in the TVM functionsare described in the table of TVMarguments, page 161. See also amortTbl(),page 7.
tvmPV() Catalog >tvmPV(N,I,Pmt,FV,[PpY],[CpY],[PmtAt])⇒ value
Financial function that calculates thepresent value.
Note: Arguments used in the TVM functionsare described in the table of TVMarguments, page 161. See also amortTbl(),page 7.
TVMargument*
Description Data type
N Number of payment periods real number
I Annual interest rate real number
PV Present value real number
Pmt Payment amount real number
FV Future value real number
PpY Payments per year, default=1 integer > 0
CpY Compounding periods per year, default=1 integer > 0
PmtAt Payment due at the endor beginning of eachperiod,default=end
integer (0=end,1=beginning)
* These time-value-of-money argument names are similar to the TVM variable names(such as tvm.pv and tvm.pmt) that are used by the Calculator application’s financesolver. Financial functions, however, do not store their argument values or results tothe TVM variables.
TwoVar Catalog >TwoVar X, Y[, [Freq][, Category, Include]]
Calculates the TwoVar statistics. A summaryof results is stored in the stat.resultsvariable. (See page 145.)
All the lists must have equal dimensionexcept for Include.
X and Y are lists of independent anddependent variables.
Freq is an optional list of frequency values.Each element in Freq specifies thefrequency of occurrence for eachcorresponding X and Y data point. Thedefault value is 1. All elements must beintegers ≥ 0.
Category is a list of numeric category codesfor the corresponding X and Y data.
Include is a list of one or more of thecategory codes. Only those data itemswhose category code is included in this listare included in the calculation.
Alphabetical Listing 161
162 Alphabetical Listing
TwoVar Catalog >An empty (void) element in any of the listsX, Freq, or Category results in a void forthe corresponding element of all those lists.An empty element in any of the lists X1through X20 results in a void for thecorresponding element of all those lists. Formore information on empty elements, seepage 196.
Output variable Description
stat.v Meanof x values
stat.Σx Sumof x values
stat.Σx2 Sumof x2 values
stat.sx Sample standarddeviationof x
stat.σx Population standarddeviationof x
stat.n Number of data points
stat.w Meanof y values
stat.Σy Sumof y values
stat.Σy2 Sumof y2 values
stat.sy Sample standarddeviationof y
stat.σy Population standarddeviationof y
stat.Σxy Sumof x•y values
stat.r Correlation coefficient
stat.MinX Minimumof x values
stat.Q1X 1stQuartile of x
stat.MedianX Medianof x
stat.Q3X 3rdQuartile of x
stat.MaxX Maximumof x values
stat.MinY Minimumof y values
stat.Q1Y 1stQuartile of y
stat.MedY Medianof y
stat.Q3Y 3rdQuartile of y
Output variable Description
stat.MaxY Maximumof y values
stat.Σ(x-v)2 Sumof squares of deviations from themeanof x
stat.Σ(y-w)2 Sumof squares of deviations from themeanof y
U
unitV() Catalog >unitV(Vector1) ⇒ vector
Returns either a row- or column-unit vector,depending on the form of Vector1.
Vector1must be either a single-row matrixor a single-column matrix.
unLock Catalog >unLock Var1[, Var2] [, Var3] ...unLock Var.
Unlocks the specified variables or variablegroup. Locked variables cannot be modifiedor deleted.
See Lock, page 85, and getLockInfo(), page63.
V
varPop() Catalog >varPop(List[, freqList]) ⇒ expression
Returns the population variance of List.
Each freqList element counts the numberof consecutive occurrences of thecorresponding element in List.
Note: List must contain at least twoelements.
Alphabetical Listing 163
164 Alphabetical Listing
varPop() Catalog >If an element in either list is empty (void),that element is ignored, and thecorresponding element in the other list isalso ignored. For more information onempty elements, see page 196.
varSamp() Catalog >varSamp(List[, freqList]) ⇒ expression
Returns the sample variance of List.
Each freqList element counts the numberof consecutive occurrences of thecorresponding element in List.
Note: List must contain at least twoelements.
If an element in either list is empty (void),that element is ignored, and thecorresponding element in the other list isalso ignored. For more information onempty elements, see page 196.
varSamp(Matrix1[, freqMatrix]) ⇒matrix
Returns a row vector containing the samplevariance of each column inMatrix1.
Each freqMatrix element counts thenumber of consecutive occurrences of thecorresponding element inMatrix1.
If an element in either matrix is empty(void), that element is ignored, and thecorresponding element in the other matrixis also ignored. For more information onempty elements, see page 196.
Note:Matrix1must contain at least tworows.
W
Wait Catalog >Wait timeInSeconds To wait 4 seconds:
Wait 4
Wait Catalog >Suspends execution for a period oftimeInSeconds seconds.
Wait is particularly useful in a program thatneeds a brief delay to allow requested datato become available.
The argument timeInSeconds must be anexpression that simplifies to a decimal valuein the range 0 through 100. The commandrounds this value up to the nearest 0.1seconds.
To cancel a Wait that is in progress,
• Handheld: Hold down thec key andpress· repeatedly.
• Windows®: Hold down the F12 key andpress Enter repeatedly.
• Macintosh®: Hold down the F5 key andpress Enter repeatedly.
• iPad®: The app displays a prompt. You cancontinue waiting or cancel.
Note: You can use the Wait command withina user-defined program but not within afunction.
To wait 1/2 second:
Wait 0.5
To wait 1.3 seconds using the variableseccount:seccount:=1.3Wait seccount
This example switches a green LEDon for0.5 seconds and then switches it off.
Send "SET GREEN 1 ON"Wait 0.5Send "SET GREEN 1 OFF"
warnCodes () Catalog >warnCodes(Expr1, StatusVar) ⇒expression
Evaluates expression Expr1, returns theresult, and stores the codes of anygenerated warnings in the StatusVar listvariable. If no warnings are generated, thisfunction assigns StatusVar an empty list.
Expr1 can be any valid TI-Nspire™ orTI-Nspire™ CAS math expression. Youcannot use a command or assignment asExpr1.
StatusVar must be a valid variable name.
For a list of warning codes and associatedmessages, see page 211.
Alphabetical Listing 165
166 Alphabetical Listing
when() Catalog >when(Condition, trueResult [, falseResult][, unknownResult]) ⇒ expression
Returns trueResult, falseResult, orunknownResult, depending on whetherCondition is true, false, or unknown.Returns the input if there are too fewarguments to specify the appropriate result.
Omit both falseResult and unknownResultto make an expression defined only in theregion where Condition is true.Use an undef falseResult to define anexpression that graphs only on an interval.
when() is helpful for defining recursivefunctions.
While Catalog >While Condition BlockEndWhile
Executes the statements in Block as longas Condition is true.
Block can be either a single statement or asequence of statements separated with the“:” character.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
X
xor Catalog >BooleanExpr1 xor BooleanExpr2 returnsBoolean expressionBooleanList1xor BooleanList2 returns BooleanlistBooleanMatrix1xor BooleanMatrix2 returns Boolean
xor Catalog >matrix
Returns true if BooleanExpr1 is true andBooleanExpr2 is false, or vice versa.
Returns false if both arguments are true orif both are false. Returns a simplifiedBoolean expression if either of thearguments cannot be resolved to true orfalse.
Note: See or, page 107.
Integer1 xor Integer2⇒ integer
Compares two real integers bit-by-bit usingan xor operation. Internally, both integersare converted to signed, 64-bit binarynumbers. When corresponding bits arecompared, the result is 1 if either bit (butnot both) is 1; the result is 0 if both bits are0 or both bits are 1. The returned valuerepresents the bit results, and is displayedaccording to the Base mode.
You can enter the integers in any numberbase. For a binary or hexadecimal entry, youmust use the 0b or 0h prefix, respectively.Without a prefix, integers are treated asdecimal (base 10).
If you enter a decimal integer that is toolarge for a signed, 64-bit binary form, asymmetric modulo operation is used tobring the value into the appropriate range.For more information, see►Base2, page16.
Note: See or, page 107.
InHex basemode:
Important: Zero, not the letter O.
In Bin basemode:
Note: A binary entry canhave up to 64 digits(not counting the 0bprefix). A hexadecimalentry canhave up to 16 digits.
Z
zInterval Catalog >zInterval σ,List[,Freq[,CLevel]]
(Data list input)
zInterval σ,v,n [,CLevel]
(Summary stats input)
Alphabetical Listing 167
168 Alphabetical Listing
zInterval Catalog >Computes a z confidence interval. Asummary of results is stored in thestat.results variable. (See page 145.)
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.CLower, stat.CUpper Confidence interval for anunknownpopulationmean
stat.x Samplemeanof the data sequence from the normal randomdistribution
stat.ME Margin of error
stat.sx Sample standarddeviation
stat.n Lengthof the data sequencewith samplemean
stat.σ Knownpopulation standarddeviation for data sequenceList
zInterval_1Prop Catalog >zInterval_1Prop x,n [,CLevel]
Computes a one-proportion z confidenceinterval. A summary of results is stored inthe stat.results variable. (See page 145.)
x is a non-negative integer.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.CLower, stat.CUpper Confidence interval containing confidence level probability of distribution
stat.Ç The calculatedproportionof successes
stat.ME Margin of error
stat.n Number of samples in data sequence
zInterval_2Prop Catalog >zInterval_2Prop x1,n1,x2,n2[,CLevel]
zInterval_2Prop Catalog >Computes a two-proportion z confidenceinterval. A summary of results is stored inthe stat.results variable. (See page 145.)
x1 and x2 are non-negative integers.
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.CLower, stat.CUpper Confidence interval containing confidence level probability of distribution
stat.Ç Diff The calculateddifference betweenproportions
stat.ME Margin of error
stat.Ç1 First sample proportion estimate
stat.Ç2 Second sample proportion estimate
stat.n1 Sample size in data sequence one
stat.n2 Sample size in data sequence two
zInterval_2Samp Catalog >zInterval_2Samp σ1,σ2 ,List1,List2[,Freq1[,Freq2,[CLevel]]]
(Data list input)
zInterval_2Samp σ1,σ2,v1,n1,v2,n2[,CLevel]
(Summary stats input)
Computes a two-sample z confidenceinterval. A summary of results is stored inthe stat.results variable. (See page 145.)
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.CLower,stat.CUpper
Confidence interval containing confidence level probability of distribution
Alphabetical Listing 169
170 Alphabetical Listing
Output variable Description
stat.x1-x2 Samplemeans of the data sequences from the normal randomdistribution
stat.ME Margin of error
stat.x1, stat.x2 Samplemeans of the data sequences from the normal randomdistribution
stat.σx1, stat.σx2 Sample standarddeviations for List 1 andList 2
stat.n1, stat.n2 Number of samples in data sequences
stat.r1, stat.r2 Knownpopulation standarddeviations for data sequenceList 1 andList2
zTest Catalog >zTest μ0,σ,List,[Freq[,Hypoth]]
(Data list input)
zTest μ0,σ,v,n[,Hypoth]
(Summary stats input)
Performs a z test with frequency freqlist. Asummary of results is stored in thestat.results variable. (See page 145.)
Test H0: μ = μ0, against one of the
following:
For Ha: μ < μ0, set Hypoth<0
For Ha: μ ≠ μ0 (default), set Hypoth=0
For Ha: μ > μ0, set Hypoth>0
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.z (x −μ0) / (σ / sqrt(n))
stat.P Value Least probability atwhich the null hypothesis canbe rejected
stat.x Samplemeanof the data sequence inList
stat.sx Sample standarddeviationof the data sequence. Only returned forData input.
stat.n Size of the sample
zTest_1Prop Catalog >
Output variable Description
stat.p0 Hypothesizedpopulationproportion
stat.z Standardnormal value computed for the proportion
stat.PVal Smallest level of significance atwhich the null hypothesis canbe rejected
stat.Ç Estimated sample proportion
stat.n Size of the sample
zTest_2Prop Catalog >zTest_2Prop x1,n1,x2,n2[,Hypoth]
Computes a two-proportion z test. Asummary of results is stored in thestat.results variable. (See page 145.)
x1 and x2 are non-negative integers.
Test H0: p1 = p2, against one of the
following:
For Ha: p1 > p2, set Hypoth>0
For Ha: p1 ≠ p2 (default), set Hypoth=0
For Ha: p < p0, set Hypoth<0
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.z Standardnormal value computed for the difference of proportions
stat.PVal Smallest level of significance atwhich the null hypothesis canbe rejected
stat.Ç1 First sample proportion estimate
stat.Ç2 Second sample proportion estimate
stat.Ç Pooled sample proportion estimate
stat.n1, stat.n2 Number of samples taken in trials 1 and2
zTest_2Samp Catalog >zTest_2Samp σ1,σ2 ,List1,List2[,Freq1
Alphabetical Listing 171
172 Alphabetical Listing
zTest_2Samp Catalog >[,Freq2[,Hypoth]]]
(Data list input)
zTest_2Samp σ1,σ2,v1,n1,v2,n2[,Hypoth]
(Summary stats input)
Computes a two-sample z test. A summaryof results is stored in the stat.resultsvariable. (See page 145.)
Test H0: μ1 = μ2, against one of the
following:
For Ha: μ1 < μ2, set Hypoth<0
For Ha: μ1 ≠ μ2 (default), set Hypoth=0
For Ha: μ1 > μ2, Hypoth>0
For information on the effect of emptyelements in a list, see “Empty (Void)Elements,” page 196.
Output variable Description
stat.z Standardnormal value computed for the difference ofmeans
stat.PVal Smallest level of significance atwhich the null hypothesis canbe rejected
stat.x1, stat.x2 Samplemeans of the data sequences inList1 andList2
stat.sx1, stat.sx2 Sample standarddeviations of the data sequences inList1 andList2
stat.n1, stat.n2 Size of the samples
Symbols
+ (add) + keyValue1 + Value2⇒ value
Returns the sum of the two arguments.
List1 + List2⇒ list
Matrix1 +Matrix2⇒ matrix
Returns a list (or matrix) containing thesums of corresponding elements in List1and List2 (orMatrix1 andMatrix2).
Dimensions of the arguments must beequal.
Value + List1⇒ list
List1 + Value⇒ list
Returns a list containing the sums of Valueand each element in List1.Value +Matrix1⇒ matrix
Matrix1 + Value⇒ matrix
Returns a matrix with Value added to eachelement on the diagonal of Matrix1.Matrix1must be square.
Note: Use .+ (dot plus) to add an expressionto each element.
− (subtract) - keyValue1−Value2⇒ value
Returns Value1minus Value2.
List1 −List2⇒ list
Matrix1 −Matrix2 ⇒ matrix
Symbols 173
174 Symbols
− (subtract) - keySubtracts each element in List2 (orMatrix2) from the corresponding elementin List1 (orMatrix1), and returns theresults.
Dimensions of the arguments must beequal.
Value − List1⇒ list
List1 − Value⇒ list
Subtracts each List1 element from Valueor subtracts Value from each List1element, and returns a list of the results.
Value −Matrix1⇒ matrix
Matrix1 − Value⇒ matrix
Value −Matrix1 returns a matrix of Valuetimes the identity matrix minusMatrix1. Matrix1must be square.
Matrix1 − Value returns a matrix of Valuetimes the identity matrix subtracted fromMatrix1. Matrix1must be square.
Note: Use .− (dot minus) to subtract anexpression from each element.
• (multiply) r keyValue1•Value2⇒ value
Returns the product of the two arguments.
List1•List2⇒ list
Returns a list containing the products of thecorresponding elements in List1 and List2.
Dimensions of the lists must be equal.
Matrix1•Matrix2⇒ matrix
Returns the matrix product of Matrix1 andMatrix2.
The number of columns inMatrix1mustequal the number of rows inMatrix2.
• (multiply) r keyValue •List1⇒ list
List1•Value⇒ list
Returns a list containing the products ofValue and each element in List1.
Value •Matrix1⇒ matrix
Matrix1•Value⇒ matrix
Returns a matrix containing the products ofValue and each element inMatrix1.
Note: Use .•(dot multiply) to multiply anexpression by each element.
⁄ (divide) p keyValue1 ⁄ Value2⇒ value
Returns the quotient of Value1 divided byValue2.
Note: See also Fraction template, page 1.
List1 ⁄ List2⇒ list
Returns a list containing the quotients ofList1 divided by List2.
Dimensions of the lists must be equal.
Value ⁄ List1⇒ list
List1 ⁄ Value⇒ list
Returns a list containing the quotients ofValue divided by List1 or List1 divided byValue.Value ⁄Matrix1⇒ matrix
Matrix1 ⁄ Value⇒ matrix
Returns a matrix containing the quotientsof Matrix1 ⁄ Value.
Note: Use . ⁄ (dot divide) to divide anexpression by each element.
Symbols 175
176 Symbols
^ (power) l keyValue1 ^ Value2⇒ value
List1 ^ List2⇒ list
Returns the first argument raised to thepower of the second argument.
Note: See also Exponent template, page 1.
For a list, returns the elements in List1raised to the power of the correspondingelements in List2.
In the real domain, fractional powers thathave reduced exponents with odddenominators use the real branch versusthe principal branch for complex mode.
Value ^ List1⇒ list
Returns Value raised to the power of theelements in List1.List1 ^ Value⇒ list
Returns the elements in List1 raised to thepower of Value.squareMatrix1 ^ integer⇒ matrix
Returns squareMatrix1 raised to theinteger power.
squareMatrix1must be a square matrix.
If integer = −1, computes the inversematrix.If integer < −1, computes the inversematrix to an appropriate positive power.
x2 (square) q keyValue12⇒ value
Returns the square of the argument.
List12 ⇒ list
Returns a list containing the squares of theelements in List1.
squareMatrix12 ⇒ matrix
Returns the matrix square ofsquareMatrix1. This is not the same ascalculating the square of each element. Use.^2 to calculate the square of each element.
.+ (dot add) ^+ keysMatrix1 .+Matrix2⇒ matrix
Value .+Matrix1⇒ matrix
Matrix1.+Matrix2 returns a matrix that isthe sum of each pair of correspondingelements inMatrix1 andMatrix2.
Value .+ Matrix1 returns a matrix that isthe sum of Value and each element inMatrix1.
.⁻(dot subt.) ^- keysMatrix1 .−Matrix2⇒ matrix
Value .− Matrix1⇒ matrix
Matrix1.− Matrix2 returns a matrix that isthe difference between each pair ofcorresponding elements inMatrix1 andMatrix2.
Value .− Matrix1 returns a matrix that isthe difference of Value and each elementinMatrix1.
Symbols 177
178 Symbols
.•(dot mult.) ^r keysMatrix1 .• Matrix2⇒ matrix
Value .• Matrix1⇒ matrix
Matrix1.• Matrix2 returns a matrix that isthe product of each pair of correspondingelements inMatrix1 andMatrix2.
Value .• Matrix1 returns a matrixcontaining the products of Value and eachelement inMatrix1.
. ⁄ (dot divide) ^p keysMatrix1. ⁄Matrix2⇒ matrix
Value . ⁄Matrix1⇒ matrix
Matrix1 . ⁄Matrix2 returns a matrix that isthe quotient of each pair of correspondingelements inMatrix1 andMatrix2.
Value . ⁄Matrix1 returns a matrix that isthe quotient of Value and each element inMatrix1.
.^ (dot power) ^l keysMatrix1 .^Matrix2⇒ matrix
Value . ^Matrix1⇒ matrix
Matrix1.^ Matrix2 returns a matrix whereeach element inMatrix2 is the exponentfor the corresponding element inMatrix1.
Value .^ Matrix1 returns a matrix whereeach element inMatrix1 is the exponentfor Value.
− (negate) v key−Value1 ⇒ value
−List1⇒ list
−Matrix1⇒ matrix
− (negate) v keyReturns the negation of the argument.
For a list or matrix, returns all the elementsnegated.
If the argument is a binary or hexadecimalinteger, the negation gives the two’scomplement.
In Bin base mode:
Important: Zero, not the letter O.
To see the entire result, press£ and thenuse ¡ and ¢ to move the cursor.
% (percent) /k keysValue1% ⇒ value
List1% ⇒ list
Matrix1% ⇒ matrix
Returns
For a list or matrix, returns a list or matrixwith each element divided by 100.
= (equal) = keyExpr1=Expr2⇒ Boolean expression
List1=List2⇒ Boolean list
Matrix1=Matrix2⇒ Boolean matrix
Returns true if Expr1 is determined to beequal to Expr2.
Returns false if Expr1 is determined to notbe equal to Expr2.
Anything else returns a simplified form ofthe equation.
For lists and matrices, returns comparisonselement by element.
Example function that uses math testsymbols: =, ≠, <, ≤, >, ≥
Result of graphing g(x)
Symbols 179
180 Symbols
= (equal) = keyNote for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
≠ (not equal) /= keysExpr1≠Expr2⇒ Boolean expression
List1≠List2⇒ Boolean list
Matrix1≠Matrix2⇒ Boolean matrix
Returns true if Expr1 is determined to benot equal to Expr2.
Returns false if Expr1 is determined to beequal to Expr2.
Anything else returns a simplified form ofthe equation.
For lists and matrices, returns comparisonselement by element.
Note: You can insert this operator from thekeyboard by typing /=
See “=” (equal) example.
< (less than) /= keysExpr1<Expr2⇒ Boolean expression
List1<List2⇒ Boolean list
Matrix1<Matrix2⇒ Boolean matrix
Returns true if Expr1 is determined to beless than Expr2.
Returns false if Expr1 is determined to begreater than or equal to Expr2.
See “=” (equal) example.
< (less than) /= keysAnything else returns a simplified form ofthe equation.
For lists and matrices, returns comparisonselement by element.
≤ (less or equal) /= keysExpr1≤Expr2⇒ Boolean expression
List1≤List2⇒ Boolean list
Matrix1 ≤Matrix2⇒ Boolean matrix
Returns true if Expr1 is determined to beless than or equal to Expr2.
Returns false if Expr1 is determined to begreater than Expr2.
Anything else returns a simplified form ofthe equation.
For lists and matrices, returns comparisonselement by element.
Note: You can insert this operator from thekeyboard by typing <=
See “=” (equal) example.
> (greater than) /= keysExpr1>Expr2⇒ Boolean expression
List1>List2⇒ Boolean list
Matrix1>Matrix2⇒ Boolean matrix
Returns true if Expr1 is determined to begreater than Expr2.
Returns false if Expr1 is determined to beless than or equal to Expr2.
Anything else returns a simplified form ofthe equation.
For lists and matrices, returns comparisonselement by element.
See “=” (equal) example.
Symbols 181
182 Symbols
≥ (greater or equal) /= keysExpr1≥Expr2⇒ Boolean expression
List1≥List2⇒ Boolean list
Matrix1 ≥Matrix2⇒ Boolean matrix
Returns true if Expr1 is determined to begreater than or equal to Expr2.
Returns false if Expr1 is determined to beless than Expr2.
Anything else returns a simplified form ofthe equation.
For lists and matrices, returns comparisonselement by element.
Note: You can insert this operator from thekeyboard by typing >=
See “=” (equal) example.
⇒ (logical implication) /= keysBooleanExpr1⇒ BooleanExpr2 returnsBoolean expression
BooleanList1⇒ BooleanList2 returnsBoolean list
BooleanMatrix1⇒ BooleanMatrix2returns Boolean matrix
Integer1⇒ Integer2 returns Integer
Evaluates the expression not <argument1>or <argument2> and returns true, false, or asimplified form of the equation.
For lists and matrices, returns comparisonselement by element.
Note: You can insert this operator from thekeyboard by typing =>
⇔ (logical double implication, XNOR) /= keysBooleanExpr1⇔ BooleanExpr2 returnsBoolean expression
BooleanList1⇔ BooleanList2 returnsBoolean list
BooleanMatrix1⇔ BooleanMatrix2returns Boolean matrix
Integer1⇔ Integer2 returns Integer
Returns the negation of an XOR Booleanoperation on the two arguments. Returnstrue, false, or a simplified form of theequation.
For lists and matrices, returns comparisonselement by element.
Note: You can insert this operator from thekeyboard by typing <=>
! (factorial) º keyValue1! ⇒ value
List1! ⇒ list
Matrix1! ⇒ matrix
Returns the factorial of the argument.
For a list or matrix, returns a list or matrixof factorials of the elements.
& (append) /k keysString1 & String2⇒ string
Returns a text string that is String2appended to String1.
Symbols 183
184 Symbols
d() (derivative) Catalog >d(Expr1, Var[, Order]) | Var=Value⇒value
d(Expr1, Var[, Order]) ⇒ value
d(List1, Var[, Order]) ⇒ list
d(Matrix1, Var[, Order]) ⇒ matrix
Except when using the first syntax, youmust store a numeric value in variable Varbefore evaluating d(). Refer to theexamples.
d() can be used for calculating first andsecond order derivative at a pointnumerically, using auto differentiationmethods.
Order, if included, must be=1 or 2. Thedefault is 1.
Note: You can insert this function from thekeyboard by typing derivative(...).
Note: See also First derivative, page 5 orSecond derivative, page 5.
Note: The d() algorithm has a limitation: itworks recursively through the unsimplifiedexpression, computing the numeric value ofthe first derivative (and second, ifapplicable) and the evaluation of eachsubexpression, which may lead to anunexpected result.
Consider the example on the right. The firstderivative of x•(x^2+x)^(1/3) at x=0 is equalto 0. However, because the first derivativeof the subexpression (x^2+x)^(1/3) isundefined at x=0, and this value is used tocalculate the derivative of the totalexpression, d() reports the result asundefined and displays a warning message.
If you encounter this limitation, verify thesolution graphically. You can also try usingcentralDiff().
∫() (integral) Catalog >∫(Expr1, Var, Lower,Upper) ⇒ value
Returns the integral of Expr1 with respectto the variable Var from Lower toUpper.Can be used to calculate the definiteintegral numerically, using the samemethod as nInt().
Note: You can insert this function from thekeyboard by typing integral(...).
Note: See also nInt(), page 101, andDefiniteintegral template, page 6.
√() (square root) /q keys√(Value1) ⇒ value
√(List1) ⇒ list
Returns the square root of the argument.
For a list, returns the square roots of all theelements in List1.
Note: You can insert this function from thekeyboard by typing sqrt(...)
Note: See also Square root template, page1.
Π() (prodSeq) Catalog >Π(Expr1, Var, Low, High) ⇒ expression
Note: You can insert this function from thekeyboard by typing prodSeq(...).
Evaluates Expr1 for each value of Var fromLow toHigh, and returns the product of theresults.
Note: See also Product template (Π), page5.
Π(Expr1, Var, Low, Low−1) ⇒ 1
Π(Expr1, Var, Low, High) ⇒ 1/Π(Expr1,Var, High+1, Low−1) if High < Low−1
Symbols 185
186 Symbols
Π() (prodSeq) Catalog >
The product formulas used are derived fromthe following reference:
Ronald L. Graham, Donald E. Knuth, andOren Patashnik. Concrete Mathematics: AFoundation for Computer Science.Reading, Massachusetts: Addison-Wesley,1994.
Σ() (sumSeq) Catalog >Σ(Expr1, Var, Low, High) ⇒ expression
Note: You can insert this function from thekeyboard by typing sumSeq(...).
Evaluates Expr1 for each value of Var fromLow toHigh, and returns the sum of theresults.
Note: See also Sum template, page 5.
Σ(Expr1, Var, Low, Low−1) ⇒ 0
Σ(Expr1, Var, Low, High) ⇒ μ
Σ(Expr1, Var, High+1, Low−1) if High <Low−1
The summation formulas used are derivedfrom the following reference:
Ronald L. Graham, Donald E. Knuth, andOren Patashnik. Concrete Mathematics: AFoundation for Computer Science.Reading, Massachusetts: Addison-Wesley,1994.
ΣInt() Catalog >ΣInt(NPmt1, NPmt2, N, I, PV ,[Pmt], [FV],[PpY], [CpY], [PmtAt], [roundValue])⇒ value
ΣInt(NPmt1,NPmt2,amortTable) ⇒ value
ΣInt() Catalog >Amortization function that calculates thesum of the interest during a specified rangeof payments.
NPmt1 and NPmt2 define the start and endboundaries of the payment range.
N, I, PV, Pmt, FV, PpY, CpY, and PmtAtare described in the table of TVMarguments, page 161.
• If you omit Pmt, it defaults toPmt=tvmPmt(N,I,PV,FV,PpY,CpY,PmtAt).
• If you omit FV, it defaults to FV=0.• The defaults for PpY, CpY, and PmtAt
are the same as for the TVM functions.
roundValue specifies the number ofdecimal places for rounding. Default=2.
ΣInt(NPmt1,NPmt2,amortTable) calculatesthe sum of the interest based onamortization table amortTable. TheamortTable argument must be a matrix inthe form described under amortTbl(), page7.
Note: See also ΣPrn(), below, and Bal(),page 15.
ΣPrn() Catalog >ΣPrn(NPmt1, NPmt2, N, I, PV, [Pmt],[FV], [PpY], [CpY], [PmtAt],[roundValue]) ⇒ value
ΣPrn(NPmt1, NPmt2, amortTable) ⇒value
Amortization function that calculates thesum of the principal during a specifiedrange of payments.
NPmt1 and NPmt2 define the start and endboundaries of the payment range.
N, I, PV, Pmt, FV, PpY, CpY, and PmtAtare described in the table of TVMarguments, page 161.
Symbols 187
188 Symbols
ΣPrn() Catalog >• If you omit Pmt, it defaults to
Pmt=tvmPmt(N,I,PV,FV,PpY,CpY,PmtAt).
• If you omit FV, it defaults to FV=0.• The defaults for PpY, CpY, and PmtAt
are the same as for the TVM functions.
roundValue specifies the number ofdecimal places for rounding. Default=2.
ΣPrn(NPmt1,NPmt2,amortTable)calculates the sum of the principal paidbased on amortization table amortTable.The amortTable argument must be amatrix in the form described underamortTbl(), page 7.
Note: See also ΣInt(), above, and Bal(),page 15.
# (indirection) /k keys# varNameString
Refers to the variable whose name isvarNameString. This lets you use strings tocreate variable names from within afunction.
Creates or refers to the variable xyz .
Returns the value of the variable (r) whosename is stored in variable s1.
E (scientific notation) i keymantissaEexponent
Enters a number in scientific notation. Thenumber is interpreted asmantissa × 10exponent.
Hint: If you want to enter a power of 10without causing a decimal value result, use10^integer.
E (scientific notation) i keyNote: You can insert this operator from thecomputer keyboard by typing @E. forexample, type 2.3@E4 to enter 2.3E4.
g (gradian) ¹ keyExpr1g ⇒ expression
List1g ⇒ list
Matrix1g ⇒ matrix
This function gives you a way to specify agradian angle while in the Degree or Radianmode.
In Radian angle mode, multiplies Expr1 byπ/200.
In Degree angle mode, multiplies Expr1 byg/100.
In Gradian mode, returns Expr1 unchanged.
Note: You can insert this symbol from thecomputer keyboard by typing @g.
InDegree, Gradianor Radianmode:
r(radian) ¹ keyValue1r ⇒value
List1r ⇒ list
Matrix1r ⇒ matrix
This function gives you a way to specify aradian angle while in Degree or Gradianmode.
In Degree angle mode, multiplies theargument by 180/π.
In Radian angle mode, returns theargument unchanged.
In Gradian mode, multiplies the argumentby 200/π.
InDegree, Gradianor Radian anglemode:
Symbols 189
190 Symbols
r(radian) ¹ keyHint: Use r if you want to force radians in afunction definition regardless of the modethat prevails when the function is used.
Note: You can insert this symbol from thecomputer keyboard by typing @r.
° (degree) ¹ keyValue1°⇒value
List1°⇒ list
Matrix1°⇒ matrix
This function gives you a way to specify adegree angle while in Gradian or Radianmode.
In Radian angle mode, multiplies theargument by π/180.
In Degree angle mode, returns theargument unchanged.
In Gradian angle mode, multiplies theargument by 10/9.
Note: You can insert this symbol from thecomputer keyboard by typing @d.
InDegree, Gradianor Radian anglemode:
In Radian anglemode:
°, ', '' (degree/minute/second) /k keysdd°mm'ss.ss'' ⇒ expression
dd A positive or negative numbermm A non-negative numberss.ss A non-negative number
Returns dd+(mm/60)+(ss.ss/3600).
This base-60 entry format lets you:
• Enter an angle indegrees/minutes/seconds without regardto the current angle mode.
• Enter time as hours/minutes/seconds.
Note: Follow ss.ss with two apostrophes(''), not a quote symbol (").
InDegree anglemode:
∠ (angle) /k keys[Radius,∠θ_Angle] ⇒ vector(polar input)
[Radius,∠θ_Angle,Z_Coordinate] ⇒vector(cylindrical input)
[Radius,∠θ_Angle,∠θ_Angle] ⇒ vector(spherical input)
Returns coordinates as a vector dependingon the Vector Format mode setting:rectangular, cylindrical, or spherical.
Note: You can insert this symbol from thecomputer keyboard by typing @<.
In Radianmode andvector format set to:rectangular
cylindrical
spherical
(Magnitude∠Angle) ⇒ complexValue(polar input)
Enters a complex value in (r∠θ) polarform. The Angle is interpreted according tothe current Angle mode setting.
In Radian anglemode andRectangularcomplex format:
_ (underscore as an empty element)See “Empty (Void) Elements,”
page 196.
10^() Catalog >10^ (Value1) ⇒ value
10^ (List1) ⇒ list
Returns 10 raised to the power of theargument.
For a list, returns 10 raised to the power ofthe elements in List1.
Symbols 191
192 Symbols
10^() Catalog >10^(squareMatrix1) ⇒ squareMatrix
Returns 10 raised to the power ofsquareMatrix1. This is not the same ascalculating 10 raised to the power of eachelement. For information about thecalculation method, refer to cos().
squareMatrix1must be diagonalizable. Theresult always contains floating-pointnumbers.
^⁻¹ (reciprocal) Catalog >Value1 ^⁻¹⇒ value
List1 ^⁻¹⇒ list
Returns the reciprocal of the argument.
For a list, returns the reciprocals of theelements in List1.squareMatrix1 ^⁻¹⇒ squareMatrix
Returns the inverse of squareMatrix1.
squareMatrix1must be a non-singularsquare matrix.
| (constraint operator) /k keysExpr | BooleanExpr1[andBooleanExpr2]...
Expr | BooleanExpr1[ orBooleanExpr2]...
The constraint (“|”) symbol serves as abinary operator. The operand to the left of |is an expression. The operand to the right of| specifies one or more relations that areintended to affect the simplification of theexpression. Multiple relations after | mustbe joined by logical “and” or “or” operators.
The constraint operator provides three basictypes of functionality:
• Substitutions• Interval constraints
| (constraint operator) /k keys• Exclusions
Substitutions are in the form of an equality,such as x=3 or y=sin(x). To be mosteffective, the left side should be a simplevariable. Expr | Variable = value willsubstitute value for every occurrence ofVariable in Expr.Interval constraints take the form of one ormore inequalities joined by logical “and” or“or” operators. Interval constraints alsopermit simplification that otherwise mightbe invalid or not computable.
Exclusions use the “not equals” (/= or ≠)relational operator to exclude a specificvalue from consideration.
→ (store) /h keyValue→ Var
List→ Var
Matrix→ Var
Expr→ Function(Param1,...)
List→ Function(Param1,...)
Matrix→ Function(Param1,...)
If the variable Var does not exist, creates itand initializes it to Value, List, orMatrix.
If the variable Var already exists and is notlocked or protected, replaces its contentswith Value, List, orMatrix.
Symbols 193
194 Symbols
→ (store) /h keyNote: You can insert this operator from thekeyboard by typing =: as a shortcut. Forexample, type pi/4 =: myvar.
:= (assign) /t keysVar := Value
Var := List
Var :=Matrix
Function(Param1,...) := Expr
Function(Param1,...) := List
Function(Param1,...) :=Matrix
If variable Var does not exist, creates Varand initializes it to Value, List, orMatrix.
If Var already exists and is not locked orprotected, replaces its contents with Value,List, orMatrix.
© (comment) /k keys© [text]
© processes text as a comment line,allowing you to annotate functions andprograms that you create.
© can be at the beginning or anywhere inthe line. Everything to the right of ©, to theend of the line, is the comment.
Note for entering the example: Forinstructions on entering multi-line programand function definitions, refer to theCalculator section of your productguidebook.
0b, 0h 0B keys,0H keys0b binaryNumber0h hexadecimalNumber
InDec basemode:
0b, 0h 0B keys,0H keysDenotes a binary or hexadecimal number,respectively. To enter a binary or hexnumber, you must enter the 0b or 0h prefixregardless of the Base mode. Without aprefix, a number is treated as decimal(base 10).
Results are displayed according to the Basemode.
In Bin basemode:
InHex basemode:
Symbols 195
196 Empty (Void) Elements
Empty (Void) ElementsWhen analyzing real-world data, you might not always have a complete data set.TI-Nspire™ Software allows empty, or void, data elements so you can proceed with thenearly complete data rather than having to start over or discard the incomplete cases.
You can find an example of data involving empty elements in the Lists & Spreadsheetchapter, under “Graphing spreadsheet data.”
The delVoid() function lets you remove empty elements from a list. The isVoid()function lets you test for an empty element. For details, see delVoid(), page 38, andisVoid(), page 74.
Note: To enter an empty element manually in a math expression, type “_” or thekeyword void. The keyword void is automatically converted to a “_” symbol whenthe expression is evaluated. To type “_” on the handheld, press/_.
Calculations involving void elementsThe majority of calculations involving a voidinput will produce a void result. See specialcases below.
List arguments containing void elementsThe following functions and commandsignore (skip) void elements found in listarguments.
count, countIf, cumulativeSum,freqTable►list, frequency, max, mean,median, product, stDevPop, stDevSamp,sum, sumIf, varPop, and varSamp, as well asregression calculations, OneVar, TwoVar,and FiveNumSummary statistics, confidenceintervals, and stat tests
SortA and SortDmove all void elementswithin the first argument to the bottom.
List arguments containing void elements
In regressions, a void in an X or Y listintroduces a void for the correspondingelement of the residual.
An omitted category in regressionsintroduces a void for the correspondingelement of the residual.
A frequency of 0 in regressions introduces avoid for the corresponding element of theresidual.
Empty (Void) Elements 197
198 Shortcuts for Entering Math Expressions
Shortcuts for Entering Math ExpressionsShortcuts let you enter elements of math expressions by typing instead of using theCatalog or Symbol Palette. For example, to enter the expression √6, you can type sqrt(6) on the entry line. When you press·, the expression sqrt(6) is changed to√6. Some shortcuts are useful from both the handheld and the computer keyboard.Others are useful primarily from the computer keyboard.
From the Handheld or Computer Keyboard
To enter this: Type this shortcut:
π pi
θ theta
∞ infinity
≤ <=
≥ >=
≠ /=
⇒ (logical implication) =>
⇔ (logical double implication, XNOR) <=>
→ (store operator) =:
| | (absolute value) abs(...)
√() sqrt(...)
Σ() (Sum template) sumSeq(...)
Π() (Product template) prodSeq(...)
sin⁻¹(), cos⁻¹(), ... arcsin(...), arccos(...), ...
ΔList() deltaList(...)
From the Computer Keyboard
To enter this: Type this shortcut:
i (imaginary constant) @i
e (natural log base e) @e
E (scientific notation) @ET (transpose) @t
To enter this: Type this shortcut:r (radians) @r
° (degrees) @dg (gradians) @g
∠ (angle) @<
► (conversion) @>
►Decimal,►approxFraction(), andso on.
@>Decimal, @>approxFraction(), andso on.
Shortcuts for Entering Math Expressions 199
200 EOS™ (Equation Operating System) Hierarchy
EOS™ (Equation Operating System) HierarchyThis section describes the Equation Operating System (EOS™) that is used by theTI-Nspire™ math and science learning technology. Numbers, variables, and functionsare entered in a simple, straightforward sequence. EOS™ software evaluatesexpressions and equations using parenthetical grouping and according to the prioritiesdescribed below.
Order of Evaluation
Level Operator
1 Parentheses ( ), brackets [ ], braces { }
2 Indirection (#)
3 Function calls
4 Post operators: degrees-minutes-seconds (°,',"), factorial (!), percentage(%), radian (r), subscript ([ ]), transpose (T)
5 Exponentiation, power operator (^)
6 Negation (⁻)
7 String concatenation (&)
8 Multiplication (•), division (/)
9 Addition (+), subtraction (-)
10 Equality relations: equal (=), not equal (≠ or /=),less than (<), less than or equal (≤ or <=), greater than (>), greater than orequal (≥ or >=)
11 Logical not
12 Logical and
13 Logical or
14 xor, nor, nand
15 Logical implication (⇒ )
16 Logical double implication, XNOR (⇔ )
17 Constraint operator (“|”)
18 Store (→)
Parentheses, Brackets, and Braces
All calculations inside a pair of parentheses, brackets, or braces are evaluated first. Forexample, in the expression 4(1+2), EOS™ software first evaluates the portion of theexpression inside the parentheses, 1+2, and then multiplies the result, 3, by 4.
The number of opening and closing parentheses, brackets, and braces must be thesame within an expression or equation. If not, an error message is displayed thatindicates the missing element. For example, (1+2)/(3+4 will display the error message“Missing ).”
Note: Because the TI-Nspire™ software allows you to define your own functions, avariable name followed by an expression in parentheses is considered a “function call”instead of implied multiplication. For example a(b+c) is the function a evaluated byb+c. To multiply the expression b+c by the variable a, use explicit multiplication: a•(b+c).
Indirection
The indirection operator (#) converts a string to a variable or function name. Forexample, #(“x”&”y”&”z”) creates the variable name xyz. Indirection also allows thecreation and modification of variables from inside a program. For example, if 10→rand “r”→s1, then #s1=10.
Post Operators
Post operators are operators that come directly after an argument, such as 5!, 25%, or60°15' 45". Arguments followed by a post operator are evaluated at the fourth prioritylevel. For example, in the expression 4^3!, 3! is evaluated first. The result, 6, thenbecomes the exponent of 4 to yield 4096.
Exponentiation
Exponentiation (^) and element-by-element exponentiation (.^) are evaluated fromright to left. For example, the expression 2^3^2 is evaluated the same as 2^(3^2) toproduce 512. This is different from (2^3)^2, which is 64.
Negation
To enter a negative number, pressv followed by the number. Post operations andexponentiation are performed before negation. For example, the result of −x2 is anegative number, and −92 = −81. Use parentheses to square a negative number suchas (−9)2 to produce 81.
Constraint (“|”)
The argument following the constraint (“|”) operator provides a set of constraints thataffect the evaluation of the argument preceding the operator.
EOS™ (Equation Operating System) Hierarchy 201
202 Constants and Values
Constants and ValuesThe following table lists the constants and their values that are available whenperforming unit conversions. They can be typed in manually or selected from theConstants list in Utilities > Unit Conversions (Handheld: Pressk 3).
Constant Name Value
_c Speedof light 299792458 _m/_s
_Cc Coulombconstant 8987551787.3682 _m/_F
_Fc Faraday constant 96485.33289 _coul/_mol
_g Accelerationof gravity 9.80665 _m/_s2
_Gc Gravitational constant 6.67408E-11 _m3/_kg/_s2
_h Planck's constant 6.626070040E-34 _J _s
_k Boltzmann's constant 1.38064852E-23 _J/_¡K
_m0 Permeability of a vacuum 1.2566370614359E-6 _N/_A2
_mb Bohr magneton 9.274009994E-24 _J _m2/_Wb
_Me Electron restmass 9.10938356E-31 _kg
_Mm Muonmass 1.883531594E-28 _kg
_Mn Neutron restmass 1.674927471E-27 _kg
_Mp Proton restmass 1.672621898E-27 _kg
_Na Avogadro's number 6.022140857E23 /_mol
_q Electron charge 1.6021766208E-19 _coul
_Rb Bohr radius 5.2917721067E-11 _m
_Rc Molar gas constant 8.3144598 _J/_mol/_¡K
_Rdb Rydberg constant 10973731.568508/_m
_Re Electron radius 2.8179403227E-15 _m
_u Atomicmass 1.660539040E-27 _kg
_Vm Molar volume 2.2413962E-2 _m3/_mol
_H0 Permittivity of a vacuum 8.8541878176204E-12 _F/_m
_s Stefan-Boltzmann constant 5.670367E-8 _W/_m2/_¡K4
_f0 Magnetic flux quantum 2.067833831E-15 _Wb
Error Codes and MessagesWhen an error occurs, its code is assigned to variable errCode. User-defined programsand functions can examine errCode to determine the cause of an error. For anexample of using errCode, See Example 2 under the Try command, page 157.
Note: Some error conditions apply only to TI-Nspire™ CAS products, and some applyonly to TI-Nspire™ products.
Errorcode Description
10 A functiondid not return a value
20 A test did not resolve to TRUE or FALSE.
Generally, undefined variables cannot be compared. For example, the test If a<bwill causethis error if either a or b is undefinedwhen the If statement is executed.
30 Argument cannot be a folder name.
40 Argument error
50 Argumentmismatch
Two or more arguments must be of the same type.
60 Argumentmust be a Booleanexpressionor integer
70 Argumentmust be a decimal number
90 Argumentmust be a list
100 Argumentmust be amatrix
130 Argumentmust be a string
140 Argumentmust be a variable name.
Make sure that the name:• does not begin with a digit• does not contain spaces or special characters• does not use underscore or period in invalid manner• does not exceed the length limitations
See the Calculator section in the documentation for more details.
160 Argumentmust be anexpression
165 Batteries too low for sending or receiving
Install newbatteries before sending or receiving.
170 Bound
The lower boundmust be less than the upper bound to define the search interval.
Error Codes and Messages 203
204 Error Codes and Messages
Errorcode Description
180 Break
Thed orc key was pressedduring a long calculationor during programexecution.
190 Circular definition
This message is displayed to avoid running out ofmemory during infinite replacement ofvariable values during simplification. For example, a+1->a, where a is anundefined variable,will cause this error.
200 Constraint expression invalid
For example, solve(3x^2-4=0,x) | x<0 or x>5wouldproduce this error message because theconstraint is separatedby “or” insteadof “and.”
210 InvalidData type
Anargument is of thewrong data type.
220 Dependent limit
230 Dimension
A list or matrix index is not valid. For example, if the list {1,2,3,4} is stored in L1, then L1[5] is adimensionerror because L1 only contains four elements.
235 Dimension Error. Not enoughelements in the lists.
240 Dimensionmismatch
Two or more arguments must be of the same dimension. For example, [1,2]+[1,2,3] is adimensionmismatchbecause thematrices contain a different number of elements.
250 Divide by zero
260 Domain error
Anargumentmust be in a specifieddomain. For example, rand(0) is not valid.
270 Duplicate variable name
280 Else andElseIf invalid outside of If...EndIf block
290 EndTry is missing thematching Else statement
295 Excessive iteration
300 Expected2 or 3-element list or matrix
310 The first argumentof nSolvemust be anequation in a single variable. It cannot contain a non-valued variable other than the variable of interest.
320 First argumentof solve or cSolvemust be anequationor inequality
For example, solve(3x^2-4,x) is invalid because the first argument is not anequation.
Errorcode Description
345 Inconsistent units
350 Index out of range
360 Indirection string is not a valid variable name
380 UndefinedAns
Either the previous calculationdid not create Ans, or no previous calculationwas entered.
390 Invalid assignment
400 Invalid assignment value
410 Invalid command
430 Invalid for the currentmode settings
435 Invalid guess
440 Invalid impliedmultiply
For example, x(x+1) is invalid; whereas, x*(x+1) is the correct syntax. This is to avoidconfusionbetween impliedmultiplication and function calls.
450 Invalid in a functionor current expression
Only certain commands are valid in a user-defined function.
490 Invalid in Try..EndTry block
510 Invalid list or matrix
550 Invalid outside functionor program
A number of commands are not valid outside a functionor program. For example, Localcannot be usedunless it is in a functionor program.
560 Invalid outside Loop..EndLoop, For..EndFor, or While..EndWhile blocks
For example, the Exit command is valid only inside these loopblocks.
565 Invalid outside program
570 Invalid pathname
For example, \var is invalid.
575 Invalid polar complex
580 Invalid program reference
Programs cannot be referencedwithin functions or expressions such as 1+p(x) where p is aprogram.
Error Codes and Messages 205
206 Error Codes and Messages
Errorcode Description
600 Invalid table
605 Invalid use of units
610 Invalid variable name in a Local statement
620 Invalid variable or functionname
630 Invalid variable reference
640 Invalid vector syntax
650 Link transmission
A transmissionbetween two units was not completed. Verify that the connecting cable isconnected firmly to bothends.
665 Matrix not diagonalizable
670 LowMemory
1. Delete some data in this document
2. Save and close this document
If 1 and2 fail, pull out and re-insert batteries
672 Resource exhaustion
673 Resource exhaustion
680 Missing (
690 Missing )
700 Missing “
710 Missing ]
720 Missing }
730 Missing start or endof block syntax
740 Missing Then in the If..EndIf block
750 Name is not a functionor program
765 No functions selected
780 No solution found
800 Non-real result
For example, if the software is in the Real setting, √(-1) is invalid.
Errorcode Description
To allow complex results, change the “Real or Complex”Mode Setting to RECTANGULAR orPOLAR.
830 Overflow
850 Programnot found
A program reference inside another program couldnot be found in the providedpathduringexecution.
855 Rand type functions not allowed in graphing
860 Recursion too deep
870 Reservedname or systemvariable
900 Argument error
Median-medianmodel could not be applied to data set.
910 Syntax error
920 Text not found
930 Too fewarguments
The functionor command is missing one or more arguments.
940 Too many arguments
The expressionor equation contains anexcessive number of arguments and cannot beevaluated.
950 Too many subscripts
955 Too many undefined variables
960 Variable is not defined
No value is assigned to variable. Use one of the following commands:• sto→• :=• Define
to assign values to variables.
965 UnlicensedOS
970 Variable in use so references or changes are not allowed
980 Variable is protected
990 Invalid variable name
Make sure that the name does not exceed the length limitations
Error Codes and Messages 207
208 Error Codes and Messages
Errorcode Description
1000 Windowvariables domain
1010 Zoom
1020 Internal error
1030 Protectedmemory violation
1040 Unsupported function. This function requires Computer Algebra System. Try TI-Nspire™CAS.
1045 Unsupportedoperator. This operator requires Computer Algebra System. Try TI-Nspire™CAS.
1050 Unsupported feature. This operator requires Computer Algebra System. Try TI-Nspire™CAS.
1060 Input argumentmust be numeric. Only inputs containing numeric values are allowed.
1070 Trig function argument too big for accurate reduction
1080 Unsupporteduse of Ans.This applicationdoes not support Ans.
1090 Function is not defined. Use one of the following commands:• Define• :=• sto→
to define a function.
1100 Non-real calculation
For example, if the software is in the Real setting, √(-1) is invalid.
To allow complex results, change the “Real or Complex”Mode Setting to RECTANGULAR orPOLAR.
1110 Invalid bounds
1120 No sign change
1130 Argument cannot be a list or matrix
1140 Argument error
The first argumentmust be a polynomial expression in the secondargument. If the secondargument is omitted, the software attempts to select a default.
1150 Argument error
The first two arguments must be polynomial expressions in the third argument. If the thirdargument is omitted, the software attempts to select a default.
1160 Invalid library pathname
Errorcode Description
A pathnamemust be in the form xxx\yyy, where:• The xxx part can have 1 to 16 characters.• The yyy part can have 1 to 15 characters.
See the Library section in the documentation for more details.
1170 Invalid use of library pathname• A value cannot be assigned to a pathname using Define, :=, or sto→.• A pathname cannot be declared as a Local variable or be used as a
parameter in a function or program definition.
1180 Invalid library variable name.
Make sure that the name:• Does not contain a period• Does not begin with an underscore• Does not exceed 15 characters
See the Library section in the documentation for more details.
1190 Library document not found:• Verify library is in the MyLib folder.• Refresh Libraries.
See the Library section in the documentation for more details.
1200 Library variable not found:• Verify library variable exists in the first problem in the library.• Make sure library variable has been defined as LibPub or LibPriv.• Refresh Libraries.
See the Library section in the documentation for more details.
1210 Invalid library shortcut name.
Make sure that the name:• Does not contain a period• Does not begin with an underscore• Does not exceed 16 characters• Is not a reserved name
See the Library section in the documentation for more details.
1220 Domain error:
The tangentLine andnormalLine functions support real-valued functions only.
1230 Domain error.
Error Codes and Messages 209
210 Error Codes and Messages
Errorcode Description
Trigonometric conversionoperators are not supported inDegree or Gradian anglemodes.
1250 Argument Error
Use a systemof linear equations.
Example of a systemof two linear equations with variables x and y:
3x+7y=5
2y-5x=-1
1260 Argument Error:
The first argumentof nfMinor nfMaxmust be anexpression in a single variable. It cannotcontain a non-valued variable other than the variable of interest.
1270 Argument Error
Order of the derivativemust be equal to 1 or 2.
1280 Argument Error
Use a polynomial in expanded form inone variable.
1290 Argument Error
Use a polynomial in one variable.
1300 Argument Error
The coefficients of the polynomialmust evaluate to numeric values.
1310 Argument error:
A function couldnot be evaluated for one or more of its arguments.
1380 Argument error:
Nested calls to domain() function are not allowed.
Warning Codes and MessagesYou can use the warnCodes() function to store the codes of warnings generated byevaluating an expression. This table lists each numeric warning code and its associatedmessage. For an example of storing warning codes, see warnCodes(), page 165.
Warningcode Message
10000 Operationmight introduce false solutions.
10001 Differentiating anequationmay produce a false equation.
10002 Questionable solution
10003 Questionable accuracy
10004 Operationmight lose solutions.
10005 cSolvemight specify more zeros.
10006 Solvemay specify more zeros.
10007 More solutionsmay exist. Try specifying appropriate lower andupper bounds and/or aguess.
Examples using solve():• solve(Equation, Var=Guess)|lowBound<Var<upBound• solve(Equation, Var)|lowBound<Var<upBound• solve(Equation, Var=Guess)
10008 Domainof the resultmight be smaller than the domainof the input.
10009 Domainof the resultmight be larger than the domainof the input.
10012 Non-real calculation
10013 ∞^0 or undef^0 replacedby 1
10014 undef^0 replacedby 1
10015 1^∞ or 1^undef replacedby 1
10016 1^undef replacedby 1
10017 Overflow replacedby∞ or −∞
10018 Operation requires and returns 64 bit value.
10019 Resource exhaustion, simplificationmight be incomplete.
10020 Trig function argument too big for accurate reduction.
10021 Input contains anundefinedparameter.
Resultmight not be valid for all possible parameter values.
Warning Codes and Messages 211
212 Warning Codes and Messages
Warningcode Message
10022 Specifying appropriate lower andupper boundsmight produce a solution.
10023 Scalar has beenmultipliedby the identity matrix.
10024 Result obtainedusing approximate arithmetic.
10025 Equivalence cannot be verified in EXACTmode.
10026 Constraintmight be ignored. Specify constraint in the form "\" 'VariableMathTestSymbolConstant' or a conjunct of these forms, for example 'x<3 and x>-12'
Support and ServiceTexas Instruments Support and ServiceGeneral Information: North and South America
Home Page: education.ti.comKnowledgeBase and e-mail inquiries: education.ti.com/supportPhone: (800) TI-CARES / (800) 842-2737
For North and South America and U.S.Territories
International contact information: https://education.ti.com/en/us/customer-support/support_worldwide
For Technical Support
Knowledge Base and support by e-mail: education.ti.com/support or [email protected]
Phone (not toll-free): (972) 917-8324
For Product (Hardware) Service
Customers in the U.S., Canada, Mexico, and U.S. territories: Always contact TexasInstruments Customer Support before returning a product for service.
For All Other Countries:
For general information
For more information about TI products and services, contact TI by e-mail or visit theTI Internet address.
E-mail inquiries: [email protected] Page: education.ti.com
Service and Warranty InformationFor information about the length and terms of the warranty or about product service,refer to the warranty statement enclosed with this product or contact your local TexasInstruments retailer/distributor.
Support and Service 213
Index
-
-, subtract 173
!
!, factorial 183
"
", second notation 190
#
#, indirection 188#, indirection operator 201
%
%, percent 179
&
&, append 183
*
*, multiply 174
.
.-, dot subtraction 177
.*, dot multiplication 178
./, dot division 178
.^, dot power 178
.+, dot addition 177
/
/, divide 175
:
:=, assign 194
^
^⁻¹, reciprocal 192
^, power 176
|
|, constraint operator 192
′
′minute notation 190
+
+, add 173
=
≠, not equal 180≤, less than or equal 181≥, greater than or equal 182>, greater than 181=, equal 179
∏
∏, product 185
∑
∑( ), sum 186∑Int( ) 186∑Prn( ) 187
√
√, square root 185
∠
∠ (angle) 191
∫
∫, integral 185
►
►approxFraction( ) 12►Base10, display as decimal integer 17►Base16, display as hexadecimal 17►Base2, display as binary 16
Index 214
►Cylind, display as cylindrical vector 34►DD, display as decimal angle 35►Decimal, display result as decimal 35►DMS, display as
degree/minute/second 42►Grad, convert to gradian angle 67►Polar, display as polar vector 110►Rad, convert to radian angle 119►Rect, display as rectangular vector 122►Sphere, display as spherical vector 144
⇒
⇒ , logical implication 182, 198
→
→, store variable 193
⇔
⇔ , logical double implication 183, 198
©
©, comment 194
°
°, degree notation 190°, degrees/minutes/seconds 190
0
0b, binary indicator 1940h, hexadecimal indicator 194
1
10^( ), power of ten 191
2
2-sample F Test 56
A
abs( ), absolute value 7absolute value
template for 3-4
add, + 173amortization table, amortTbl( ) 7, 15amortTbl( ), amortization table 7, 15and, Boolean operator 8angle( ), angle 8angle, angle( ) 8ANOVA, one-way variance analysis 9ANOVA2way, two-way variance
analysis 10Ans, last answer 12answer (last), Ans 12append, & 183approx( ), approximate 12approximate, approx( ) 12approxRational( ) 13arccos(), cos⁻¹() 13arccosh(), cosh⁻¹() 13arccot(), cot⁻¹() 13arccoth(), coth⁻¹() 13arccsc(), csc⁻¹() 13arccsch(), csch⁻¹() 13arcsec(), sec⁻¹() 14arcsech(), csech⁻¹() 14arcsin(), sin⁻¹() 14arcsinh(), sinh⁻¹() 14arctan(), tan⁻¹() 14arctanh(), tanh⁻¹() 14arguments in TVM functions 161augment( ), augment/concatenate 14augment/concatenate, augment( ) 14average rate of change, avgRC( ) 15avgRC( ), average rate of change 15
B
binarydisplay, ►Base2 16indicator, 0b 194
binomCdf( ) 18, 72binomPdf( ) 18Boolean operators
⇒ 182, 198⇔ 183and 8nand 98
215 Index
nor 102not 103or 107xor 166
C
Cdf( ) 51ceiling( ), ceiling 19ceiling, ceiling( ) 19, 30centralDiff( ) 19char( ), character string 20character string, char( ) 20characters
numeric code, ord( ) 108string, char( ) 20
χ²2way 20clear
error, ClrErr 22ClearAZ 22ClrErr, clear error 22colAugment 23colDim( ), matrix column dimension 23colNorm( ), matrix column norm 23combinations, nCr( ) 99comment, © 194complex
conjugate, conj( ) 23conj( ), complex conjugate 23constraint operator "|" 192constraint operator, order of
evaluation 200construct matrix, constructMat( ) 24constructMat( ), construct matrix 24convert
►Grad 67►Rad 119
copy variable or function, CopyVar 24correlation matrix, corrMat( ) 25corrMat( ), correlation matrix 25cos⁻¹, arccosine 26cos( ), cosine 25cosh⁻¹( ), hyperbolic arccosine 27cosh( ), hyperbolic cosine 26
cosine, cos( ) 25cot⁻¹( ), arccotangent 28cot( ), cotangent 28cotangent, cot( ) 28coth⁻¹( ), hyperbolic arccotangent 29coth( ), hyperbolic cotangent 28count days between dates, dbd( ) 34count items in a list conditionally ,
countif( ) 29count items in a list, count( ) 29count( ), count items in a list 29countif( ), conditionally count items
in a list 29cPolyRoots() 30cross product, crossP( ) 30crossP( ), cross product 30csc⁻¹( ), inverse cosecant 31csc( ), cosecant 31csch⁻¹( ), inverse hyperbolic cosecant 32csch( ), hyperbolic cosecant 32cubic regression, CubicReg 32CubicReg, cubic regression 32cumulative sum, cumulativeSum( ) 33cumulativeSum( ), cumulative sum 33cycle, Cycle 34Cycle, cycle 34cylindrical vector display, ►Cylind 34
D
d( ), first derivative 184days between dates, dbd( ) 34dbd( ), days between dates 34decimal
angle display, ►DD 35integer display, ►Base10 17
Define 35Define LibPriv 37Define LibPub 37define, Define 35Define, define 35defining
private function or program 37public function or program 37
Index 216
definite integraltemplate for 6
degree notation, ° 190degree/minute/second display,
►DMS 42degree/minute/second notation 190delete
void elements from list 38deleting
variable, DelVar 38deltaList() 38DelVar, delete variable 38delVoid( ), remove void elements 38derivatives
first derivative, d( ) 184numeric derivative, nDeriv( ) 100-101numeric derivative, nDerivative(
) 99det( ), matrix determinant 39diag( ), matrix diagonal 39dim( ), dimension 39dimension, dim( ) 39Disp, display data 40, 134DispAt 40display as
binary, ►Base2 16cylindrical vector, ►Cylind 34decimal angle, ►DD 35decimal integer, ►Base10 17degree/minute/second, ►DMS 42hexadecimal, ►Base16 17polar vector, ►Polar 110rectangular vector, ►Rect 122spherical vector, ►Sphere 144
display data, Disp 40, 134distribution functions
binomCdf( ) 18, 72binomPdf( ) 18invNorm( ) 73invt( ) 73Invχ²( ) 71normCdf( ) 103normPdf( ) 103poissCdf( ) 110poissPdf( ) 110
tCdf( ) 153tPdf( ) 156χ²2way( ) 20χ²Cdf( ) 20χ²GOF( ) 21χ²Pdf( ) 21
divide, / 175dot
addition, .+ 177division, ./ 178multiplication, .* 178power, .^ 178product, dotP( ) 43subtraction, .- 177
dotP( ), dot product 43
E
e exponenttemplate for 2
e to a power, e^( ) 43, 48E, exponent 188e^( ), e to a power 43eff( ), convert nominal to effective
rate 44effective rate, eff( ) 44eigenvalue, eigVl( ) 44eigenvector, eigVc( ) 44eigVc( ), eigenvector 44eigVl( ), eigenvalue 44else if, ElseIf 45else, Else 67ElseIf, else if 45empty (void) elements 196end
for, EndFor 53function, EndFunc 57if, EndIf 67loop, EndLoop 89program, EndPrgm 113try, EndTry 157while, EndWhile 166
end function, EndFunc 57end if, EndIf 67end loop, EndLoop 89
217 Index
end while, EndWhile 166EndTry, end try 157EndWhile, end while 166EOS (Equation Operating System) 200equal, = 179Equation Operating System (EOS) 200error codes and messages 203, 211errors and troubleshooting
clear error, ClrErr 22pass error, PassErr 109
euler( ), Euler function 46evaluate polynomial, polyEval( ) 111evaluation, order of 200exclusion with "|" operator 192exit, Exit 48Exit, exit 48exp( ), e to a power 48exponent, E 188exponential regession, ExpReg 49exponents
template for 1expr( ), string to expression 49ExpReg, exponential regession 49expressions
string to expression, expr( ) 49
F
factor( ), factor 50factor, factor( ) 50factorial, ! 183Fill, matrix fill 51financial functions, tvmFV( ) 159financial functions, tvmI( ) 159financial functions, tvmN( ) 160financial functions, tvmPmt( ) 160financial functions, tvmPV( ) 160first derivative
template for 5FiveNumSummary 52floor( ), floor 52floor, floor( ) 52For 53for, For 53
For, for 53format string, format( ) 53format( ), format string 53fpart( ), function part 54fractions
propFrac 114template for 1
freqTable( ) 55frequency( ) 55Frobenius norm, norm( ) 103Func, function 57Func, program function 57functions
part, fpart( ) 54program function, Func 57user-defined 35
functions and variablescopying 24
G
g, gradians 189gcd( ), greatest common divisor 57geomCdf( ) 58geomPdf( ) 58Get 58get/return
denominator, getDenom( ) 59number, getNum( ) 65variables injformation,
getVarInfo( ) 63, 66getDenom( ), get/return
denominator 59getKey() 60getLangInfo( ), get/return language
information 63getLockInfo( ), tests lock status of
variable or variable group 63getMode( ), get mode settings 64getNum( ), get/return number 65GetStr 65getType( ), get typeof variable 65getVarInfo( ), get/return variables
information 66go to, Goto 67
Index 218
Goto, go to 67gradian notation, g 189greater than or equal, ≥ 182greater than, > 181greatest common divisor, gcd( ) 57groups, locking and unlocking 85, 163groups, testing lock status 63
H
hexadecimaldisplay, ►Base16 17indicator, 0h 194
hyperbolicarccosine, cosh⁻¹( ) 27arcsine, sinh⁻¹( ) 142arctangent, tanh⁻¹( ) 153cosine, cosh( ) 26sine, sinh( ) 141tangent, tanh( ) 152
I
identity matrix, identity( ) 67identity( ), identity matrix 67if, If 67If, if 67ifFn( ) 69imag( ), imaginary part 69imaginary part, imag( ) 69indirection operator (#) 201indirection, # 188inString( ), within string 70int( ), integer 70intDiv( ), integer divide 71integer divide, intDiv( ) 71integer part, iPart( ) 73integer, int( ) 70integral, ∫ 185interpolate( ), interpolate 71inverse cumulative normal
distribution (invNorm( ) 73inverse, ^⁻¹ 192invF( ) 72invNorm( ), inverse cumulative 73
normal distribution)invt( ) 73Invχ²( ) 71iPart( ), integer part 73irr( ), internal rate of return
internal rate of return, irr( ) 73isPrime( ), prime test 74isVoid( ), test for void 74
L
label, Lbl 75language
get language information 63Lbl, label 75lcm, least common multiple 75least common multiple, lcm 75left( ), left 75left, left( ) 75length of string 39less than or equal, ≤ 181LibPriv 37LibPub 37library
create shortcuts to objects 76libShortcut( ), create shortcuts to
library objects 76linear regression, LinRegAx 77linear regression, LinRegBx 76, 78LinRegBx, linear regression 76LinRegMx, linear regression 77LinRegtIntervals, linear regression 78LinRegtTest 80linSolve() 81Δlist( ), list difference 82list to matrix, list►mat( ) 82list, conditionally count items in 29list, count items in 29list►mat( ), list to matrix 82lists
augment/concatenate,augment( ) 14
cross product, crossP( ) 30cumulative sum,
cumulativeSum( ) 33
219 Index
differences in a list, Δlist( ) 82dot product, dotP( ) 43empty elements in 196list to matrix, list►mat( ) 82matrix to list, mat►list( ) 90maximum, max( ) 90mid-string, mid( ) 93minimum, min( ) 93new, newList( ) 100product, product( ) 114sort ascending, SortA 144sort descending, SortD 144summation, sum( ) 149
ln( ), natural logarithm 82LnReg, logarithmic regression 83local variable, Local 85local, Local 85Local, local variable 85Lock, lock variable or variable group 85locking variables and variable groups 85Log
template for 2logarithmic regression, LnReg 83logarithms 82logical double implication,⇔ 183logical implication,⇒ 182, 198logistic regression, Logistic 86logistic regression, LogisticD 87Logistic, logistic regression 86LogisticD, logistic regression 87loop, Loop 89Loop, loop 89LU, matrix lower-upper
decomposition 89
M
mat►list( ), matrix to list 90matrices
augment/concatenate,augment( ) 14
column dimension, colDim( ) 23column norm, colNorm( ) 23cumulative sum,
cumulativeSum( ) 33
determinant, det( ) 39diagonal, diag( ) 39dimension, dim( ) 39dot addition, .+ 177dot division, ./ 178dot multiplication, .* 178dot power, .^ 178dot subtraction, .- 177eigenvalue, eigVl( ) 44eigenvector, eigVc( ) 44filling, Fill 51identity, identity( ) 67list to matrix, list►mat( ) 82lower-upper decomposition, LU 89matrix to list, mat►list( ) 90maximum, max( ) 90minimum, min( ) 93new, newMat( ) 100product, product( ) 114QR factorization, QR 115random, randMat( ) 120reduced row echelon form, rref(
) 132row addition, rowAdd( ) 131row dimension, rowDim( ) 131row echelon form, ref( ) 122row multiplication and addition,
mRowAdd( ) 95row norm, rowNorm( ) 131row operation, mRow( ) 95row swap, rowSwap( ) 132submatrix, subMat( ) 149-150summation, sum( ) 149transpose, T 151
matrix (1 × 2)template for 4
matrix (2 × 1)template for 4
matrix (2 × 2)template for 4
matrix (m ×n)template for 4
matrix to list, mat►list( ) 90max( ), maximum 90
Index 220
maximum, max( ) 90mean( ), mean 91mean, mean( ) 91median( ), median 91median, median( ) 91medium-medium line regression,
MedMed 92MedMed, medium-medium line
regression 92mid-string, mid( ) 93mid( ), mid-string 93min( ), minimum 93minimum, min( ) 93minute notation, ′ 190mirr( ), modified internal rate of
return 94mixed fractions, using propFrac(›
with 114mod( ), modulo 94mode settings, getMode( ) 64modes
setting, setMode( ) 136modified internal rate of return, mirr
( ) 94modulo, mod( ) 94mRow( ), matrix row operation 95mRowAdd( ), matrix row
multiplication and addition 95Multiple linear regression t test 97multiply, * 174MultReg 95MultRegIntervals( ) 96MultRegTests( ) 97
N
nand, Boolean operator 98natural logarithm, ln( ) 82nCr( ), combinations 99nDerivative( ), numeric derivative 99negation, entering negative numbers 201net present value, npv( ) 105new
list, newList( ) 100matrix, newMat( ) 100
newList( ), new list 100
newMat( ), new matrix 100nfMax( ), numeric function
maximum 100nfMin( ), numeric function minimum 101nInt( ), numeric integral 101nom ), convert effective to nominal
rate 102nominal rate, nom( ) 102nor, Boolean operator 102norm( ), Frobenius norm 103normal distribution probability,
normCdf( ) 103normCdf( ) 103normPdf( ) 103not equal, ≠ 180not, Boolean operator 103nPr( ), permutations 104npv( ), net present value 105nSolve( ), numeric solution 105nth root
template for 1numeric
derivative, nDeriv( ) 100-101derivative, nDerivative( ) 99integral, nInt( ) 101solution, nSolve( ) 105
O
objectscreate shortcuts to library 76
one-variable statistics, OneVar 106OneVar, one-variable statistics 106operators
order of evaluation 200or (Boolean), or 107or, Boolean operator 107ord( ), numeric character code 108
P
P►Rx( ), rectangular x coordinate 108P►Ry( ), rectangular y coordinate 109pass error, PassErr 109PassErr, pass error 109Pdf( ) 54
221 Index
percent, % 179permutations, nPr( ) 104piecewise function (2-piece)
template for 2piecewise function (N-piece)
template for 2piecewise( ) 110poissCdf( ) 110poissPdf( ) 110polar
coordinate, R►Pr( ) 118coordinate, R►Pθ( ) 118vector display, ►Polar 110
polyEval( ), evaluate polynomial 111polynomials
evaluate, polyEval( ) 111random, randPoly( ) 121
PolyRoots() 112power of ten, 10^( ) 191power regression,
PowerReg 112, 125-126, 154power, ^ 176PowerReg, power regression 112Prgm, define program 113primenumber test, isPrime( ) 74probability densiy, normPdf( ) 103prodSeq() 114product( ), product 114product, ∏( ) 185
template for 5product, product( ) 114programming
define program, Prgm 113display data, Disp 40, 134pass error, PassErr 109
programsdefining private library 37defining public library 37
programs and programmingclear error, ClrErr 22display I/O screen, Disp 40, 134end program, EndPrgm 113end try, EndTry 157try, Try 157
proper fraction, propFrac 114propFrac, proper fraction 114
Q
QR factorization, QR 115QR, QR factorization 115quadratic regression, QuadReg 116QuadReg, quadratic regression 116quartic regression, QuartReg 117QuartReg, quartic regression 117
R
R, radian 189R►Pr( ), polar coordinate 118R►Pθ( ), polar coordinate 118radian, R 189rand( ), random number 119randBin, random number 119randInt( ), random integer 120randMat( ), random matrix 120randNorm( ), random norm 120random
matrix, randMat( ) 120norm, randNorm( ) 120number seed, RandSeed 121polynomial, randPoly( ) 121
random sample 121randPoly( ), random polynomial 121randSamp( ) 121RandSeed, random number seed 121real( ), real 121real, real( ) 121reciprocal, ^⁻¹ 192rectangular-vector display, ►Rect 122rectangular x coordinate, P►Rx( ) 108rectangular y coordinate, P►Ry( ) 109reduced row echelon form, rref( ) 132ref( ), row echelon form 122RefreshProbeVars 123regressions
cubic, CubicReg 32exponential, ExpReg 49linear regression, LinRegAx 77
Index 222
linear regression, LinRegBx 76, 78logarithmic, LnReg 83Logistic 86logistic, Logistic 87medium-medium line, MedMed 92MultReg 95power regression,
PowerReg 112, 125-126, 154quadratic, QuadReg 116quartic, QuartReg 117sinusoidal, SinReg 142
remain( ), remainder 124remainder, remain( ) 124remove
void elements from list 38Request 125RequestStr 126result values, statistics 146results, statistics 145return, Return 127Return, return 127right( ), right 127right, right( ) 46, 71, 127-128rk23( ), RungeKutta function 128rotate( ), rotate 129rotate, rotate( ) 129round( ), round 130round, round( ) 130row echelon form, ref( ) 122rowAdd( ), matrix row addition 131rowDim( ), matrix row dimension 131rowNorm( ), matrix row norm 131rowSwap( ), matrix row swap 132rref( ), reduced row echelon form 132
S
sec⁻¹( ), inverse secant 133sec( ), secant 132sech⁻¹( ), inverse hyperbolic secant 133sech( ), hyperbolic secant 133second derivative
template for 5second notation, " 190seq( ), sequence 134
seqGen( ) 135seqn( ) 135sequence, seq( ) 134-135set
mode, setMode( ) 136setMode( ), set mode 136settings, get current 64shift( ), shift 137shift, shift( ) 137sign( ), sign 139sign, sign( ) 139simult( ), simultaneous equations 139simultaneous equations, simult( ) 139sin⁻¹( ), arcsine 141sin( ), sine 140sine, sin( ) 140sinh⁻¹( ), hyperbolic arcsine 142sinh( ), hyperbolic sine 141SinReg, sinusoidal regression 142sinusoidal regression, SinReg 142SortA, sort ascending 144SortD, sort descending 144sorting
ascending, SortA 144descending, SortD 144
spherical vector display, ►Sphere 144sqrt( ), square root 145square root
template for 1square root, √( ) 145, 185standard deviation, stdDev( ) 147, 163stat.results 145stat.values 146statistics
combinations, nCr( ) 99factorial, ! 183mean, mean( ) 91median, median( ) 91one-variable statistics, OneVar 106permutations, nPr( ) 104random norm, randNorm( ) 120random number seed,
RandSeed 121standard deviation, stdDev( ) 147, 163
223 Index
two-variable results, TwoVar 161variance, variance( ) 164
stdDevPop( ), population standarddeviation 147
stdDevSamp( ), sample standarddeviation 147
Stop command 148store variable (→) 193storing
symbol, & 194string
dimension, dim( ) 39length 39
string( ), expression to string 148strings
append, & 183character code, ord( ) 108character string, char( ) 20expression to string, string( ) 148format, format( ) 53formatting 53indirection, # 188left, left( ) 75mid-string, mid( ) 93right, right( ) 46, 71, 127-128rotate, rotate( ) 129shift, shift( ) 137string to expression, expr( ) 49using to create variable names 201within, InString 70
student-t distribution probability,tCdf( ) 153
student-t probability density, tPdf( ) 156subMat( ), submatrix 149-150submatrix, subMat( ) 149-150substitution with "|" operator 192subtract, - 173sum of interest payments 186sum of principal payments 187sum( ), summation 149sum, ∑( ) 186
template for 5sumIf( ) 149summation, sum( ) 149
sumSeq() 150system of equations (2-equation)
template for 3system of equations (N-equation)
template for 3
T
t test, tTest 158T, transpose 151tan⁻¹( ), arctangent 152tan( ), tangent 151tangent, tan( ) 151tanh⁻¹( ), hyperbolic arctangent 153tanh( ), hyperbolic tangent 152tCdf( ), studentt distribution
probability 153templates
absolute value 3-4definite integral 6e exponent 2exponent 1first derivative 5fraction 1Log 2matrix (1 × 2) 4matrix (2 × 1) 4matrix (2 × 2) 4matrix (m ×n) 4nth root 1piecewise function (2-piece) 2piecewise function (N-piece) 2product, ∏( ) 5second derivative 5square root 1sum, ∑( ) 5system of equations (2-
equation) 3system of equations (N-
equation) 3test for void, isVoid( ) 74Test_2S, 2-sample F test 56Text command 154time value ofmoney, FutureValue 159time value ofmoney, Interest 159
Index 224
time value ofmoney, number ofpayments 160
time value ofmoney, paymentamount 160
time value ofmoney, present value 160tInterval, t confidence interval 154tInterval_2Samp, twosample t
confidence interval 155tPdf( ), student probability density 156trace( ) 156transpose, T 151Try, error handling command 157tTest, t test 158tTest_2Samp, two-sample t test 158TVMarguments 161tvmFV( ) 159tvmI( ) 159tvmN( ) 160tvmPmt( ) 160tvmPV( ) 160two-variable results, TwoVar 161TwoVar, two-variable results 161
U
unit vector, unitV( ) 163unitV( ), unit vector 163unLock, unlock variable or variable
group 163unlocking variables and variable
groups 163user-defined functions 35user-defined functions and
programs 37
V
variablecreating name from a character
string 201variable and functions
copying 24variables
clear all single-letter 22delete, DelVar 38local, Local 85
variables, locking and unlocking 63, 85, 163
variance, variance( ) 164varPop( ) 163varSamp( ), sample variance 164vectors
cross product, crossP( ) 30cylindrical vector display,
►Cylind 34dot product, dotP( ) 43unit, unitV( ) 163
void elements 196void elements, remove 38void, test for 74
W
Wait command 164warnCodes( ), Warning codes 165warning codes and messages 211when( ), when 166when, when( ) 166while, While 166While, while 166with, | 192within string, inString( ) 70
X
x², square 177XNOR 183xor, Boolean exclusive or 166
Z
zInterval, z confidence interval 167zInterval_1Prop, one-proportion z
confidence interval 168zInterval_2Prop, two-proportion z
confidence interval 168zInterval_2Samp, two-sample z
confidence interval 169zTest 170zTest_1Prop, one-proportion z test 171zTest_2Prop, two-proportion z test 171zTest_2Samp, two-sample z test 171
225 Index
Χ
χ²Cdf( ) 20χ²GOF 21χ²Pdf( ) 21
Index 226