Fixes #84 by using Math.exp instead of a homegrown algorithm