Wildcards for subs()

Richard B. Kreckel kreckel at thep.physik.uni-mainz.de
Tue May 22 20:30:52 CEST 2001


On Tue, 22 May 2001, Christian Bauer wrote:
> On Tue, May 22, 2001 at 08:17:56PM +0200, Richard B. Kreckel wrote:
> > Apart from the question what
> > sin(sin(x)).subs(sin(wild(1))==sqrt(1-pow(cos(wild1),2)) is supposed to
> > produce.  Is it sin(sqrt(1-pow(cos(x),2)))?
> 
> Unlikely.
> 
> > Or rather sqrt(1-pow(cos(sqrt(1-pow(cos(x),2))),2))?
> 
> Either that or sqrt(1-pow(cos(sin(x)),2)).

Sorry, the latter one of course.  Traversal alway begins at the root of a
tree.

  -richy.
-- 
Richard Kreckel
<Richard.Kreckel at Uni-Mainz.DE>
<http://wwwthep.physik.uni-mainz.de/~kreckel/>





More information about the GiNaC-devel mailing list