[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] overwriting only few funtions in a package.

From: Francois Maltey
Subject: [Axiom-developer] overwriting only few funtions in a package.
Date: 18 Nov 2006 19:17:13 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4


1/ Can I overwrite only few functions in a package ?

I want to keep exposed the built-in function 
  removeSinSq $ TranscendentalManipulations (Integer, Expression Interger)
and use my own function in my own package :
  expand $ UsualExpand (Integer, Expression Interger)

Is it possible ?

2/ I put this in my .axiom.input file, but it isn't perfect :

)cd Axiom
)library USEXPAND
)set expose add constructor UsualExpand
)set expose drop constructor TranscendentalManipulations

In this cas axiom uses the built-in expand. I can't do expand (cos (2*x)).

Then I reread the init file : )re ../.axiom.input
And then expand (cos (2*x)) uses the new package.

If I add a first line expand (cos (a+b)) in the init file, at the first line.
then it seems that axiom use the new expand.

But if I add expand (cos (a+b)) at the end of the init file,
then axiom calls the usual expand of TranscendentalManipulations.

Is it a bug ?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]