MathGroup Archive 2002

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

Search the Archive

Re: j instead of I

  • To: mathgroup at smc.vnet.net
  • Subject: [mg34630] Re: [mg34397] j instead of I
  • From: Omega Consulting <omega_consulting at yahoo.com>
  • Date: Thu, 30 May 2002 02:55:14 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

At 02:50 AM 5/18/2002, Oliver Friedrich wrote:
>Hallo,
>
>doing some electrical engineering, I would like to have the symbol
>j=sqrt(-1) instead of the I. What's the best way to do this permanent, so
>each time Mathematica starts it is done already?
>
>Oliver Friedrich

This can be accomplished by creating an autoload package. This is a 
Mathematica package (*.m) placed in one of several possible locations. The 
following command gives a list

In[1]:=
Map[ToFileName[#, "init.m"] &, {
   {$TopDirectory, "AddOns", "Autoload", "*", "Kernel"},
   {$PreferencesDirectory, "AddOns", "Autoload", "*", "Kernel"},
   {$TopDirectory, "Configuration", "Kernel"}
}]

where * represents any directory name. So you can create as many autoload 
packages as you want. In your package, you want the commands formatted in 
InputForm. So for you, the init.m should look like

j=Sqrt[-1]

--------------------------------------------------------------
Omega Consulting
"The final answer to your Mathematica needs"

Spend less time searching and more time finding.
http://www.wz.com/internet/Mathematica.html



  • Prev by Date: Finding Maxima in tensors
  • Next by Date: Help with Select[]
  • Previous by thread: j instead of I
  • Next by thread: RE: Re: j instead of I