[6.56] Fourth-Order Splice Joins Two Functions - Texas Instruments TI-89 Tip List

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

"If the number is identified as composite, the factor() function then proceeds to the Pollard Rho
factorization algorithm. It is arguably the fastest algorithm for when the second largest prime factor has
less than about 10 digits. There are faster algorithms for when this factor has more digits, but all
known algorithms take expected time that grows exponentially with the number of digits. For example,
the Pollard Rho algorithm would probably take centuries on any current computer to factor the product
of two 50-digit primes. In contrast, the isPrime() function would quickly identify the number as
composite.
"Both the compositivity test and the Pollard Rho algorithm need to square numbers as large as their
inputs, so they quit with a "Warning: ... Simplification might be incomplete." if their inputs exceed about
307 digits."

[6.56] Fourth-order splice joins two functions

A fourth-order splice joins two functions smoothly over an interval. The splice function matches the two
functions at the interval boundaries, and the first derivatives of the splice equal those of the two
functions. The fourth-order splice uses a point in the interval interior which controls the splice behavior.
This splice is useful to join two functions, such as regression models, resulting in a model (with three
equations) which is continuous and smooth, in the first derivative sense, over the interval of interest.
This tip is organized in these sections:
Splice function derivation
The function splice4()
Example: approximate the sin() function
Differentiating the splice
Integrating the splice
Solving for the splice inverse
User interface program for splice4()
Scaling the derivatives
Scaling the splice integral
These programs and functions are developed and described:
splice4()
spli4ui()
spli4de()
spli4in()
spli4x()
spli4inv()
Splice function derivation
Define
x
= the left interval bound
1
x
= the right interval bound
3
x
= the interval interior control point, where x
2
h = x
- x
= x
2
1
3
f
(x) is the left-hand function to be spliced
1
f
(x) is the right-hand function to be spliced
2
Calculate the splice function coefficients
User interface for splice4()
Calculate the splice derivative
Calculate a numeric derivative for the splice
Calculate x, given the splice value of y. Uses nsolve()
Find an approximate polynomial for the inverse of the splice function
- x
(the splice half-width; the control point is midway between the interval bounds)
2
< x
< x
1
2
3
6 - 94

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92+

Table of Contents