Zulip Chat Archive
Stream: Is there code for X?
Topic: Infinite product
Ella Yu (Jun 22 2022 at 18:23):
Hi, I am trying to define a Riemann zeta function as an infinite product. Is there a code for this just like tsum? Thank you!
Eric Wieser (Jun 22 2022 at 18:30):
You could take the docs#tsum of docs#additive (something like (∑' a, additive.of_mul (f a)).to_mul
) , but that's unlikely to be very pleasant
Ella Yu (Jun 22 2022 at 18:38):
Thanks a lot! But my f a
here is complex, is there a complex.to_mul
or something equivalent?
Eric Wieser (Jun 22 2022 at 18:43):
The code above should work for complex
Eric Wieser (Jun 22 2022 at 18:44):
Note the parens; that's additive.to_mul
that's being called (via dot notation)
Kevin Buzzard (Jun 22 2022 at 18:52):
Is the actual correct thing to do to make tprod
and then define tsum
via to_additive
?
Eric Wieser (Jun 22 2022 at 19:16):
Probably yes
Eric Wieser (Jun 22 2022 at 19:16):
Although tprod
already means "tensor product" so we have a naming problem conceptually (I think namespaces save us for now)
Last updated: Dec 20 2023 at 11:08 UTC