Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #16415 > unrolled thread

Re: For 2014?

Started byRay Koopman <koopman@sfu.ca>
First post2014-01-13 06:56 +0000
Last post2014-01-13 06:56 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: For 2014? Ray Koopman <koopman@sfu.ca> - 2014-01-13 06:56 +0000

#16415 — Re: For 2014?

FromRay Koopman <koopman@sfu.ca>
Date2014-01-13 06:56 +0000
SubjectRe: For 2014?
Message-ID<lb02mh$dn2$1@smc.vnet.net>
Use Range@9 instead of Range[9]

----- Ulrich Arndt <ulrich.arndt@data2knowledge.de> wrote:
> Yes, this is much faster - 5 times on my machine.
> Problem is that we get 141 chars even if we replace the re by b ;-).
> 
> But can someone explain the reason for the huge processing time difference?
> 
> Ulrich
> 
> 
> Am 07.01.2014 um 08:54 schrieb Costa Bravo:
> 
> > Ulrich Arndt wrote:
> >>
> >> 
> l=Range[9];r=StringJoin[Riffle[ToString/@l,#]]&/@Tuples[{"+","-","*","/",""},8];Grid[{#,Extract[r,Position[ToExpression/@r,#]]}&/@(l+2010)]
> >>
> >  faster
> >
> > 
> l=Range[9];re=ToExpression[r=StringJoin[Riffle[ToString/@l,#]]&/@Tuples[{"+","-","*","/",""},8]];Grid[{#,Extract[r,Position[re,#]]}&/@(l+2010)]
> >
> > --
> >  Costa
> >
> 
> 

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web