Re: terrible bug in Mathematica (//N), but why????



 There is nothing whatsoever
to say that the expression AFTER fullsimplify might
also be quite wrong. There are many books on numerical
analysis...

If you want something "automatic" to happen, you might
try, in Mathematica..
N[xxxxx,50]   to try to get 50 decimal digits for xxxxx
instead of
N[xxxxx]  which will use machine precision, and will be
be faster but of unknown accuracy.

As for differences with m being 43 instead of 44...
Sin(2*n*pi) is 0  and Sin((2*n+1)*pi)  is 1. Such
things are hardly random :)

RJF


symbio wrote:

Dear Richard,
can you explain how such huge error occurs if FullSimplify is not used? one case gives x10^25, the other with fullsimplify gives x10^-41 (or almost zero). Does this mean that fullsimplify should be applied to ALL numeric calculations before //N evaluate is applied? It seems very random, specially if you change the m and n from 43 to 44 or 42, you don't get that error!! how do you explain that?


.



Relevant Pages

  • Re: mathematica too CLEVER in Bessel function integration?
    ... > I tried, in mathematica 5.1, to integrate ... > and obtained only after FullSimplify[] ... ... hypergeometric function is that reading off the coefficient of x^ ... A third advantage is that computing derivatives is simpler. ...
    (sci.math.symbolic)
  • Re: terrible bug in Mathematica (//N), but why????
    ... Without FullSimplify, you are computing something that requires ... far more than 16 decimal digits of precision to get right. ... In particular, under numerical evaluation, an error in the sinor cosby even 1 bit may be magnified to a huge error. ... was wrong, but turned out Mathematica 5 was giving me buggy answers, I ...
    (sci.math.symbolic)
  • Re: terrible bug in Mathematica (//N), but why????
    ... can you explain how such huge error occurs if FullSimplify is not used? ... > N does numerical evaluation to double precision, ... > Your claim that you were using "two exact same expressions" ... >> was wrong, but turned out Mathematica 5 was giving me buggy answers, I ...
    (sci.math.symbolic)
  • Re: MAXIMA rationalizing denominators
    ... Stanley Rabinowitz wrote: ... > I find the same problem with Mathematica. ... You could use RootReduce or FullSimplify. ...
    (sci.math.symbolic)
  • Re: Why I am unwilling to use Mathematica if I can help it
    ... >>fullsimplify is used first, I spent 2 days on a problem thinking my answer ... >>was wrong, but turned out Mathematica 5 was giving me buggy answers, I ...
    (sci.math.num-analysis)

Quantcast