public final class MathExpressions extends Object
Modifier and Type | Method and Description |
---|---|
static <A extends Number & Comparable<?>> |
acos(Expression<A> num)
Create a
acos(num) expression |
static <A extends Number & Comparable<?>> |
asin(Expression<A> num)
Create a
asin(num) expression |
static <A extends Number & Comparable<?>> |
atan(Expression<A> num)
Create a
atan(num) expression |
static <A extends Number & Comparable<?>> |
cos(Expression<A> num)
Create a
cos(num) expression |
static <A extends Number & Comparable<?>> |
cosh(Expression<A> num)
Create a
cosh(num) expression |
static <A extends Number & Comparable<?>> |
cot(Expression<A> num)
Create a
cot(num) expression |
static <A extends Number & Comparable<?>> |
coth(Expression<A> num)
Create a
coth(num) expression |
static <A extends Number & Comparable<?>> |
degrees(Expression<A> num)
Create a
deg(num) expression |
static <A extends Number & Comparable<?>> |
exp(Expression<A> num)
Create a
exp(num) expression |
static <A extends Number & Comparable<?>> |
ln(Expression<A> num)
Create a
ln(num) expression |
static <A extends Number & Comparable<?>> |
log(Expression<A> num,
int base)
Create a
log(num, base) expression |
static <A extends Number & Comparable<?>> |
max(Expression<A> left,
Expression<A> right)
Create a
max(left, right) expression |
static <A extends Number & Comparable<?>> |
min(Expression<A> left,
Expression<A> right)
Create a
min(left, right) expression |
static <A extends Number & Comparable<?>> |
power(Expression<A> num,
int exponent)
Create a
power(num, exponent) expression |
static <A extends Number & Comparable<?>> |
radians(Expression<A> num)
Create a
rad(num) expression |
static NumberExpression<Double> |
random()
Returns the random expression
|
static NumberExpression<Double> |
random(int seed)
Return a random number expression with the given seed
|
static <A extends Number & Comparable<?>> |
round(Expression<A> num)
Round to nearest integer
|
static <A extends Number & Comparable<?>> |
round(Expression<A> num,
int s)
Round to s decimal places
|
static <A extends Number & Comparable<?>> |
sign(Expression<A> num)
Create a
sign(num) expression |
static <A extends Number & Comparable<?>> |
sin(Expression<A> num)
Create a
sin(num) expression |
static <A extends Number & Comparable<?>> |
sinh(Expression<A> num)
Create a
sinh(num) expression |
static <A extends Number & Comparable<?>> |
tan(Expression<A> num)
Create a
tan(num) expression |
static <A extends Number & Comparable<?>> |
tanh(Expression<A> num)
Create a
tanh(num) expression |
public static <A extends Number & Comparable<?>> NumberExpression<Double> acos(Expression<A> num)
acos(num)
expression
Returns the principal value of the arc cosine of num, expressed in radians.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> asin(Expression<A> num)
asin(num)
expression
Returns the principal value of the arc sine of num, expressed in radians.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> atan(Expression<A> num)
atan(num)
expression
Returns the principal value of the arc tangent of num, expressed in radians.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> cos(Expression<A> num)
cos(num)
expression
Returns the cosine of an angle of num radians.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> cosh(Expression<A> num)
cosh(num)
expression
Returns the hyperbolic cosine of num radians.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> cot(Expression<A> num)
cot(num)
expression
Returns the cotangent of num.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> coth(Expression<A> num)
coth(num)
expression
Returns the hyperbolic cotangent of num.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> degrees(Expression<A> num)
deg(num)
expression
Convert radians to degrees.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> exp(Expression<A> num)
exp(num)
expression
Returns the base-e exponential function of num, which is e raised to the power num.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> ln(Expression<A> num)
ln(num)
expression
Returns the natural logarithm of num.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> log(Expression<A> num, int base)
log(num, base)
expressionnum
- numeric expressionbase
- basepublic static <A extends Number & Comparable<?>> NumberExpression<A> max(Expression<A> left, Expression<A> right)
max(left, right)
expression
Return the greater of the given values
public static <A extends Number & Comparable<?>> NumberExpression<A> min(Expression<A> left, Expression<A> right)
min(left, right)
expression
Return the smaller of the given values
public static <A extends Number & Comparable<?>> NumberExpression<Double> power(Expression<A> num, int exponent)
power(num, exponent)
expression
Returns num raised to the power exponent
num
- numeric expressionexponent
- exponentpublic static <A extends Number & Comparable<?>> NumberExpression<Double> radians(Expression<A> num)
rad(num)
expression
Converts degrees to radians
num
- numeric expressionpublic static NumberExpression<Double> random()
public static NumberExpression<Double> random(int seed)
seed
- seedpublic static <A extends Number & Comparable<?>> NumberExpression<A> round(Expression<A> num)
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<A> round(Expression<A> num, int s)
num
- numeric expressions
- decimal placespublic static <A extends Number & Comparable<?>> NumberExpression<Integer> sign(Expression<A> num)
sign(num)
expression
Returns the positive (+1), zero (0), or negative (-1) sign of num.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> sin(Expression<A> num)
sin(num)
expression
Returns the sine of an angle of num radians.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> sinh(Expression<A> num)
sinh(num)
expression
Returns the hyperbolic sine of num radians.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> tan(Expression<A> num)
tan(num)
expression
Returns the tangent of an angle of num radians.
num
- numeric expressionpublic static <A extends Number & Comparable<?>> NumberExpression<Double> tanh(Expression<A> num)
tanh(num)
expression
Returns the hyperbolic tangent of num radians.
num
- numeric expressionCopyright © 2007–2016 Querydsl. All rights reserved.