12-5 Including ClassPad Functions in Programs

This section provides actual examples that use graph drawing, statistical calculations and other ClassPad functions.

Including Graphing Functions in a Program

1201 To register y > sin(x) as Graph Editor y1, and y < x/12 as Graph Editor y2 and then draw the inequality graph for the two expressions. On the resulting graph, only areas where the conditions of all of the graphed inequalities are satisfied will be filled in.

1202 To graph (x – A)2/32 + (y – B)2/42. Make A and B the parameter variables and specify A=1 and B=2 when the program is run.

Including Table & Graph Functions in a Program

1203 To register y = 3x2 – 2 as Graph Editor y1 and then generate a number table based on the following: x start value: 0, end value: 6, step value: 1. Next, use the number table to display a connect type graph.

Including Recursion Table and Recursion Graph Functions in a Program

1204 To register the recursion formula an+1 = –3 × an2 + 2 an, a0 = 0.01 on the Sequence Editor window and then generate a number table based on the following: n start value: 1, end value: 6. Next, use the number table to display a connect type graph.

Including Statistical Graphing and Calculation Functions in a Program

1205

1206

1207

1208

To input {0.5,1.2,2.4,4,5.2} for list1 and {–2.1,0.3,1.5,2,2.4} for list2, and then plot a scatter plot

To graph the logarithmic regression of the list1 and list2 data in Example 1205

To graph the sinusoidal regression of the list1 and list2 data in Example 1205

To plot the scatter plot of the list1 and list2 data in Example 1205 . Next, use the list1 and list2 data to calculate logarithmic regression and then display the calculation results and regression graph on the same screen.

1209 To execute the One-Way ANOVA test program in Example 0706 (page 142) 1210 To execute the Two-Way ANOVA test program in Example 0707 (page 143)

1211 To specify  0,  = 3 for n (sample size) = 48, o (sample mean) = 24.5 data and perform a 1-Sample

ZTest

Including Financial Calculation Functions in a Program

1212 To calculate the number of days from July 4, 1976 to another specified date. Calculate based on a 365- day year.

1213 To execute the bond calculation program in Example 1108 (page 182)

Chapter 12: Program Application

218