I have a package for some computations written in mathematica, the problem is that when I invoke it from notebook (.nb) it doesn't work properly, it works only when invoked within file.m not from file.nb. What's the problem? I thought that should not matter.
Another thing is how do you save the output results generated in file.m? it only saves the input.