MathGroup Archive 2012

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg128044] Re: Begginer's question: Saving a function for later use
  • From: Joug Raw <jougraw at gmail.com>
  • Date: Tue, 11 Sep 2012 02:32:49 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <20120910080540.BEE556843@smc.vnet.net>

Hi Pedro,

You can save your notebook which contains this function as a .m file then
whenever you want  call this function, you just type Get["*.m"] or << *.m
in your working notebook.

Or, you can save it as a notebook and use opennotebook function in your
working notebook.

Hope this helps.


On Mon, Sep 10, 2012 at 10:05 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
>
>




  • Prev by Date: 2 Assumptions for one parameter?
  • Next by Date: Re: A new FrontEnd
  • Previous by thread: Begginer's question: Saving a function for later use
  • Next by thread: Re: Begginer's question: Saving a function for later use