# Question:Maple's Stubborn Retention of Old Variable Data / Assignments -- WHY ?

## Question:Maple's Stubborn Retention of Old Variable Data / Assignments -- WHY ?

Before doing an explore-plot command I had given constant or expression assignments to certain parameters in preliminary statements, e.g.

k = 4* 10-5 ;

mpgo = 45;

mpgave = mpgo - k*(md /2 );

mpgmave = mpgo - k*(m / 2);

Then I did an explore-plot :

Explore(plot(7.28*m*( (1/mpgmave) - (1/mpgave) ) , m=0..200000), parameters=[md = 150000..200000]);

But this didn't allow me to vary md without losing the plot, so I deleted the first 4 assignment statements above and rewrote the Explore-plot command with  mpgave and mpgmave parameters expressed in terms of k and mpgo :

Explore(plot(7.28*m*( (1/(mpgo - k*m/2 ) - (1/mpgo - k*md/2) ) ), m=0..200000), parameters=[k=1/3000 ..1/2000, mpgo = 40..50] ) ;

On entering the formula, I get the error message :

Error invalid input : Explore expects value for keyword parameter parameters to be of type {NoUserValue, list(name = range(realcons))}, but received [45 = 40..50, 1/2500 = 1/3000 ..1/2000, md = 150000..200000]

Since I had deleted these prior assignment values, I can't understand why Maple is retaining them and doing its own work (or outputing error messages) on the basis of the original data . . . .

Now, when I opened a new worksheet and put the above Explore-plot command on it, it all worked out fine.

Seems Maple is not obeying corrections made to assignments to variables.

This is worrying as if it happens inside a large worksheet, can we really start all over again ?

P.S. Why can't we cut and paste to this forum ?

It really makes things awkward typing all a formula.

﻿