use sqrtf and expf to prevent auto-casts to double

fixes #139