List of Math interface functions
Fields inherited from class | Fields |
---|---|
class DateFunctions |
DATEFORMAT_DEFAULT |
Type | Name and description |
---|---|
java.lang.Double |
abs(java.lang.Double attribute) abs, Returns the absolute value of a double value. |
java.lang.Long |
abs(java.lang.Long attribute) abs, Returns the absolute value of a long value. |
java.lang.Integer |
abs(java.lang.Integer attribute) abs, Returns the absolute value of an int value. |
java.lang.Double |
acos(java.lang.Double attribute) acos, Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi. |
java.lang.Double |
asin(java.lang.Double attribute) asin, Returns the arc sine of a value; the returned angle is in the range -pi/2 through pi/2. |
java.lang.Double |
atan(java.lang.Double attribute) atan, Returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2 |
java.lang.Double |
atan2(java.lang.Double attribute1, java.lang.Double attribute2) atan2, Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta). |
java.lang.Double |
cbrt(java.lang.Double attribute) cbrt, Returns the cube root of a double value. |
java.lang.Double |
ceil(java.lang.Double attribute) ceil, Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer. |
java.lang.Double |
copySign(java.lang.Double attribute1, java.lang.Double attribute2) copySign, Returns the first floating-point argument with the sign of the second floating-point argument. |
java.lang.Double |
cos(java.lang.Double attribute) cos, Returns the trigonometric cosine of an angle |
java.lang.Double |
cosh(java.lang.Double attribute) cosh, Returns the hyperbolic cosine of a double value. |
java.lang.Double |
exp(java.lang.Double attribute) exp, Returns Euler's number e raised to the power of a double value. |
java.lang.Double |
expm1(java.lang.Double attribute) expm1, Returns e^x -1. |
java.lang.Double |
floor(java.lang.Double attribute) floor, Returns the largest (closest to positive infinity) double value that is less than or equal to the argument and is equal to a mathematical integer. |
java.lang.Integer |
getExponent(java.lang.Double attribute) getExponent, Returns the unbiased exponent used in the representation of a double |
java.lang.Double |
hypot(java.lang.Double attribute1, java.lang.Double attribute2) hypot, Returns sqrt(x^2 +y^2) without intermediate overflow or underflow. |
java.lang.Double |
log(java.lang.Double attribute) log, Returns the natural logarithm (base e) of a double value. |
java.lang.Double |
log10(java.lang.Double attribute) log10, Returns the base 10 logarithm of a double value. |
java.lang.Double |
log1p(java.lang.Double attribute) log1p, Returns the natural logarithm of the sum of the argument and 1. |
java.lang.Double |
max(java.lang.Double attribute1, java.lang.Double attribute2) max, Returns the greater of two double values. |
java.lang.Integer |
max(java.lang.Integer attribute1, java.lang.Integer attribute2) max, Returns the greater of two int values. |
java.lang.Long |
max(java.lang.Long attribute1, java.lang.Long attribute2) max, Returns the greater of two long values. |
java.lang.Integer |
min(java.lang.Integer attribute1, java.lang.Integer attribute2) min, Returns the smaller of two int values. |
java.lang.Double |
min(java.lang.Double attribute1, java.lang.Double attribute2) min, Returns the smaller of two double values. |
java.lang.Long |
min(java.lang.Long attribute1, java.lang.Long attribute2) min, Returns the smaller of two long values. |
java.lang.Double |
nextAfter(java.lang.Double attribute1, java.lang.Double attribute2) nextAfter, Returns the floating-point number adjacent to the first argument in the direction of the second argument. |
java.lang.Double |
nextUp(java.lang.Double attribute) nextUp, Returns the floating-point value adjacent to d in the direction of positive infinity. |
java.lang.Double |
pow(java.lang.Double attribute1, java.lang.Double attribute2) pow, Returns the value of the first argument raised to the power of the second argument. |
java.lang.Double |
random() random, Returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0. |
java.lang.Double |
rint(java.lang.Double attribute) rint, Returns the double value that is closest in value to the argument and is equal to a mathematical integer. |
java.lang.Double |
round(java.lang.Double attribute, java.lang.Integer precision = null) Round the double value based on precision |
java.lang.Double |
scalb(java.lang.Double attribute1, java.lang.Integer attribute2) scalb, Return d*2^scaleFactor rounded as if performed by a single correctly rounded floating-point multiply to a member of the double value set. |
java.lang.Double |
signum(java.lang.Double attribute) signum, Returns the signum function of the argument; zero if the argument is zero, 1.0f if the argument is greater than zero, -1.0f if the argument is less than zero. |
java.lang.Double |
sin(java.lang.Double attribute) sin, Returns the hyperbolic sine of a double value |
java.lang.Double |
sinh(java.lang.Double attribute) sinh |
java.lang.Double |
sqrt(java.lang.Double attribute) sqrt, Returns the correctly rounded positive square root of a double value. |
java.lang.Double |
tan(java.lang.Double attribute) tan, Returns the trigonometric tangent of an angle. |
java.lang.Double |
tanh(java.lang.Double attribute) tanh, Returns the hyperbolic tangent of a double value. |
java.lang.Double |
toDegrees(java.lang.Double attribute) toDegrees, Converts an angle measured in radians to an approximately equivalent angle measured in degrees. |
java.lang.Double |
toRadians(java.lang.Double attribute) toRadians, Converts an angle measured in degrees to an approximately equivalent angle measured in radians. |
java.lang.Double |
truncateNumber(java.lang.Double attribute, java.lang.Integer precision) Truncate the number based on precision |
java.lang.Double |
ulp(java.lang.Double attribute) ulp, Returns the size of an ulp of the argument |
Methods inherited from class | Name |
---|---|
class SetFunctions |
cardinality, isEmpty, isMemberOf, isNull, isSet, toSet, toSingle |
class StringFunctions |
concat, concatWithToken, contains, find, findAll, indexOf, isDouble, isLong, length, replace, splitToSet, stripIndent, substring, toLowerCase, toTitleCase, toUpperCase, trim, urlDecode, urlEncode |
class GeocodeFunctions |
distance, getLatitude, getLongitude, isGeocode, toGeocode, toGeocode |
class DateFunctions |
addTime, diffDates, getDayOfMonth, getDayOfWeek, getDayOfYear, getHour, getMilliSecond, getMinute, getMonth, getSeconds, getYear, isDate, toDate, toDate, toString, today, truncateDate |
class ConversionFunctions |
toBoolean, toBoolean, toBoolean, toDate, toDouble, toDouble, toDouble, toLong, toLong, toLong, toLong, toString |
class EnrichmentFunctions |
detectLanguage, extractKeyPhrases, extractNounGroups, extractWhitelistTags, geotagIPAddress, geotagIPAddressGetGeocode, geotagStructuredAddress, geotagUnstructuredAddress, geotagUnstructuredAddressGetGeocode, getEntities, getSentiment, getTermSentiment, reverseGeotag, runExternalPlugin, stripTagsFromHTML, toPhoneticHash |
class groovy.lang.Script |
groovy.lang.Script#println(), groovy.lang.Script#println(java.lang.Object), groovy.lang.Script#run(), groovy.lang.Script#run(java.io.File, [Ljava.lang.String;), groovy.lang.Script#setProperty(java.lang.String, java.lang.Object), groovy.lang.Script#getProperty(java.lang.String), groovy.lang.Script#print(java.lang.Object), groovy.lang.Script#printf(java.lang.String, java.lang.Object), groovy.lang.Script#printf(java.lang.String, [Ljava.lang.Object;), groovy.lang.Script#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.Script#evaluate(java.lang.String), groovy.lang.Script#evaluate(java.io.File), groovy.lang.Script#getBinding(), groovy.lang.Script#setBinding(groovy.lang.Binding), groovy.lang.Script#getMetaClass(), groovy.lang.Script#setMetaClass(groovy.lang.MetaClass), groovy.lang.Script#wait(long, int), groovy.lang.Script#wait(long), groovy.lang.Script#wait(), groovy.lang.Script#equals(java.lang.Object), groovy.lang.Script#toString(), groovy.lang.Script#hashCode(), groovy.lang.Script#getClass(), groovy.lang.Script#notify(), groovy.lang.Script#notifyAll() |
abs, Returns the absolute value of a double value. If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is returned.
abs, Returns the absolute value of a long value. If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is returned.
abs, Returns the absolute value of an int value. If the argument is not negative, the argument is returned. If the argument is negative, the negation of the argument is returned.
acos, Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi.
asin, Returns the arc sine of a value; the returned angle is in the range -pi/2 through pi/2.
atan, Returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2
atan2, Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta). This method computes the phase theta by computing an arc tangent of y/x in the range of -pi to pi.
cbrt, Returns the cube root of a double value. For positive finite x, cbrt(-x) == -cbrt(x); that is, the cube root of a negative value is the negative of the cube root of that value's magnitude.
ceil, Returns the smallest (closest to negative infinity) double value that is greater than or equal to the argument and is equal to a mathematical integer.
copySign, Returns the first floating-point argument with the sign of the second floating-point argument. Note that unlike the StrictMath.copySign method, this method does not require NaN sign arguments to be treated as positive values; implementations are permitted to treat some NaN arguments as positive and other NaN arguments as negative to allow greater performance.
cos, Returns the trigonometric cosine of an angle
cosh, Returns the hyperbolic cosine of a double value.
exp, Returns Euler's number e raised to the power of a double value.
expm1, Returns e^x -1. Note that for values of x near 0, the exact sum of expm1(x) + 1 is much closer to the true result of ex than exp(x).
floor, Returns the largest (closest to positive infinity) double value that is less than or equal to the argument and is equal to a mathematical integer.
getExponent, Returns the unbiased exponent used in the representation of a double
hypot, Returns sqrt(x^2 +y^2) without intermediate overflow or underflow.
log, Returns the natural logarithm (base e) of a double value.
log10, Returns the base 10 logarithm of a double value.
log1p, Returns the natural logarithm of the sum of the argument and 1.
max, Returns the greater of two double values. That is, the result is the argument closer to positive infinity. If the arguments have the same value, the result is that same value. If either value is NaN, then the result is NaN. Unlike the numerical comparison operators, this method considers negative zero to be strictly smaller than positive zero. If one argument is positive zero and the other negative zero, the result is positive zero.
max, Returns the greater of two int values. That is, the result is the argument closer to the value of Integer.MAX_VALUE. If the arguments have the same value, the result is that same value.
max, Returns the greater of two long values. That is, the result is the argument closer to the value of Long.MAX_VALUE. If the arguments have the same value, the result is that same value.
min, Returns the smaller of two int values. That is, the result the argument closer to the value of Integer.MIN_VALUE. If the arguments have the same value, the result is that same value.
min, Returns the smaller of two double values. That is, the result is the value closer to negative infinity. If the arguments have the same value, the result is that same value. If either value is NaN, then the result is NaN. Unlike the numerical comparison operators, this method considers negative zero to be strictly smaller than positive zero. If one argument is positive zero and the other is negative zero, the result is negative zero.
min, Returns the smaller of two long values. That is, the result is the argument closer to the value of Long.MIN_VALUE. If the arguments have the same value, the result is that same value.
nextAfter, Returns the floating-point number adjacent to the first argument in the direction of the second argument. If both arguments compare as equal the second argument is returned.
nextUp, Returns the floating-point value adjacent to d in the direction of positive infinity. This method is semantically equivalent to nextAfter(d, Double.POSITIVE_INFINITY); however, a nextUp implementation may run faster than its equivalent nextAfter call.
pow, Returns the value of the first argument raised to the power of the second argument.
random, Returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0. Returned values are chosen pseudorandomly with (approximately) uniform distribution from that range.
rint, Returns the double value that is closest in value to the argument and is equal to a mathematical integer.
Round the double value based on precision
scalb, Return d*2^scaleFactor rounded as if performed by a single correctly rounded floating-point multiply to a member of the double value set.
attribute1,
- dattribute2,
- scaleFactorsignum, Returns the signum function of the argument; zero if the argument is zero, 1.0f if the argument is greater than zero, -1.0f if the argument is less than zero.
sin, Returns the hyperbolic sine of a double value
sinh
sqrt, Returns the correctly rounded positive square root of a double value.
tan, Returns the trigonometric tangent of an angle.
tanh, Returns the hyperbolic tangent of a double value.
toDegrees, Converts an angle measured in radians to an approximately equivalent angle measured in degrees. The conversion from radians to degrees is generally inexact; users should not expect cos(toRadians(90.0)) to exactly equal 0.0.
toRadians, Converts an angle measured in degrees to an approximately equivalent angle measured in radians.
Truncate the number based on precision
ulp, Returns the size of an ulp of the argument