You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since it is not clear which variable to use if only sin is specified. Also consider this situation:
sage: g(x,y) = sin + y
sage: g(3,4)
???
We have two options:
We could allow this syntax for convenience:
sage: g(x) = sin + x
and convert the function arguments to appropriate callable expressions if the number of arguments of g match the number of arguments of the given function, raise an error otherwise.
We raise an error whenever a function object is specified without variables.
In a comment to #5413 Jason pointed out the following confusing behavior:
I think the syntax for this should be:
Since it is not clear which variable to use if only
sin
is specified. Also consider this situation:We have two options:
and convert the function arguments to appropriate callable expressions if the number of arguments of
g
match the number of arguments of the given function, raise an error otherwise.Comments?
CC: @jasongrout
Component: calculus
Issue created by migration from https://trac.sagemath.org/ticket/5607
The text was updated successfully, but these errors were encountered: