Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*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 1996

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

Search the Archive

Re: functional code

  • To: mathgroup at smc.vnet.net
  • Subject: [mg4895] Re: functional code
  • From: Clemens Frey <Clemens.Frey at uni-bayreuth.de>
  • Date: Fri, 4 Oct 1996 00:17:34 -0400
  • Organization: uni-bayreuth.de
  • Sender: owner-wri-mathgroup at wolfram.com

Xah Lee wrote:
> 
> Some timing comparisons on elementary issues.
> 
> ...
>


Dear Xah,
I don't know exactly what you intend with these code fragments, and I
was not
able to test the Timing for the following, but why don't you use just
the Table-
function ? Or try this:

n = 5000;
li = {};
a5 = Nest[ (li = Flatten[{li,#}])&, 0, n] // Flatten // Timing;

As mentioned above, I could not test this, so if it's foo code, forget
it.
Let me know what you think about it.

Clemens Frey
(-: Clemens.Frey at uni-bayreuth.de :-)

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: Re: programming competition
  • Next by Date: Conjugate
  • Previous by thread: Evaluation control in Switch
  • Next by thread: Conjugate