Items tagged with remember remember Tagged Items Feed

I've got a worksheet in which I have invested many hours of CPU execution time and if the computer goes down, or Maple fails for some reason, I'll lose it all.

If this happens I would like to be able to continue the calculation from where I left off.

By saving the worksheet periodically, I can save all the commands, but not the results, so if I have to restart, I'll have to wait many hours before the worksheet catches up to where it left off.

In ancient versions of Maple, you used to be able to save an executed worksheet including results (I sort of remember that you wrote a file with the extension ".M")  but the new help pages say that is now different from what it used to be. Obviously I can "save" individual symbols to a file, but for a complicated worksheet  that gets complicated.

I've read about "maplet" files, but that doesn't seem to fill the bill either.

So, is there any simple way to save a worksheet so you can continue seamlessly from where you left off after a crash, with all the previous results intact?

 

``

restart:

 

C=2;

C = 2

(1)

w[2]*s[1]+w[1]*s[2];

s[1]*w[2]+s[2]*w[1]

(2)

C=3;

C = 3

(3)

(w[3]*s[2]+w[2]*s[3])*s[1];

(s[2]*w[3]+s[3]*w[2])*s[1]

(4)

C=4;

C = 4

(5)

((w[4]*s[3]+w[3]*s[4])*s[2]+w[2]*s[3]*s[4] )*s[1];

((s[3]*w[4]+s[4]*w[3])*s[2]+w[2]*s[3]*s[4])*s[1]

(6)

C=5;

C = 5

(7)

(((w[5]*s[4]+w[4]*s[5])*s[3]+w[3]*s[4]*s[5] )*s[2]+w[2]*s[3]*s[4]*s[5] )*s[1];

(((s[4]*w[5]+s[5]*w[4])*s[3]+w[3]*s[4]*s[5])*s[2]+w[2]*s[3]*s[4]*s[5])*s[1]

(8)

C=6;

C = 6

(9)

((((w[6]*s[5]+s[6]*w[5])*s[4]+w[4]*s[5]*s[6])*s[3]+w[3]*s[4]*s[5]*s[6])*s[2]+w[2]*s[3]*s[4]*s[5]*s[6])*s[1];

((((s[5]*w[6]+s[6]*w[5])*s[4]+s[5]*s[6]*w[4])*s[3]+s[4]*s[5]*s[6]*w[3])*s[2]+s[3]*s[4]*s[5]*s[6]*w[2])*s[1]

(10)

 

``


Download pattern.mw

 

This probably isnt too difficult to write a procedure to generate the expression, given C=2,3,4,5,...

But I may be thinking too much and stuck...

 

Also, I am thinking that if it is possible to use something like a "fibonacci sequence", in the famouse example here, which uses the in a procedure. Probably, we dont need to use this.

 

Thanks,

 

casper

 

I have a procedure which accepts arguments of a (created by myself) type which are records, like so:

Subs:=proc(eqn::seq(equation),elemt::Element,$);
...

Here "Element" is  type I have defined; it is a record with certain fields present.

My question: will this work with option remember? I have the procedure sort-of working without the remember option, but I need to make it work recursively (the Element record can have fields which contain names of other records of type Element...

Dear all,
Some time ago I asked a question on maple primes concerning handling the numeric solutions of dsolve procedure.

They sent me to the discussion on option remember and indeed this helped a lot.
However there is another issue.

The method I am trying to implement requires iterative calls to dsolve/numeric with one of the functions defined from the previous...

One useful feature of the `evalf` command is that it remembers previous results. But it also stores the current value of Digits as well as its input argument, to be associated with the remembered result.

There are two reasons for this. The fancier reason is so that, when Digits is reduced from that of an earlier successful computation, `evalf` can simply round off the earlier result to the desired number of decimal digits. The more basic reason is that `evalf` might...

please help me here

we want a "remember table assignment for the first derivative evaluated at a point a1" for example

D(f)(a1):=0

but using this command maple creates a proc

for example using the command

f(a1):=0:

maple asks : 1. function def. 2. remember table assignment

but using D(f)(a1) :=0 just creates a function def.

Page 1 of 1