I have a notebook containing some functions, for example:
f[x_] := 2*x g[x_] := x^2
Now I would like to convert this notebook to a package,
functions.m, which I can call with
Get["functions.m"] inside other notebooks, making the functions
How can I do this without writing the package from scratch?
In the File menu there is a sub-menu Save As -> Package, but if I save it, and load it with
Get["functions.m"], nothing seems to happen in the new notebook; i.e., when I try to use the functions, I get:
I guess there is something else that I need to do besides simply saving the notebook containing the function definitions as a package?