MathGroup Archive 2008

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

Search the Archive

Re: Is there a way to make Mathematica commands and functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93163] Re: Is there a way to make Mathematica commands and functions
  • From: David Bailey <dave at Remove_Thisdbailey.co.uk>
  • Date: Wed, 29 Oct 2008 05:50:29 -0500 (EST)
  • References: <ge6nf7$lhs$1@smc.vnet.net>

stpatryck wrote:
> Hello All,
> 
> I'm a newbie to Mathematica and find having to capitalize Mathematica
> commands and functions somewhat annoying.
> 
> Is there some way or program or module or notebook or whatever out
> there that will make Mathematica accept lower case commands and
> functions without my having to redefine all the functions?
> 
> Please e-mail me at stpatryck at gmail.com with any suggestions or
> solutions.
> 
> Thanks very much in advance.
> 
> 
There is nothing to stop you defining your own commands to do the things 
that you want. The capitalisation mechanism is designed to avoid clashes 
between your commands and variable names and system ones. For example, 
prior to version 6, the was no command called Manipulate, so if you had 
written something using that name, it would have stopped working when 
you installed v 6.

For simple functions, your private definitions can be as simple as

sin=Sin;

but you need to take a bit more care with commands that use non-standard 
evaluation - such as If.

Remember that you can place useful initialisations in the kernel init.m 
file to get them pre-evaluated before every run, or you can start each 
notebook with a command such as Get[<some file of initialisation code>]. 
You absolutely don't need to start from scratch each time!

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Re: Hypergeometric2F1
  • Next by Date: Re: Function pure for Select
  • Previous by thread: Re: Is there a way to make Mathematica commands and functions
  • Next by thread: Re: Re: Is there a way to make Mathematica commands and functions