MathGroup Archive 1999

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

Search the Archive

speed

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15593] speed
  • From: Margit <mgfoehle at mch1srv.tuwien.ac.at>
  • Date: Thu, 28 Jan 1999 04:23:24 -0500 (EST)
  • Organization: Vienna University of Technology, Austria
  • References: <77utg2$jnk@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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: BesselK
  • Next by Date: trig asymptotics
  • Previous by thread: Re: BesselK
  • Next by thread: Re: speed