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


Groups > comp.soft-sys.math.mathematica > #9534

Re: Text["x=" x] reverses order of terms producing the string: 1.2 x=

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!news1.google.com!newsfeed2.dallas1.level3.net!newsfeed3.dallas1.level3.net!news.level3.com!newsfeeds.sol.net!post2.nntp.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail
From Narasimham <mathma18@hotmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Text["x=" x] reverses order of terms producing the string: 1.2 x=
Date Mon, 9 Apr 2012 09:34:20 +0000 (UTC)
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <jluaes$rq5$1@smc.vnet.net> (permalink)
References <jlrhfc$en3$1@smc.vnet.net>
Lines 16
NNTP-Posting-Date 09 Apr 2012 09:36:38 GMT
NNTP-Posting-Host 146a765a.news.twtelecom.net
X-Trace DXC=N6@8=cGJ6:Q?R0fM_WmQ_VC_A=>8kQj6]Y;@_o827nGS9>lfMYS8jP^EFiONJ7[GoVO6696OMN09_
X-Complaints-To abuse@twtelecom.net
X-Received-Bytes 1450
Xref csiph.com comp.soft-sys.math.mathematica:9534

Show key headers only | View raw


On Apr 8, 1:15 pm, Daniel <daniel.bent...@gmail.com> wrote:
> I don't yet understand the subtleties of evaluation order, but this seems unintuitive.
>
> I've managed to get the representation I want with Text[StringJoin["x= ", ToString[x]]],
> but would prefer both to understand what's happening and reduce verbosity.
>
> thanks.

Left to right, tail of first joined to head of second.

XX = Range[1, 9, 2]
YY = Range[5, 50, 10]
Join[ XX, YY]

Narasimham

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Text["x=" x] reverses order of terms producing the string: 1.2 x= Daniel <daniel.bentsur@gmail.com> - 2012-04-08 08:15 +0000
  Re: Text["x=" x] reverses order of terms producing the string: 1.2 x= Narasimham <mathma18@hotmail.com> - 2012-04-09 09:34 +0000

csiph-web