Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Numerical analysis gives wrong result' topicStudent Support Forum > General > Archives > "Numerical analysis gives wrong result"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda
01/08/13 07:45am

In Response To 'Re: Re: Numerical analysis gives wrong result'
---------
I was referring only to the computational side.
you cannot expect that with a==0 where a is an approximate number and 0 is an accurate number you will get roundoff errors and other inaccuracies. For the present case it is better (and not to computationally intensive) to use exact numbers, i.s., using rationals
0.1 is replace by 1/10 etc. do not use the decimal point
another issue is not to use Simplify / FullSimplify in the body of the search, since these are time consuming functions and you are looking for the numerical result
I modified your program accordingly, and notice that the printout is much larger
I didn't modify anything else (although I never use For loops), I have no time for this
Moreover, I prefer not to get into the theory (not my field, nor having time), so I do not consider if the algorithmic search is correct, I only referred to the "Mathematica aspect" of your program

Look at the attached notebook
HTH

y

Attachment: For Forum.nb, URL: ,

Subject (listing for 'Numerical analysis gives wrong result')
Author Date Posted
Numerical analysis gives wrong result Hila 01/04/13 2:44pm
Re: Numerical analysis gives wrong result yehdua 01/05/13 2:07pm
Re: Numerical analysis gives wrong result yehuda 01/05/13 5:38pm
Re: Re: Numerical analysis gives wrong result Hila 01/06/13 09:14am
Re: Re: Re: Numerical analysis gives wrong result yehuda 01/08/13 07:45am
Re: Re: Re: Re: Numerical analysis gives wrong ... Hila 01/12/13 3:39pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic