MathGroup Archive 1999

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

Search the Archive

Re: Abs Symbol

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16486] Re: Abs Symbol
  • From: paulh (P.J. Hinton)
  • Date: Tue, 16 Mar 1999 03:59:41 -0500
  • Organization: Wolfram Research, Inc.
  • References: <7cd5ou$o43@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

In article <7cd5ou$o43 at smc.vnet.net>, Lawrence Walker 
<lwalker701 at earthlink.net> writes:

> Is there a traditional version, '| |', of the function
> Abs[]?

The special characters \[LeftBracketingBar] and \[RightBracketingBar]
will be interpreted as absolute value if they appear within a 
TraditionalForm FormBox:

In[1]:=  FormBox[RowBox[{"\[LeftBracketingBar]", RowBox[{"-", "3"}], 
          "\[RightBracketingBar]"}], TraditionalForm] // MakeExpression

Out[1]= HoldComplete[Abs[-3]]

The way to take advantage of this is to use the front end menu command
sequence

	Cell -> Default Input Format Type -> TraditionalForm

and then use the keyboard shortcuts Esc l| Esc and Esc r| Esc to 
enter the bracketing bars.

--
P.J. Hinton	
Mathematica Programming Group		paulh at wolfram.com
Wolfram Research, Inc.			http://www.wolfram.com/~paulh/
Disclaimer: Opinions expressed herein are those of the author alone.


  • Prev by Date: Re: Caution with Block vs Module
  • Next by Date: Re: "f[x_]:= 2 x" vs. "f = 2 #&"
  • Previous by thread: Abs Symbol
  • Next by thread: Re: Abs Symbol