Remove cbrt() since we don't use it anymore.

This commit is contained in:
Jürg Lehni 2013-04-20 20:00:11 -07:00
parent c45ad26b67
commit 6fc2d50939

View file

@ -58,11 +58,6 @@ var Numerical = this.Numerical = new function() {
cos = Math.cos,
PI = Math.PI;
// Define the missing Math.cbrt()
function cbrt(x) {
return x > 0 ? pow(x, 1 / 3) : x < 0 ? -pow(-x, 1 / 3) : 0;
}
return {
TOLERANCE: 10e-6,
// Precision when comparing against 0