Zulip Chat Archive
Stream: Is there code for X?
Topic: Formal Series
THEODORE GONZALES (Sep 21 2022 at 18:55):
Is there code for formal series with coefficients in some type? Ideally this would be something that, in context A: Type
, and f: Z -> A
then be able to check if f has finite support if zero objects make sense in A .
Anne Baanen (Sep 21 2022 at 19:10):
Sequences with finite support are called docs#finsupp so e.g. ℤ →₀ A
is the type of all integer-indexed sequences with only finitely many nonzero values.
Anne Baanen (Sep 21 2022 at 19:10):
For series maybe you want more something like docs#power_series?
Junyan Xu (Sep 21 2022 at 19:23):
we also have docs#function.support and docs#set.finite, and you can construct a finsupp that way: docs#finsupp.of_support_finite
THEODORE GONZALES (Sep 22 2022 at 01:14):
Thank you !
Last updated: Dec 20 2023 at 11:08 UTC