MathGroup Archive 2009

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

Search the Archive

Re: Making your own Definitions using Operators without built in

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102379] Re: Making your own Definitions using Operators without built in
  • From: cca at gregosetroianos.mat.br
  • Date: Fri, 7 Aug 2009 05:31:02 -0400 (EDT)

Jerry,

>>Del CenterDot f_:=Div[f], .....then I get an error message that Del
>>cannot be followed by CenterDot f

There are many ways to achieve this in Mathematica. Here goes one quick one
(for V 6.0.2 and above). Unfortunately, I don't have time to explain (nor
refine) the code now, but it works. (Use Tab to move through the slot.)

CreatePalette@
 Button["\[Del]\[SelectionPlaceholder]",
  NotebookApply[InputNotebook[],
   TemplateBox[{"\[SelectionPlaceholder]"}, "Curl",
    DisplayFunction -> (RowBox[{"\[Del]", "\[CenterDot]", #}] &)]]]

Carlos Cesar de Araujo
Gregos & Troianos Educacional
www.gregosetroianos.mat.br
MSN: cca_gregosetroianos at hotmail.com
Belo Horizonte, MG, Brasil
(31) 3283-1122


  • Prev by Date: Re: ListContourPlot3D bug?
  • Next by Date: Re: FrameTicks or LogPlot bug?
  • Previous by thread: Re: video on Presentations by Williams and Park
  • Next by thread: Re: Re: Making your own Definitions using Operators without