 |
|
List Archives > 
Maple User Group List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[MUG] gamma
| [MUG] gamma |
|
Author: Norbert Van Den Bergh
Posted: Wed, 26 Jun 2002 11:18:35 +0200
|
>> From: Norbert Van den Bergh "norbert.vandenbergh"
Does anyone know how to tell Maple 7 that it should regard gamma as an
arbitrary parameter (possibly complex) and not as 0.5772156649... ?
I spend some time trying stuff like
> restart:
> constants := op({constants} minus {gamma});
> unprotect(gamma): gamma := 'gamma':
> unassign(`evalf/constant/gamma`):
> forget(`type/EvalfableProp`, gamma):
> forget(`type/realcons`, gamma):
> forget(`simpl/simpl/Im/is`, gamma):
> forget(evalf, gamma):
but conjugate(gamma) persists in returning gamma rather than "gamma
bar". The reason is -I think- that evalf is called, which decides that
gamma is real. I don't succeed however in convincing evalf to forget
what it knows about gamma ...
Any help would be greatly appreciated,
Norbert Van den Bergh
Fac. of Applied Sciences
University of Gent, Belgium.
|
| [MUG] Re: gamma |
|
Author: Robert Israel
Posted: Thu, 27 Jun 2002 11:48:48 -0700
|
>> From: Robert Israel "israel"
Well, I think this does it:
> forget(`simpl/simpl/Im/is`,gamma);
forget(`simpl/simpl/Re/is`,gamma);
forget(`type/EvalfableProp`,gamma);
unassign(`evalf/gamma`);
`evalf/constant/gamma`:= proc() gamma end;
constants:= op({constants} minus {gamma});
(it doesn't seem to be enough to unassign `evalf/constant/gamma`, because
at some point that procedure would just be loaded back from the
repository).
At least, you now have the following:
> evalf(gamma);
gamma
> conjugate(gamma);
_____
gamma
> Im(gamma);
Im(gamma)
> Re(gamma);
Re(gamma)
But I can't guarantee that this will work in all situations.
Robert Israel "israel"
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia
Vancouver, BC, Canada V6T 1Z2
On Wed, 26 Jun 2002, Norbert Van den Bergh wrote:
> Does anyone know how to tell Maple 7 that it should regard gamma as an
> arbitrary parameter (possibly complex) and not as 0.5772156649... ?
> I spend some time trying stuff like
>
> > restart:
> > constants := op({constants} minus {gamma});
> > unprotect(gamma): gamma := 'gamma':
> > unassign(`evalf/constant/gamma`):
> > forget(`type/EvalfableProp`, gamma):
> > forget(`type/realcons`, gamma):
> > forget(`simpl/simpl/Im/is`, gamma):
> > forget(evalf, gamma):
>
> but conjugate(gamma) persists in returning gamma rather than "gamma
> bar". The reason is -I think- that evalf is called, which decides that
> gamma is real. I don't succeed however in convincing evalf to forget
> what it knows about gamma ...
>
> Any help would be greatly appreciated,
>
> Norbert Van den Bergh
> Fac. of Applied Sciences
> University of Gent, Belgium.
>
>
>
>
>
>
|
Previous by date: [MUG] [Fwd: JCAAM new WEB-SITE], Anastassiou
Next by date: [MUG] Re: bug in invphi, Carl Devore
Previous thread: [MUG] Re: bug in invphi, Douglas B Meade
Next thread: [MUG] Re: bug in invphi, Douglas B Meade
|
|
|