Hi all,
I am trying, in sage 4.0, to write a class that inherits from the new
sage.symbolic.expression.Expression class. I have not found any
precise signature for the __init__ method of that class so I suppose I
am doing something wrong : things seem to work, except for the
substitute stuff.
Here is an example of what I mean :
______________________________________
class test(Expression):
def __init__(self,eq):
Expression.__init__(self,SR,eq)
f=function("f")
g=function("g")
a=f(x)
b=test(f(x))
testa=a.substitute_function(f,g)
testb=b.substitute_function(f,g)
______________________________________
sage: testa
g(x)
sage: testb
f(x)
sage:
Anyone to help me out ?
Thanks to all
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---