The documentation of both Hilbert and Mellin transform functions in
Maple seem to suggest that they use table lookups:
http://www.maplesoft.com/support/help/view.aspx?path=inttrans/hilbert
http://www.maplesoft.com/support/help/view.aspx?path=inttrans/mellin
In the Description section of the pages above, see item 4 in the first
link and 3 in the second one.
The pattern matching capabilities of the new symbolics will be useful
here. For some documentation and examples you can try:
sage: var('x,y',ns=1)
sage: x.subs?
Taking the documentation in the above links as a guideline, such a
function might:
- transform the given expression to a normal form, using some
simplification rules
- use the relevant lookup table to do the necessary substitutions
For now, it will be enough to come up with simplification rules that
apply only to expressions you're interested in. The lookup table can
also be restricted in this way. Do you have access to a table of
Hilbert/Mellin transforms relevant for you application?
Can you give examples of expected input and output for the transform
you want to implement?
Cheers,
Burcin