-
Notifications
You must be signed in to change notification settings - Fork 20
Description
Currently, calling functions seems to work like you are substituting symbols in an expression, e.g.
If
While this is convenient and intuitive for some expressions, it becomes annoying for others, because I have to specify the arguments at the call site every time.
This becomes especially inconvenient when integrating or summing user-defined functions, e.g.
If
then I can't write
I have to write
This is both annoying to type and hard to read, because of the temporary
I propose a way to specify positional arguments for functions. This should work for both univariate and multivariable functions. For example, we could define
It would also be nice to be able to define multiple functions that use the same parameter names. For example, alongside with
Defining functions like this with the new Python Extensions feature is already possible, I would also like to be able to do it with functions written in normal notation.