Zulip Chat Archive
Stream: Is there code for X?
Topic: (-1)^k when `k` is an `int`
Scott Morrison (Mar 28 2021 at 12:40):
What's the easiest way to talk about (-1)^k
as an int
, when k : int
?
Merely writing it complains about not having a has_pow int int
instance, of course.
Mario Carneiro (Mar 28 2021 at 12:42):
You could use gpow
in units int
Last updated: Dec 20 2023 at 11:08 UTC