Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*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 2005

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

Search the Archive

compile / optimize

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

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
Frank


  • 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