Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Typesetting bug

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96526] Re: Typesetting bug
  • From: m.r at inbox.ru
  • Date: Mon, 16 Feb 2009 06:52:43 -0500 (EST)
  • References: <gn3blp$prk$1@smc.vnet.net>

replicator... at gmail.com wrote:
> Dear Group,
>
> I don't know whether this "feature" is widely known or not, but it
> surely gave me an hour of scratching my head, buried deep inside a
> calculation:
>
> In[7]:= n = .5;
> x = 1;
>
> ax = 1;
> {(ax^n), x^n, ax^n - x^n}
>
> Out[10]= {1, 1, 0}
>
> In[11]:= max = 1;
> {(max^n), x^n, max^n-x^n}
>
> Out[12]= {1, 1, -1}
>
>
> This inconsistency happens only if exponents are typed in as real
> superscripts with Ctrl+^. A FullForm reveals an underlying Times in
> the last case, which ultimately is responsible for the wrong answer.
> Furthermore, max^n does not work as intended if typed and evaluated in
> one call, as follows:
> max <Ctrl+^> n <enter> x <Shift+Enter>
> because it is interpreted as a product of max^n and x.
>
> Istvan Zachar

Remove "max" from the LimitsPositioningTokens list (Edit|Preferences|
Advanced|Open Option Inspector|Formatting Options|Expression
Formatting|Display Options); otherwise "max" with a superscript is
being treated as an operator.

Maxim Rytin
m.r at inbox.ru


  • Prev by Date: Re: Conditional evaluations of functions
  • Next by Date: Try again to send my message: problems about "for"
  • Previous by thread: Re: Typesetting bug
  • Next by thread: Chain Matrix