Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: question 2

  • To: mathgroup at smc.vnet.net
  • Subject: [mg75841] Re: [mg75821] question 2
  • From: "Chris Chiasson" <chris at chiasson.name>
  • Date: Fri, 11 May 2007 06:22:45 -0400 (EDT)
  • References: <200705110930.FAA06120@smc.vnet.net>

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/


  • References:
  • 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