Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #11698 > unrolled thread

Begginer's question: Saving a function for later use

Started bypedro.roberto@campus.ul.pt
First post2012-09-10 08:25 +0000
Last post2012-09-11 07:10 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Begginer's question: Saving a function for later use pedro.roberto@campus.ul.pt - 2012-09-10 08:25 +0000
    Re: Begginer's question: Saving a function for later use "Nasser M. Abbasi" <nma@12000.org> - 2012-09-11 07:10 +0000

#11698 — Begginer's question: Saving a function for later use

Frompedro.roberto@campus.ul.pt
Date2012-09-10 08:25 +0000
SubjectBegginer's question: Saving a function for later use
Message-ID<k2k85s$16k$1@smc.vnet.net>
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

[toc] | [next] | [standalone]


#11708

From"Nasser M. Abbasi" <nma@12000.org>
Date2012-09-11 07:10 +0000
Message-ID<k2mo4n$551$1@smc.vnet.net>
In reply to#11698
On 9/10/2012 3:25 AM, pedro.roberto@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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web