MathGroup Archive 2012

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

Search the Archive

Re: typesetting derivative at a value

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125799] Re: typesetting derivative at a value
  • From: Barrie Stokes <Barrie.Stokes at newcastle.edu.au>
  • Date: Tue, 3 Apr 2012 04:46:33 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201204020825.EAA04243@smc.vnet.net>

Hi

How about

Needs[ "Notation`" ]

Notation[ParsedBoxWrapper[
RowBox[{"exp_", 
SubscriptBox["\[VerticalSeparator]", 
RowBox[{"x_", "=", "y_"}]]}]] \[DoubleLongLeftRightArrow] ParsedBoxWrapper[
RowBox[{"exp_", "/.", 
RowBox[{"{", 
RowBox[{"x_", "->", "y_"}], "}"}]}]]]

\!\(
\*SuperscriptBox[\(x\), \(2\)]
\*SubscriptBox[\(\[VerticalSeparator]\), \(x = 3\)]\)

\!\(\(
\*SubscriptBox[\(\[PartialD]\), \(x\)]\ 
\*SuperscriptBox[\(x\), \(3\)]\)
\*SubscriptBox[\(\[VerticalSeparator]\), \(x = 2\)]\)

\!\(\(
\*SubscriptBox[\(\[PartialD]\), \(x\)]\ Sin[\ x\ ]\)
\*SubscriptBox[\(\[VerticalSeparator]\), \(x = \[Pi]\)]\)

\!\(\(
\*SubscriptBox[\(\[PartialD]\), \(t\)]\ Sin[\ 
\*SuperscriptBox[\(t\), \(3\)]\ ]\)
\*SubscriptBox[\(\[VerticalSeparator]\), \(t = \[Pi]\)]\)

or

Notation[ParsedBoxWrapper[
RowBox[{"exp_", 
SubscriptBox["\[VerticalSeparator]", "y_"]}]] \[DoubleLongLeftRightArrow] 
  ParsedBoxWrapper[
RowBox[{"exp_", "/.", 
RowBox[{"{", 
RowBox[{"x", "->", "y_"}], "}"}]}]]]

\!\(
\*SuperscriptBox[\(x\), \(2\)]
\*SubscriptBox[\(\[VerticalSeparator]\), \(3\)]\)

\!\(\(
\*SubscriptBox[\(\[PartialD]\), \(x\)]\ 
\*SuperscriptBox[\(x\), \(3\)]\)
\*SubscriptBox[\(\[VerticalSeparator]\), \(2\)]\)

\!\(\(
\*SubscriptBox[\(\[PartialD]\), \(x\)]\ Sin[\ x\ ]\)
\*SubscriptBox[\(\[VerticalSeparator]\), \(\[Pi]\)]\)

The trouble with the second version is that you don't / can't specify the dummy variable. The first version is better, being completely explicit, IMHO.

Cheers

Barrie

>>> On 02/04/2012 at 6:25 pm, in message <201204020825.EAA04243 at smc.vnet.net>,
Alexei Boulbitch <Alexei.Boulbitch at iee.lu> wrote:
> Hi,
> 
> I'm wanting to typeset a derivative at a point, shown with a tall vertical 
> bar to the right of the derivative (in traditional form), with the values at 
> the bottom right of the bar in subscript size. I've tried using :|: et al, 
> but they're never tall enough. Is there any way to do this?
> 
> Thanks,
> 
> Antony Blakey.
> 
> Hi, Antony,
> 
> Is this:
> 
> \!\(\(A'\) \((x)\)
> \*SubscriptBox[\(\[LeftBracketingBar]\),
> SubscriptBox[\(x\), \(0\)]]\)
> 
> the form you are looking for? If yes, Make the vertical bar using 
> Menu/Palette/Writing Assistant/Typesetting/x and choose there the button of 
> the first column and 5th row as the vertical bar. You write the expression 
> you need, then put this bar, then press Ctrl+underscore and put there the 
> point notation. In my case it was x0.
> 
> 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 at iee.lu




  • Prev by Date: Re: recursively solve equation and save the values only
  • Next by Date: Re: recursively solve equation and save the values only
  • Previous by thread: Re: typesetting derivative at a value
  • Next by thread: Re: typesetting derivative at a value