Table[] Why such a hog?
- To: mathgroup at smc.vnet.net
- Subject: [mg3552] Table[] Why such a hog?
- From: newnews at almaden.ibm.com
- Date: Thu, 21 Mar 1996 01:11:49 -0500
- Organization: IBM Almaden Research Center
- Sender: owner-wri-mathgroup at wolfram.com
Seems like the Table[] function for building arrays takes way longer than it ought to. I hope someone can tell me why: The following expression takes around twenty minutes to complete on my RS/6000 workstation: Table[Exp[N[2 Pi I ((i-32)^2 + (j-32)^2)/64]], {i,.001,63.876,.125},{j,.001,63.876,.125}] Why should this take so much resource? Is there a better way to generate an array of function values? What is Mathematica doing that take so long? BTW, the equivalent expression in APL completes on the same machine in less than 6 seconds. Bob Shelby ==== [MESSAGE SEPARATOR] ====