RE: Re: j instead of I
- To: mathgroup at smc.vnet.net
- Subject: [mg34657] RE: [mg34630] Re: [mg34397] j instead of I
- From: "DrBob" <majort at cox-internet.com>
- Date: Fri, 31 May 2002 04:26:39 -0400 (EDT)
- Reply-to: <drbob at bigfoot.com>
- Sender: owner-wri-mathgroup at wolfram.com
This allows you to use j in place of I, but it doesn't cause Mathematica to use j in its outputs. Bobby -----Original Message----- From: Omega Consulting [mailto:omega_consulting at yahoo.com] To: mathgroup at smc.vnet.net Subject: [mg34657] [mg34630] Re: [mg34397] j instead of I 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