ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 27 Jan 2021 15:21:13 +0100Simplify symbolic producthttps://ask.sagemath.org/question/55471/simplify-symbolic-product/As per the title, I want to simplify this product somehow.
var('i,r')
exp = product(1-2**(-i), i, 1, r)
This can be also expressed as
q_pochhammer(r, 2, 2)
However, the latest expression does not accept the symbolic variable `r`, but only a real integer.
The main problem is that the actual computation (f.e. `exp.unhold().subs({r: 12345})` takes a huge amount of time. Is there any way to simplify this product in sage or accelerate this computation somehow? I've already tried all the simplify/expand methods, but also the `combsimp` method of `sympy`.
As a side question, is there any way to use the `q_pochhammer` function symbolically? Maybe I can use the hypergeometric simplifications on it.tigerjackWed, 27 Jan 2021 15:21:13 +0100https://ask.sagemath.org/question/55471/