Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
sage: function('f')(*(SR.symbol("x%s"%i) for i in range(n)))
f(x0, x1, x2)

There's a python trick to unpack an iterable into an argument list in a function call:

sage: function('f')(*(SR.symbol("x%s"%i) for i in range(n)))
f(x0, x1, x2)