Jeff Epler's blog

29 May 2012, 13:03 UTC

A use for log1p


The ANSI C math library includes a few curious functions such as log1p, which is duly copied (or wrapped) in other languages like Python. The programmer without a background in numerics may wonder why such a function is necessary or useful. Here is a real world example in calculating the likelihood of a random collision in a Birthday Attack.

read more…

All older entries
Website Copyright © 2004-2024 Jeff Epler