MathGroup Archive 2002

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

Search the Archive

Re: HoldForm Obscurities


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?