Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

compile / optimize

  • To: mathgroup at
  • Subject: [mg53593] compile / optimize
  • From: Frank Brand <frank.brand at>
  • Date: Wed, 19 Jan 2005 02:00:10 -0500 (EST)
  • References: <comgvp$9hg$> <copavk$ps8$>
  • Sender: owner-wri-mathgroup at

Dear mathgroup members,

can anybody give me an advice how to generally

1.optimize (using the optimization package "optimize.m") and after that
2. compile pieces of code like

Module[{t}, t = x; Do[t = (t + x/t)/2, {n}]; t]

Applying the two-step approach to the code above with a given n (=15) 
there is a speed up ratio of 8500 compared with the original exprssion.

Is it possible to apply this procedure to general expressions?

Thanks in advance

  • Prev by Date: Function Fitting To 3D Data
  • Next by Date: Re: LegendreP -- up to which order?
  • Previous by thread: Re: Re: Function Fitting To 3D Data
  • Next by thread: Re: compile / optimize