Hi Simon, On Sun, Aug 9, 2009 at 4:24 PM, Simon King<simon.k...@nuigalway.ie> wrote: >> Now if I say "f(x, x) = x" then from the output above I would >> get "2". > > Is it *possible* to say "f(x,x)=x"? What is it supposed to mean?
I came there starting from "f(x,y) = (x+y)/2". So f(x,x) = x. However, as you have clearly demonstrated, this issue goes deeper than what I had in my mind earlier. > - A function on one variable x, written down in an odd way? > - A function whose domain is the diagonal in CC^2 ? > - Or is it "get two input parameters, pick one and return it"? > > Apparently, it is the third option: > sage: f(x,x)=x > sage: f > (x, x) |--> x > sage: f(2,1) > 1 > > This seems odd to me. Yes, this clearly looks like a bug to me! Cheers, Golam --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an 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 -~----------~----~----~----~------~----~------~--~---