Hello all, Just ran across a result in Sage that was a bit un-intuitive to me:
sage: f(x) = x^5 sage: f(2) 32 sage: f(2) == 32 32 == 32 I can see what is happening, Sage is treating f(2) as a member of SR and then the whole expression is treated as a symbolic. What I was wondering is why a callable expression isn't just a number (rational, integer, real,...) after it is evaluated? If figured that in order to perform the arithmetic required to evaluate the symbolic function it must be doing the conversions internally somewhere, just wondering why it is then converted back into a symbolic after these operations are performed. Just looking for a good explanation in case a student runs across this behavior one day. :-) David -- 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 URL: http://www.sagemath.org
