Re: A pattern matching question

Themos Tsikas <[email protected]>
Newsgroups gmane.comp.mathematics.axiom.user
Organization NAG Ltd
Message-ID <[email protected]>
--try this in an input file

tt:=operator 'tt
ttrules := rule
  tt(n^(a | integer?(a))) == t/a
  tt(n/(n-1)) == 1/t
  tt(n/(n^a+(X | integer?(a) and (n-1)^a = n^a +X))) == 1/t^a

ttrules tt(n^6)
ttrules tt(n/(n-1))
ttrules tt(n/(n-1)^2)
ttrules tt(n/(n-1)^30)

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.