0
$\begingroup$

I wrote a very simple function that I would like to act as if it were one of the default functions that came with Mathematica, so that you don't have to load or import any package before you make use of it. The reason is, the function is so simple, that its almost just as easy to just re-write the function as it is to import a file every time. It would be nice though if I just didn't have to do anything.

Is there any way to achieve this behavior?

$\endgroup$
  • $\begingroup$ $UserBaseDirectory <> "\\Kernel\\init.m" I usually put <<MyPackages` here. $\endgroup$ – HyperGroups May 22 '13 at 13:10
4
$\begingroup$

You could add it to the initialization file. See more in the documentation: http://reference.wolfram.com/mathematica/ref/file/init.m.html

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.