Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Just double the equal sign in the substitution:

sage: f(a,b) = a^2+b^3
....: def test(self, symb):          
....:     return (self-self.subs(symb==(symb-1)))
....: test(f,a)
(a, b) |--> -(a - 1)^2 + a^2

Just double the equal sign in the substitution:

sage: f(a,b) = a^2+b^3
....: sage: def test(self, symb):          
....:     return (self-self.subs(symb==(symb-1)))
....: test(f,a)
(a, b) |--> -(a - 1)^2 + a^2

Just double the equal sign in the substitution:

sage: f(a,b) = a^2+b^3
sage: def test(self, symb):          
....:     return (self-self.subs(symb==(symb-1)))
....: sage: test(f,a)
(a, b) |--> -(a - 1)^2 + a^2