figuring out the details of that approximation was a bit of a pain, and there's probably better approximations out there, but it's interesting nonetheless