On 02/27/2017 06:18 PM, Nils Bruin wrote:
> 
> Michael Orlitzky wrote:
>>
>> I tried the thing that makes more semantic sense, 
>>
>>   sage: f = function('f',x) 
>>
>> ...
> 
> Ah, OK. And this made more semantic sense to you because you wanted f to be 
> a function called 'f' in the variable x? Or because you wanted f to be the 
> result of evaluating a function called 'f' at x?
> 

The first; f = function(...) should give me a function, naturally. I see
that you're right about what actually happens:

  sage: f = function('f',x)
  sage: f
  f(x)

Oops. I expected the map x |--> f(x) instead. But it fills my heart with
joy that I can fix things by doing

  sage: f(x) = f(x)
  sage: f
  x |--> f(x)


-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to