Dear "og.",

On 9 Apr., 12:47, "og." <[EMAIL PROTECTED]> wrote:
> I am using sage in windows. I use sage with vmware. I have very very
> little information about sage and linux. I want to write an algorithm
> and be able to run it using sage. But when I try to save my work in
> sage it saves only the objects not the whole thing.

Just for completeness, you may learn more about saving individual
objects or sessions in 
http://modular.math.washington.edu/sage/doc/html/tut/node38.html#ch:shell
following the links to subsections 3.8 and 3.9.

However, as you correctly observed, saving concerns the actual state
of the objects and uses a format that is not human readable, so this
is not what you want.

If you work in direct interaction with sage (i mean with the sage
*console*, i don't use the notebook), you may easily recall and edit
your previous commands:

> Say I did the following:
>
> q=4
> F=GF(q, 'u')

Now you may quit Sage and restart, and then you type
q=
followed by the up-arrow. This will show you the most recent command
line that starts with "q=", and you may easily edit it.

This is, however, only a solution for small pieces of code. If you
want to write actual programs, you may do so using your favourite text
editor (i mean *ascii* text, so i guess Word(TM) wouldn't work) to
create a file, and 
http://modular.math.washington.edu/sage/doc/html/tut/node56.html#sec:loadattach
and the following sections tell you how you can get the code into
sage.

> I want to save this and be able to change q to some other number
> later, and run it in sage. Even if I can write the algorithm somewhere
> else and copy paste inside the sage, it would be ok. But I cant even
> do copy paste.

What exactly happens if you try to do copy and paste? Does it result
in an error? And what does the error message tell?

Usually (at least in the sage console) it is even possible to copy and
paste your computations *including* the prompts ("sage:"). So it is
surprising for me that it doesn't work for you.

Yours
    Simon

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to