Cubic Splines with Known Data Points


If you know only the data points, use the following procedure to run the Cubic Splines program.


Starting the Program

To start the Cubic Splines program:
  1. Select { INT } from the MATHEMATICS menu.
    The program displays:
    D_xBaqYe
  2. Press { CUB }.
    The program displays:
    D_H78jkQ
  3. Press { NEW }.
You can then begin entering the data points.

Entering the Data Points

When you select { NEW } from the CUBIC SPLINES menu, the program displays:
D_eLsbAL
  1. Enter the number of data points and press { m }.
  2. Press { EOD }.
    The program prompts you to enter the x and y values for each data point, beginning with the leftmost point.
    D_CN4RQe
  3. Enter the x and y values as described below.
    * Enter the x value and press the [ x~t ] key to store it in the t-register.
    * Enter the y value and press { ENT }.
    If you need to remove the last x and y values that were entereed with { ENT }, press [ INV ] { ENT }.
  4. Repeat step 3 until all of the x and y values are entered.
When completed, the program will display the menu shown in the next section.

The Edit Menu

After you enter the x and y values for all the data points, the program displays an EDIT menu that allows you to change any of the values.
D_YfCf3O
  • If you do not want to edit any values, press { EOD } and the program will continue.
  • If you want to edit a value, use the following procedure:

Editing Data Points

To edit the x or y value for a specified data point:
  1. Enter the number of the data point and press { i }.
    The program displays the x value and puts the y value in the t-register.
  2. Use the [ x~t ] key and the data entry keys to store the correct x value in the t-register and display the correct y value.
  3. Press { ENT } to enter the correct vaules.
  4. Repeat steps 1 through 3 for any other points you want to edit.
  5. Press { EOD } to continue with the program.

Entering the End Derivatives

After you enter all the data points and select { EOD } from the EDIT menu, the program prompts you to specify the second derivatives at the endpoints.
D_vmjJch
The program normally assumes that the end derivatives are zero. You can accept this value by pressing { EOD }.
However, if you want to specify other values:
  1. Enter the second derivative for the leftmost point and press { g1 }.
  2. Enter the second derivative for the rightmost point and press { gm }.
  3. Press { EOD } to continue with the program.

Choosing the Results

After you press { EOD }, the program displays:
D_he9KlD
  • To display the second derivative at each point, press { YES }, and go to the section labeled "Viewing the Derivatives" below.
  • To interpolate, press { NO } and go to the section labeled "Interpolating" below.
  • To restart the Cubic Splines program and enter different data, press { ESC }.

Viewing the Derivatives

When you select { YES } from the SEE DERIVATIVES? menu, the program displays the second derivative at the first (leftmost) data point; for example:
D_eFBvQ6
Press { NXT } repeatedly to display the second derivative at each of the remaining points.
When the last derivative is displayed, pressing { NXT } redisplays the SEE DERIVATIVES? menu. Selecting { NO } from that menu lets you interpolate.

Interpolating

When you select { NO } from the SEE DERIVATIVES? menu, the program displays:
D_HlVhGA
  1. Press { YES }.
    The program displays:
    D_kPKzJl
  2. Enter a value for x and press { x }.
    The program displays the corresponding value of y.
    D_SYoADX(for example).
  3. Repeate step 2 for any other values of x.
  4. Press { ESC } to return to the SEE DERIVATIVES? menu.


Back