annomath
provides a set of math utilities for JavaScript. The functions have been annotated and provide nice runtime errors. This might have a slight effect on performance, though, but I believe the convenience is worth it.
annomath
is available under MIT. See LICENSE for more details.