c数值计算 程序大全
120Chapter3.InterpolationandExtrapolation
3.5Coef cientsoftheInterpolatingPolynomial
Occasionallyyoumaywishtoknownotthevalueoftheinterpolatingpolynomialthatpassesthrougha(small!)numberofpoints,butthecoef cientsofthatpoly-nomial.Avaliduseofthecoef cientsmightbe,forexample,tocomputesimultaneousinterpolatedvaluesofthefunctionandofseveralofitsderivatives(see§5.3),ortoconvolveasegmentofthetabulatedfunctionwithsomeotherfunction,wherethemomentsofthatotherfunction(i.e.,itsconvolutionwithpowersofx)areknownanalytically.
However,pleasebecertainthatthecoef cientsarewhatyouneed.Generallythecoef cientsoftheinterpolatingpolynomialcanbedeterminedmuchlessaccuratelythanitsvalueatadesiredabscissa.Thereforeitisnotagoodideatodeterminethecoef cientsonlyforuseincalculatinginterpolatingvalues.Valuesthuscalculatedwillnotpassexactlythroughthetabulatedpoints,forexample,whilevaluescomputedbytheroutinesin§3.1–§3.3willpassexactlythroughsuchpoints.
Also,youshouldnotmistaketheinterpolatingpolynomial(anditscoef cients)foritscousin,thebest tpolynomialthroughadataset.Fittingisasmoothingprocess,sincethenumberof ttedcoef cientsistypicallymuchlessthanthenumberofdatapoints.Therefore, ttedcoef cientscanbeaccuratelyandstablydeterminedeveninthepresenceofstatisticalerrorsinthetabulatedvalues.(See§points14.8.)areInterpolation,equal,takesthewheretabulatedthenumbervaluesasofperfect.coef cientsIftheyandinfactnumbercontainofstatisticaltabulatederrors,thesecanbemagni edintooscillationsoftheinterpolatingpolynomialinbetweenthetabulatedpoints.
Asbefore,wetakethetabulatedpointstobeyi≡y(xi).Iftheinterpolatingpolynomialiswrittenas
y=c0+c1x+c2x2+···+cNxN
(3.5.1)
thentheci’sarerequiredtosatisfythelinearequation
1x0x2
0···xN0
c0 y
1x1x2 . . ..···xN1 .
c1
...1
..
. . · ... = y1 ..
.
(3.5.2)1
xN
x2N
···xN
NcN
yNThisisaVandermondematrix,asdescribedin§2.8.Onecouldinprinciplesolve
equation(3.5.2)bystandardtechniquesforlinearequationsgenerally(§2.3);howeverthespecialmethodthatwasderivedin§2.8ismoreef cientbyalargefactor,oforderN,soitismuchbetter.
RememberthatVandermondesystemscanbequiteill-conditioned.Insuchacase,nonumericalmethodisgoingtogiveaveryaccurateanswer.Suchcasesdonot,pleasenote,implyanydif cultyin ndinginterpolatedvaluesbythemethodsof§3.1,butonlydif cultyin ndingcoef cients.
Liketheroutinein§2.8,thefollowingisduetoG.B.Rybicki.Notethatthearraysareallassumedtobezero-offset.
visit website doc.guandang.net or call 1-800-872-7423 (North America only), readable files (including this one) to any server cor send email to trade@cup.cam.ac.uk (outside North America).
omputer, is strictly prohibited. To order Numerical Recipes books, diskettes, or CDROMsPermission is granted for internet users to make one paper copy for their own personal use. Further reproduction, or any copying of machine-Copyright (C) 1988-1992 by Cambridge University Press. Programs Copyright (C) 1988-1992 by Numerical Recipes Software. Sample page from NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5)
c数值算法程序大全c2-9 c数值算法程序大全c2-10 c数值算法程序大全c3-1 c数值算法程序大全c3-2 c数值算法程序大全c3-4 c数值算法程序大全c3-5 c数值算法...
c数值算法程序大全c2-10 c数值算法程序大全c3-1 c数值算法程序大全c3-2 c数值算法程序大全c3-3 c数值算法程序大全c3-4 c数值算法程序大全c3-5 c数值算法...
c数值算法程序大全c2-9 c数值算法程序大全c2-10 c数值算法程序大全c3-1 c数值算法程序大全c3-3 c数值算法程序大全c3-4 c数值算法程序大全c3-5 c数值算法...
c数值算法程序大全c2-10 c数值算法程序大全c3-1 c数值算法程序大全c3-2 c数值算法程序大全c3-3 c数值算法程序大全c3-4 c数值算法程序大全c3-5 c数值算法...
c数值算法程序大全c2-10 c数值算法程序大全c3-1 c数值算法程序大全c3-2 c数值算法程序大全c3-3 c数值算法程序大全c3-4 c数值算法程序大全c3-5 c数值算法...
c数值算法程序大全c2-9 c数值算法程序大全c2-10 c数值算法程序大全c3-2 c数值算法程序大全c3-3 c数值算法程序大全c3-4 c数值算法程序大全c3-5 c数值算法...
c数值算法程序大全c2-10 c数值算法程序大全c3-1 c数值算法程序大全c3-2 c数值算法程序大全c3-3 c数值算法程序大全c3-4 c数值算法程序大全c3-5 c数值算法...
c数值算法程序大全c2-10 c数值算法程序大全c3-1 c数值算法程序大全c3-2 c数值算法程序大全c3-3 c数值算法程序大全c3-4 c数值算法程序大全c3-5 c数值算法...
c数值算法程序大全c2-10 c数值算法程序大全c3-1 c数值算法程序大全c3-2 c数值算法程序大全c3-3 c数值算法程序大全c3-4 c数值算法程序大全c3-5 c数值算法...
c数值算法程序大全c2-10 c数值算法程序大全c3-1 c数值算法程序大全c3-2 c数值算法程序大全c3-3 c数值算法程序大全c3-4 c数值算法程序大全c3-5 c数值算法...
热门文档