| 1 | initial version |
If you check the type of h with type(h), it comes back as
<type 'sage.symbolic.expression.Expression'>
which is not numeric but symbolic. You can convert it to a numeric value with n(h) or h.n() and then the substitution will give zero as expected.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.