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=

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 2012-04-09 09:34 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jluaes$rq5$1@smc.vnet.net> (permalink)
References <jlrhfc$en3$1@smc.vnet.net>

Show all headers | 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