MathGroup Archive 2007

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

Search the Archive

Re: question 2


Expressions with heads that have the Attribute Orderless are
automatically sorted. In this case, I think the culprit is Plus.

On 5/11/07, dimitris <dimmechan at yahoo.com> wrote:
> Let
>
> In[9]:=
> f1 = (o - 8)^4 - (e + 4)^8;
>
> In[10]:=
> f2 = (x - 8)^4 - (y + 4)^8;
>
> Then
>
> In[15]:=
> ?f1
>
> Global`f1
>
> f1 = -(4 + e)^8 + (-8 + o)^4
>
> In[16]:=
> ?f2
>
> Global`f2
>
> f2 = (-8 + x)^4 - (4 + y)^8
>
> Why the f1 and f2 appear different?
>
> The ordering has to do with the letters?
> That is,
> First "e" then "o" in f1, and "x" first and
> then "y" in f2 rather than with the order
> of 4 and 8?
>
> Thanks.
>
> Dimitris
>
>
>


-- 
http://chris.chiasson.name/


  • Prev by Date: 6.0 looks really nice so far.
  • Next by Date: Re: v. 6, third argument to rectangle
  • Previous by thread: question 2
  • Next by thread: Re: question 2