David Joyner wrote: > On Mon, Mar 30, 2009 at 8:27 AM, Jason Grout > <jason-s...@creativetrax.com> wrote: >> David Joyner wrote: > >>> No objection. However, I think >>> >>> sage: t = var("t") >>> sage: g = function("g",t) >>> sage: g = sin + t >>> sage: g(3) >>> sin(3) + 3 >> >> Note that here, you are redefining g with the functon sin+t (i.e., you >> are replacing g as a variable; the function g(t) doesn't exist anymore). >> In other words, these 4 lines have exactly the same effect as: >> >> sage: t = var("t") >> sage: g = sin + t >> sage: g(3) >> sin(3) + 3 >> >> So the above behavior should change; that's what this thread was all about. >
On the other hand, what about: sage: t = var("t") sage: g(t) = sin + t sage: g(3) ??? That captures the spirit of what you were trying to do, I think. Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---