Re: Unstable Simultaneous Linear Equations!



On Thu, 3 Apr 2008 07:10:08 -0700 (PDT), monir <monirg@xxxxxxxxxxxx> wrote:

<SNIP>
Rodger;

Okay.
Given: (exact 7 significant digits)
..........x.........y........d=(dy/dx)
P1:: -0.0266255 0.9981449 -0.1308565
P2:: -0.0248588 0.9847863 132.5335679

what poly coeff A, B, C, D do you get for:
y = A + B*x +C*x^2 + D*x^3

Upon receipt, I'll provide you with an Excel plot showing the
comparison and how to construct the correct elliptic interpolation
curve.

Regards.
Monir

I calculated the coefficients in Mathematica with 50 digit arithmetic. Other
high precision arithmetic packages could be used, such as Matlab, Maple, Scilab,
etc. Here is a link to an image showing the whole thing, including a plot of
the cubic passing through the endpoints plus the elliptic function you gave in
another post:

http://img2.freeimagehosting.net/image.php?8ada8a8e27.gif

The coefficients I got are:

A = 830.9589672389913
B = 95 850.51921961399
C = 3 687 666.010250186
D = 47 265 155.70059824

I think Excel won't be able to get this result even using double precision
arithmetic, and probably won't even be able to accurately evaluate the cubic and
the derivatives with double precision.

The results and calculations shown in the Mathematica result are quite accurate,
and can be relied on to be correct, for the starting values:

Given: (exact 7 significant digits)
...........x.........y........d=(dy/dx)
P1:: -0.0266255 0.9981449 -0.1308565
P2:: -0.0248588 0.9847863 132.5335679

This all shows that extreme care and high precision arithmetic is required to
get a good result for the cubic because the condition number for the system is
very high. The cubic is not a good function for the interpolation, but it can
be accurately calculated with high precision arithmetic.
.



Relevant Pages

  • Re: INT defect: Please try this on 2007 for me
    ... binary floating point representation and calculations. ... the low-order bits you should not be using Excel. ... as 40000.847999999 when formatted to 15 significant digits. ...
    (microsoft.public.excel.worksheet.functions)
  • Measure class, precision, significant digits, and divmod()
    ... only has two significant digits, so answer only has two significant digits). ... done, and I'm ready to tackle floordiv, mod, and divmod... ... returns the count of times b goes into a, and the remainder, be an exact number, or should it behave like floor, and preserve the inherent inaccury present in the measured value a? ...
    (comp.lang.python)
  • Re: This calculation is just wrong / computer cant count!
    ... it is wrong to say anything about the 'correctness' of values outside the range of the significant digits in your calculations. ... In the case of the silence example the phrase 'for all practical purposes' is understood. ... OK so the term 'silence' has to be checked for using a range of values, but how about the numerical value 0, commonly called nothing, zero, nought. ...
    (microsoft.public.vc.mfc)
  • Re: This calculation is just wrong / computer cant count!
    ... By your standards it could be argued that .83333333333333 is not correct because you can always add another 3 to the end so unless you can take the decimal places to infinity you can not have an exact value. ... Again I stress that nothing beyond the second decimal point counts and to try to include values beyond the proper number of significant digits is just plain wrong. ... Then you need to go back to primary school mathematics classes! ... Millions of PCs need to be recalled because "the math is wrong". ...
    (microsoft.public.vc.mfc)
  • Re: Datatype Limitation
    ... > It is not a limitation of VB; but, rather, a limitation of the data type ... > actually), 15 significant digits, so that's what you got. ... > actually matter significantly in your calculations), ...
    (microsoft.public.vb.general.discussion)

Quantcast