Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10001 > unrolled thread
| Started by | Alexei Boulbitch <Alexei.Boulbitch@iee.lu> |
|---|---|
| First post | 2012-05-09 07:50 +0000 |
| Last post | 2012-05-09 07:50 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: Typesetting built-in functions without evaluating Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2012-05-09 07:50 +0000
| From | Alexei Boulbitch <Alexei.Boulbitch@iee.lu> |
|---|---|
| Date | 2012-05-09 07:50 +0000 |
| Subject | Re: Typesetting built-in functions without evaluating |
| Message-ID | <jod7l0$5em$1@smc.vnet.net> |
Hello, I've been wrestling with mathematica trying to get it to typeset a
partial derivative in traditiaonal form without evaluating it. The closest
I've been able to come is having it output
in[1]:=D[x,y] //TraditionalForm
out[2]:=Hold[ *typesetted partial derivative here* ]
So I can get the unevaluated partial derivative notation to output, but I
can't do it without having the "Hold" mucking it up. How might one go about
this? I've tried all kinds of complicated schemes, and I'm sure I could
hack together some sort of output form that looks like a pd but that is
actually not. But I figure there has to be a simpler solution that I'm
missing.
Also I've tried setting D to HoldAll. It doesn't work for some reason and
I'm not sure why? Evaluation order is still a dark art to me despite having
read that portion of the manual a few times (in my defense I'm not the
sharpest tool in the shed).
Try this:
Defer@D[x, y] // TraditionalForm
\[PartialD]x/\[PartialD]y
HoldForm[D[x, y] // TraditionalForm]
\!\(\*
TagBox[
TagBox[
FormBox[
FractionBox[
RowBox[{"\[PartialD]", "x"}],
RowBox[{"\[PartialD]", "y"}],
MultilineFunction->None],
TraditionalForm],
TraditionalForm,
Editable->True],
HoldForm]\)
Have fun, Alexei
Alexei BOULBITCH, Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG
Office phone : +352-2454-2566
Office fax: +352-2454-3566
mobile phone: +49 151 52 40 66 44
e-mail: alexei.boulbitch@iee.lu
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web