Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9368

Re: typesetting derivative at a value

From Barrie Stokes <Barrie.Stokes@newcastle.edu.au>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: typesetting derivative at a value
Date 2012-04-03 08:48 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jledgp$gvh$1@smc.vnet.net> (permalink)
References <201204020825.EAA04243@smc.vnet.net>

Show all headers | View raw


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@smc.vnet.net>,
Alexei Boulbitch <Alexei.Boulbitch@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@iee.lu

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: typesetting derivative at a value Barrie Stokes <Barrie.Stokes@newcastle.edu.au> - 2012-04-03 08:48 +0000

csiph-web