Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: HoldForm Obscurities

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34026] Re: HoldForm Obscurities
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Sat, 27 Apr 2002 00:56:29 -0400 (EDT)
  • References: <aaavjj$mck$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

To emphasize further Jens-Peer's observation that outputs like

    a = HoldForm[  1 2 1 0  1.0 2 1]

        2 0 1. 2

is to do with formatting:

    FullForm[HoldForm[  1 2 1 0  1. 2 1]]

        HoldForm[Times[1,2,1,0,1.`,2,1]]

Note that

    List@@@a

        {1,2,1,0,1.,2,1}

Compare

    1.0 x

        1. x

with

    1 x

        x

But it is interesting that presence of 0 does not result in the output being
formatted as 0, inspite of

    0 x

        0

--
Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565






  • Prev by Date: InequalityGraphics
  • Next by Date: Re: invisible graphics
  • Previous by thread: RE: HoldForm Obscurities
  • Next by thread: Find Doesn't Find Substrings That Begin With Integers?