public float apply (float a) { return 1 - (float)Math.cbrt(-(a - 1)); } };
public float apply (float a) { return 1 - (float)Math.cbrt(-(a - 1)); } };
public float apply (float a) { return (float)Math.cbrt(a); } };
public float apply (float a) { return (float)Math.cbrt(a); } };
/** Calls {@link #ellipse(float, float, float, float, int)} by estimating the number of segments needed for a smooth ellipse. */ public void ellipse (float x, float y, float width, float height) { ellipse(x, y, width, height, Math.max(1, (int)(12 * (float)Math.cbrt(Math.max(width * 0.5f, height * 0.5f))))); }
/** Calls {@link #arc(float, float, float, float, float, int)} by estimating the number of segments needed for a smooth arc. */ public void arc (float x, float y, float radius, float start, float degrees) { arc(x, y, radius, start, degrees, Math.max(1, (int)(6 * (float)Math.cbrt(radius) * (degrees / 360.0f)))); }
/** Calls {@link #circle(float, float, float, int)} by estimating the number of segments needed for a smooth circle. */ public void circle (float x, float y, float radius) { circle(x, y, radius, Math.max(1, (int)(6 * (float)Math.cbrt(radius)))); }
/** Calls {@link #ellipse(float, float, float, float, float, int)} by estimating the number of segments needed for a smooth ellipse. */ public void ellipse (float x, float y, float width, float height, float rotation) { ellipse(x, y, width, height, rotation, Math.max(1, (int)(12 * (float)Math.cbrt(Math.max(width * 0.5f, height * 0.5f))))); }
/** Calls {@link #circle(float, float, float, int)} by estimating the number of segments needed for a smooth circle. */ public void circle (float x, float y, float radius) { circle(x, y, radius, Math.max(1, (int)(6 * (float)Math.cbrt(radius)))); }
/** Calls {@link #ellipse(float, float, float, float, int)} by estimating the number of segments needed for a smooth ellipse. */ public void ellipse (float x, float y, float width, float height) { ellipse(x, y, width, height, Math.max(1, (int)(12 * (float)Math.cbrt(Math.max(width * 0.5f, height * 0.5f))))); }
/** Calls {@link #arc(float, float, float, float, float, int)} by estimating the number of segments needed for a smooth arc. */ public void arc (float x, float y, float radius, float start, float degrees) { arc(x, y, radius, start, degrees, Math.max(1, (int)(6 * (float)Math.cbrt(radius) * (degrees / 360.0f)))); }
/** Calls {@link #ellipse(float, float, float, float, float, int)} by estimating the number of segments needed for a smooth ellipse. */ public void ellipse (float x, float y, float width, float height, float rotation) { ellipse(x, y, width, height, rotation, Math.max(1, (int)(12 * (float)Math.cbrt(Math.max(width * 0.5f, height * 0.5f))))); }
private double f(double t) { return (t > (216.0 / 24389.0)) ? Math.cbrt(t) : (1.0 / 3.0) * Math.pow(29.0 / 6.0, 2) * t + (4.0 / 29.0); }
@Override protected ExprEval eval(double param) { return ExprEval.of(Math.cbrt(param)); } }
public static double cbrt(RValue x) throws EvaluationException { return Math.cbrt(x.getValue()); }
@Override public Object evaluate(DeferredObject[] arguments) throws HiveException { Double val = getDoubleValue(arguments, 0, converters); if (val == null) { return null; } double cbrt = Math.cbrt(val); output.set(cbrt); return output; }
@Override public Object evaluate(DeferredObject[] arguments) throws HiveException { Double val = getDoubleValue(arguments, 0, converters); if (val == null) { return null; } double cbrt = Math.cbrt(val); output.set(cbrt); return output; }
@Description("cube root") @ScalarFunction @SqlType(StandardTypes.DOUBLE) public static double cbrt(@SqlType(StandardTypes.DOUBLE) double num) { return Math.cbrt(num); }
default DoubleColumn cubeRoot() { DoubleColumn newColumn = DoubleColumn.create(name() + "[cbrt]", size()); for (int i = 0; i < size(); i++) { newColumn.set(i, Math.cbrt(getDouble(i))); } return newColumn; }