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