MathGroup Archive 2012

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

Search the Archive

Re: Begginer's question: Saving a function for later use


On 9/10/2012 3:25 AM, pedro.roberto at campus.ul.pt wrote:
> Hello,
> I'm just getting started on Mathematica and trying to define a function for later use.
>The function is just:
>
> test[x_]:=x^2
>
> While I don't close mathematica, I can use the function on my notebooks
>but when I close it, the function disappers, I tried to save a .m file
>with it but It didn't work. What do I do?
>
> Thanks for time,
> Pedro
>


Just save the notebook. It will have extension .nb

File->Save As-> foo.nb

Then when you open foo.nb again, the function will be there.

--Nasser




  • Prev by Date: Re: How on Earth?
  • Next by Date: Re: Sum command
  • Previous by thread: Re: Begginer's question: Saving a function for later use
  • Next by thread: Re: Begginer's question: Saving a function for later use