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
©
1
8mar00/[email protected]
local a,k,n,xd
rowdim(xyd)
→
n
seq(k,k,n-
1
,0,
⁻1
)
→
a
seq(mat
▶
list(submat(xyd,
1
,
1
,n,
1
))[k]^a,k,
1
,n)
→
a
mat
▶
list(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
(z
−
1)e
−
tdt
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
Содержание TI-92+
Страница 52: ...Component side of PCB GraphLink I O connector detail 1 41...
Страница 53: ...LCD connector detail PCB switch side 1 42...
Страница 54: ...Key pad sheet contact side Key pad sheet key side 1 43...
Страница 55: ...Key cap detail 1 44...
Страница 57: ...Component side of PCB with shield removed A detail view of the intergrated circuits 1 46...
Страница 59: ...Keypad rubber sheet key cap side Inside front cover showing keycaps in place Detail of a key cap 1 48...
Страница 410: ...void extensionroutine2 void Credit to Bhuvanesh Bhatt 10 4...