|
[Date Index]
[Thread Index]
[Author Index]
RE: A symbol for Floor
- To: mathgroup at smc.vnet.net
- Subject: [mg36548] RE: [mg36525] A symbol for Floor
- From: "Wolf, Hartmut" <Hartmut.Wolf at t-systems.com>
- Date: Wed, 11 Sep 2002 13:27:29 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
>-----Original Message-----
>From: Jack Goldberg [mailto:jackgold at umich.edu]
To: mathgroup at smc.vnet.net
>Sent: Wednesday, September 11, 2002 9:28 AM
>Subject: [mg36548] [mg36525] A symbol for Floor
>
>
>Hi Group!
>
>A commonly used symbol for the Floor function is a square
>bracket with the
>upper indents removed. Is this symbol part of Mathematica's
>built-in symbols? I
>think not, so then, can it be constructed "by hand".
>
>Jack
>
>
Jack,
yes it is already built-in! Bring up the palette with menu: File > Palettes
> CompleteCharachters; there is a section Operators > General, where you'll
find what you want.
Alternatively type 'esc' l f 'esc' <your expression> 'esc' r f 'esc', or
instead of the esc-sequence use the corresponding mark-ups. For output try
TraditionalForm. If you don't like that for all of your output, you may just
add a formatting rule for Floor:
In[7]:= Unprotect[Floor]
In[8]:=
Floor /: MakeBoxes[Floor[expr_], StandardForm] :=
RowBox[{"\[LeftFloor]", MakeBoxes[expr, StandardForm], "\[RightFloor]"}]
In[9]:= Protect[Floor]
In[11]:= Floor /@ (\[Pi] + \[Lambda])
Out[11]= 3 + \[LeftFloor]\[Lambda]\[RightFloor]
Same thing with Ceiling, BTW.
--
Hartmut
Prev by Date:
Re: X(NumLock)=Mod2 (was Re: Profiler for Mathematica)
Next by Date:
RE: Coloured lines in graphics but black in print
Previous by thread:
Re: A symbol for Floor
Next by thread:
Re: Re: A symbol for Floor
|