Texas Instruments NS/CLM/1L1/B Reference Guide - Page 90
Example 2
UPC - 033317190256
View all Texas Instruments NS/CLM/1L1/B manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 90 highlights
Output variable stat.df stat.x1, stat.x2 stat.sx1, stat.sx2 stat.n1, stat.n2 stat.sp Description Degrees of freedom. Sample means of the data sequences from the normal random distribution. Sample standard deviations for List 1 and List 2. Number of samples in data sequences. The pooled standard deviation. Calculated when Pooled = YES. tPdf() tPdf(XVal,df) ⇒ number if XVal is a number, list if XVal is a list Computes the probability density function (pdf) for the Student-t distribution at a specified x value with specified degrees of freedom df. Try Try block1 Else block2 EndTry Executes block1 unless an error occurs. Program execution transfers to block2 if an error occurs in block1. System variable errCode contains the error code to allow the program to perform error recovery. For a list of error codes, see "Error codes and messages," page 107. block1 and block2 can be either a single statement or a series of statements separated with the ":" character. Note for entering the example: In the Calculator application on the handheld, you can enter multi-line definitions by pressing @ · instead of at the end of each line. On the computer keyboard, hold down Alt and press Enter. Catalog > Catalog > Example 2 To see the commands Try, ClrErr, and PassErr in operation, enter the eigenvals() program shown at the right. Run the program by executing each of the following expressions. Note: See also ClrErr, page 13, and PassErr, page 58. Define eigenvals(a,b)=Prgm © Program eigenvals(A,B) displays eigenvalues 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 a square matrix" ClrErr Else PassErr EndIf EndTry EndPrgm 84 TI-Nspire™ Reference Guide