Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11722 > unrolled thread
| Started by | Rodrigo AP <digorna@gmail.com> |
|---|---|
| First post | 2012-09-13 07:41 +0000 |
| Last post | 2012-09-14 04:15 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Begginer's question: Saving a function for later use Rodrigo AP <digorna@gmail.com> - 2012-09-13 07:41 +0000
Re: Begginer's question: Saving a function for later use David Bailey <dave@removedbailey.co.uk> - 2012-09-14 04:15 +0000
| From | Rodrigo AP <digorna@gmail.com> |
|---|---|
| Date | 2012-09-13 07:41 +0000 |
| Subject | Re: Begginer's question: Saving a function for later use |
| Message-ID | <k2s2np$dph$1@smc.vnet.net> |
SetDirecrory[your directory] Save["test.m",test] to load latter: <<test.m 2012/9/10 <pedro.roberto@campus.ul.pt> > 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 > > -- Rodrigo
[toc] | [next] | [standalone]
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Date | 2012-09-14 04:15 +0000 |
| Message-ID | <k2ub1f$h9j$1@smc.vnet.net> |
| In reply to | #11722 |
On 13/09/2012 08:41, Rodrigo AP wrote: > SetDirecrory[your directory] > > Save["test.m",test] > > to load latter: > > <<test.m > > 2012/9/10<pedro.roberto@campus.ul.pt> > >> 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 >> >> > > Furthermore, you can open the .m file with the File/Open menu directly in the frontend, and edit it much as a notebook. I prefer to do this rather than use real notebooks, because the saved .m file isn't cluttered with output cells. It can, however contain headings, and these are stored as special comments in the saved .m file. David Bailey http://www.dbaileyconsultancy.co.uk
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web