MathGroup Archive 2004

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

Search the Archive

Re: Q:Changing Mathematica default terms arrangement

  • To: mathgroup at smc.vnet.net
  • Subject: [mg52788] Re: [mg52741] Q:Changing Mathematica default terms arrangement
  • From: "David Park" <djmp at earthlink.net>
  • Date: Mon, 13 Dec 2004 04:22:46 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Diego,

Use TraditionalForm.

xc[i_] := (xn[i] + xn[i - 1])/2
deno = Factor[(xc[i + 1] - xc[i])]
% // TraditionalForm

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 

From: Diego Luego [mailto:dluego at yahoo.es]
To: mathgroup at smc.vnet.net

Hello,

  I am wondering if it is possible to ask Mathematica
the following:

1.- In the output below (Out[7]), instead of the Mathematica
    default arrangement of terms in the numerator, I would
    like to obtain
                   xn[1 + i] - xn[i - 1].


In[6]:= xc[i_] := (xn[i] + xn[i-1])/2

In[7]:= deno = Factor[(xc[i+1] - xc[i])]

        -xn[-1 + i] + xn[1 + i]
Out[7]= -----------------------
                   2

2.- I would like to be able to tell Mathematica to show the
    answer of output Out[8] in the form
      Fc[1 + i] - Fc[i]
      -----------------------
      xn[1 + i] - xn[i - 1]
      -----------------------
               2

In[8]:=  a = (Fc[i+1] - Fc[i])/deno

        2 (-Fc[i] + Fc[1 + i])
Out[8]= -----------------------
        -xn[-1 + i] + xn[1 + i]


Thanks for your help.

Diego




  • Prev by Date: Re: Solve bug?
  • Next by Date: Re: Sorting question
  • Previous by thread: Q:Changing Mathematica default terms arrangement
  • Next by thread: defining variables as Real