 |
|
List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] From output to input
| [MUG] From output to input |
|
Author: Ascenzi
Posted: Thu, 05 Dec 2002 11:52:49 PST
|
>> From: "ascenzi"
I would like to make the output of file1 the input of independent file2.
For instance,
in file1 I have:
> 3+2;
which returns 5.
Now I want 5 to be the input in file2 without having to rerun file1 every
time I need 5 in file2.
I have used writeto(file2). If I then open file2 as Maple Text, I do not
see 5. If I then open file2 as Text Only I see 5 in blue. Then I need
to copy and paste 5 manually after the > to make it appear in red as input.
Is there a better automatic way?
Maria-Grazia Ascenzi
Biomechanics Research
UCLA
|
| [MUG] Re: From output to input |
|
Author: Maple User Group
Posted: Thu, 12 Dec 2002 13:03:10 -0500
|
>> From: Maple User Group "maple_gr"
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Fri, 6 Dec 2002 23:47:34 -0500 (EST)
From: Carl Devore "devore"
To: "maple-list"
Subject: From output to input
On Thu, 5 Dec 2002 "ascenzi" wrote:
> I would like to make the output of file1 the input of independent file2.
> For instance,
> in file1 I have:
> > 3+2;
> which returns 5.
> Now I want 5 to be the input in file2 without having to rerun file1 every
> time I need 5 in file2.
>
> I have used writeto(file2). If I then open file2 as Maple Text, I do not
> see 5. If I then open file2 as Text Only I see 5 in blue. Then I need
> to copy and paste 5 manually after the > to make it appear in red as input.
> Is there a better automatic way?
Begin each line that you write to file2 with ">". Then open file2 as
Maple Text.
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
Date: Sun, 8 Dec 2002 01:38:50 -0800 (PST)
From: Robert Israel "israel"
To: "maple-list"
Subject: From output to input
I think what you should do is use "save" and "read", rather than
"writeto". The results you want to save will have to be assigned to
variables. Then "read" will give these variables the saved values.
For example:
> res1:= 3+2;
> save res1, "file2";
and then
> read("file2");
will result in
res1 := 5
Robert Israel "israel"
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2
|
Previous by date: [MUG] Re: two bugs i found, Maple User Group
Next by date: [MUG] Re: Goodstein sequence, Maple User Group
Previous thread: [MUG] Curious simplification, Greg Gamble
Next thread: [MUG] Goodstein sequence, Joe
|
|
|