On Monday, February 27, 2017 at 5:56:44 PM UTC-8, Michael Orlitzky wrote:
>
> But it fills my heart with 
> joy that I can fix things by doing 
>
>   sage: f(x) = f(x) 
>   sage: f 
>   x |--> f(x) 
>
> But only after you've declared f to be a function. If you want to do it in 
one line, you'd have to spell out:

f(x) = function('f')(x)

which the preparser changes to:

'__tmp__=var("x"); f = symbolic_expression(function(\'f\')(x)).function(x)'

so the full syntax to obtain your desired result is:

 f=function('f')(x).function(x)

which would probably not fill you with joy ... I'm not so sure if we want 
function('f',x) to be a shorthand for that. It would be a close 
approximation of what the user would probably expect, but it's a rather 
inefficient construct.

-- 
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