Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

A zillion times slower in version 5

  • To: mathgroup at smc.vnet.net
  • Subject: [mg46294] A zillion times slower in version 5
  • From: "Joshua A. Solomon" <J.A.Solomon at city.ac.uk>
  • Date: Fri, 13 Feb 2004 21:57:00 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

In[1]:= bug[x_,{a_,b_,c_,d_}]:=c+(1-c-d)(1-Exp[-(10^((x-a)/20))^b])

Using Mathematica 4...

In[2]:= {$Version, $ReleaseNumber}
Out[2]:= {4.1 for Mac OS X (November 5, 2001),5}

In[3]:= Timing[bug[-8,{-60,3.5,0.5,0.01}]]
Out[3]:= {0. Second,0.99}

Using Mathematica 5...

In[2]:= {$Version, $ReleaseNumber}
Out[2]:= {5.0 for Mac OS X (June 10, 2003),0}

In[3]:= Timing[bug[-8,{-60,3.5,0.5,0.01}]]
Out[3]:= {6.21 Second,0.99}

Six seconds! What is it doing? What is the best way to streamline this?

js


  • Prev by Date: Re: please HELP!!!!
  • Next by Date: Understanding Flatten
  • Previous by thread: Re: please HELP!!!!
  • Next by thread: Re: A zillion times slower in version 5