EasyManuals Logo
Home>Texas Instruments>Calculator>TI-92+

Texas Instruments TI-92+ User Manual

Texas Instruments TI-92+
507 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #161 background imageLoading...
Page #161 background image
As an example, consider using simulti() to find the coefficients for the Langrangian interpolating
polynomial. This is just the polynomial that fits through the given points. A polynomial of degree n-1 can
be fit through n points. This function returns the coefficients as a list, given the x-y point coordinates in
a matrix:
polyfiti(xyd)
func
©Find coefficients of nth-order polynomial, given n+1 xy points
© 18mar00/dburkett@infinet.com
local a,k,n,xd
rowdim(xyd)n
seq(k,k,n-1,0,⁻1)a
seq(matlist(submat(xyd,1,1,n,1 ))[k]^a,k,1,n)a
matlist(simulti(a,submat(xyd,1,2,n,2)))
Endfunc
This table shows the results of the fit for fitting a function with and without improvement. The function is
f(x) = tan(x), x in radians. x ranges from 0.4 to 1.4, with data points every 0.1 radians. This means that
11 points were fit to a 10th-order polynomial.
Without improvement: RMS residual: 3.5E-8
Maximum residual: 3.5E-6
Minimum residual: 3.4E-10
With improvement: RMS residual: 7.4E-11
Maximum residual: 5.9E-9
Minimum residual: -7.8E-10
The residual is the difference between the actual b-values and the calculated b-values. The RMS
residual is a deviation measurement of all the residuals, and the minimum and maximum residuals are
the most extreme residuals for all the fit points.
For this function and data, the improvement results in several orders of magnitude in both the RMS
residuals and the extreme residuals. Without the improvement, the calculated results are only accurate
to about five significant digits. With the improvement, the results are accurate to at least 8 significant
digits.
[6.4] Gamma, log-gamma and factorial functions
The gamma function is one of many 'special functions' that occur as the result of integrations, limits,
sums and products. The gamma function is defined as
Re(z)>0
(
z
)
=
0
t
(
z1
)
e
t
dt
The gamma function is defined for all real and complex numbers except for negative integers. The
gamma function can also be used to define factorials of negative numbers and non-integers, since
(
n + 1
)
= n!
The CAS occasionally returns results including the gamma function, but there is no built-in function to
calculate it. Here's a function to calculate gamma:
6 - 3

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments TI-92+ and is the answer not in the manual?

Texas Instruments TI-92+ Specifications

General IconGeneral
BrandTexas Instruments
ModelTI-92+
CategoryCalculator
LanguageEnglish

Related product manuals