Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16415 > unrolled thread
| Started by | Ray Koopman <koopman@sfu.ca> |
|---|---|
| First post | 2014-01-13 06:56 +0000 |
| Last post | 2014-01-13 06:56 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: For 2014? Ray Koopman <koopman@sfu.ca> - 2014-01-13 06:56 +0000
| From | Ray Koopman <koopman@sfu.ca> |
|---|---|
| Date | 2014-01-13 06:56 +0000 |
| Subject | Re: 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
> >
>
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web