Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16415
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | Ray Koopman <koopman@sfu.ca> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: For 2014? |
| Date | Mon, 13 Jan 2014 06:56:17 +0000 (UTC) |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <lb02mh$dn2$1@smc.vnet.net> (permalink) |
| Lines | 30 |
| Organization | Time-Warner Telecom |
| NNTP-Posting-Date | 13 Jan 2014 07:01:29 GMT |
| NNTP-Posting-Host | b612dfb9.news.twtelecom.net |
| X-Trace | DXC=Q??N4>bKIkEP;Ll>D9?]MBC_A=>8kQj6M;[h;PUXBgbDb4gWQ>GE5;AEFiONJ7[GoF_?]Ud?NAoh@ |
| X-Complaints-To | abuse@twtelecom.net |
| X-Received-Bytes | 1458 |
| X-Received-Body-CRC | 3029267968 |
| Xref | csiph.com comp.soft-sys.math.mathematica:16415 |
Show key headers only | View raw
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