On Dec 2, 2008, at 2:10 PM, Scott Walck wrote: > Hello, > > Is there a reason why I cannot do > > f(x)=abs(x) > f(vector([1,2,3])) > > Many related things work fine: > > abs(vector([1,2,3])) # works > > def f(x): return abs(x) > f(vector([1,2,3])) # works > > Session below shows the trouble.
[...] > sage: f(x)=abs(x) > sage: f > x |--> abs(x) > sage: f(-3) > 3 > sage: f(v) Yes. f(x) is a symbolic function, and can only handle the kind of objects maxima can handle (and that we have written an interface for). Things will become more flexible with Pynac symbolics. - Robert --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---