How to write numerical summation from zero to inf by pytensor or pymc math

Hi everyone,

Does anybody know how can I write the numerical summation from zero to inf in pytensor or pymc.math?

You will probably need a while scan with some termination condition that depends on the exact series you’re summing. If you can write it in numpy, you can write it in PyTensor.

https://pytensor.readthedocs.io/en/latest/library/scan.html