Ask Your Question

Revision history [back]

Sage is not smart enough to understand what you want.

In the source code we can see it does handle lists and tuples as single inputs, but not vectors.

As a workaround, you can do e.g.

sage: f(*inp)

or

sage: f(inp.list())

or

sage: f(tuple(inp))

It would be reasonable to report this as an issue (if it has not already been reported).