MathGroup Archive 1999

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

Search the Archive

Re: Output format of partial derivatives

  • To: mathgroup at
  • Subject: [mg16866] Re: Output format of partial derivatives
  • From: paulh (P.J. Hinton)
  • Date: Mon, 5 Apr 1999 02:24:14 -0400
  • Organization: Wolfram Research, Inc.
  • References: <7e1amq$>
  • Sender: owner-wri-mathgroup at

In article <7e1amq$b7u at>, Christian Zemlin <chr at> writes:

> I am working with expressions that contain MANY partial derivatives, and
> they would be much easier to read if instead of Mathematica's notation,
> 	(1,1)
>        f     (x,y)
> I could get something like
>       f
>        xy
> Does anybody know how to get such output?

Change the low-level formatting rules for a derivative expressed in

MakeBoxes[Derivative[indices__][f_][vars__], TraditionalForm] := 
  SubscriptBox[MakeBoxes[f, TraditionalForm], 
        Flatten[Thread[dummyhead[{vars}, Partition[{indices}, 1]]] /. 
            dummyhead -> Table]]]]?

Here is how you exploit this formatting code.

TraditionalForm[Derivative[1, 1][f][x, y]]

This should yield output as you describe.

P.J. Hinton	
Mathematica Programming Group		paulh at
Wolfram Research, Inc.
Disclaimer: Opinions expressed herein are those of the author alone.

  • Prev by Date: Re: Problems with ContourPlot
  • Next by Date: Re: semi-transparent surfaces
  • Previous by thread: Output format of partial derivatives
  • Next by thread: Re: Output format of partial derivatives