Zulip Chat Archive
Stream: new members
Topic: Computable integer bounds for log
Adrian Dole (Jan 10 2024 at 01:21):
Trying some Big-O stuff which is complicated by log being noncomputable. What would really help is some computable function f : Nat -> Nat where f x - 1 <= log x <= f x. Does this exist?
namibj (Jan 10 2024 at 02:44):
Adrian Dole said:
Trying some Big-O stuff which is complicated by
logbeing noncomputable. What would really help is some computable functionf : Nat -> Natwheref x - 1 <= log x <= f x. Does this exist?
If you're ok with a non-natural logarithm, you should be able to use the e.g. base-2 integer/rounded logarithm Nat.log2.
Adrian Dole (Jan 10 2024 at 02:45):
That’ll work, thanks!
Last updated: May 02 2025 at 03:31 UTC