 |
|
List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] Re: From output to input
| [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
|
[View Complete Thread]
Previous by date: [MUG] Re: Import RTF files into maple., Carl Devore
Next by date: [MUG] Re: Logplot to file, Robert Israel
Previous thread: [MUG] Two bugs in evalapply(), Helmut Kahovec
Next thread: [MUG] Logplot to file, Emilio Sanchez
|
|
|