Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Education > Science > Re: -- $1000 ch...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1807 of 1945
Post > Topic >>

Re: -- $1000 challenge on a specific Mathematica 6 class of defects

by giovanni resta <g.restaCUT@[EMAIL PROTECTED] > Mar 16, 2008 at 09:57 AM

Vladimir Bondarenko wrote:

> Cyber Tester announces that it will pay a prize of $1000 to
> the first public re****ter of a Mathematica 6 timing-depending
> defect. 
>   Timing[YourSolution]   (* input #1 *)
> and
>   YourSolution           (* input #2 *)
> yield mathematically non-identical results, or one of the
> above inputs crashes Mathematica, or makes it running for
> an unreasonably long span of time like hours, or presents
> any Mathematica bug.

I have found what I think is a at least
a fraction of a solution :-)  (I'm not that greedy).

There are several inputs such that
Timing[Inp] takes to compute about twice the time it takes
Inp. This is a curious discrepancy.

To measure the elapsed time I used both the linux "time" function
and the Mathematica TimeUsed[] function.
In every case I start a new session of Mathematica to avoid
chaching side-effects.

For example,
t = TimeUsed[];
Integrate[Sinc[E x+Pi] Exp[-x^2], {x, -Infinity, Infinity}]
TimeUsed[]-t

gives about 89 seconds, while
t = TimeUsed[];
Timing[Integrate[Sinc[E x+Pi] Exp[-x^2],{x,-Infinity,Infinity}]]
TimeUsed[]-t

took about 173 seconds to finish, and the time returned by
Timing is about 100 seconds.

If one has patience enough, then complicating a little
the function, like for example,
Integrate[Sinc[E x+Pi] Cos[Pi x/3+E] Exp[-x^2],{x,-Infinity,Infinity}]
increases the above running times of about 9 times.

giovanni
 




 1 Posts in Topic:
Re: -- $1000 challenge on a specific Mathematica 6 class of defe
giovanni resta <g.rest  2008-03-16 09:57:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 19:21:26 CST 2008.