Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16415
| From | Ray Koopman <koopman@sfu.ca> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: For 2014? |
| Date | 2014-01-13 06:56 +0000 |
| Message-ID | <lb02mh$dn2$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: For 2014? Ray Koopman <koopman@sfu.ca> - 2014-01-13 06:56 +0000
csiph-web