Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Possible workaround :

sage: var("k", domain="integer")
k
sage: assume(k>0)
sage: var("j")
j
sage: product(expr, j, 1, k)
xbar^k

which might be wrapped in a function... But be aware that the result is a symbolic expression, not an element of R.