| 1 | initial version |
sage: function('f')(*(SR.symbol("x%s"%i) for i in range(n)))
f(x0, x1, x2)
| 2 | No.2 Revision |
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)
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.