MathGroup Archive 1999

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

Search the Archive

Re: speed

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15615] Re: speed
  • From: "Yves Gauvreau" <gauy at videotron.ca>
  • Date: Sat, 30 Jan 1999 04:28:19 -0500 (EST)
  • References: <77utg2$jnk@smc.vnet.net> <78pbv2$d0t@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I don't know how to increase the speed of Mathematica. But I can suggest
this insted of the Do loop try x = x * 1.003456^1000000 and this take a
fraction of a second to compute.

Yves


Margit wrote in message <78pbv2$d0t at smc.vnet.net>...
>Hi!
>
>I have a question concerning the numerical speed of Mathematica:
>
>I performed the following calculation
>
>x=0.3;Print[x]; Do[x=x*1.003456,{i,1,1000000}];Print[x]
>
>with Mathematica, it took about 150 seconds.
>
>The same calculation is performed by TurboPascal in 0.4 seconds.
>
>I guess that the difference is caused by the working precision. Does
>anyone know what is the reason for this long duration and how it can be
>changed?
>
>Thanks!
>
>Margit
>
>



  • Prev by Date: Re: How to construct all possible orderings
  • Next by Date: RE: Bug in Det[ ], once more
  • Previous by thread: Re: speed
  • Next by thread: RE: speed