org.maverickdbms.basic
Interface MathInterface

All Known Implementing Classes:
DoubleMath

public interface MathInterface


Method Summary
 mvString ABS(mvString result, ConstantString a)
          Gets the absolute value for the number.
 mvString add(mvString result, ConstantString a, ConstantString b)
           
 mvString BITAND(mvString result, ConstantString a, ConstantString b)
          Returns the bitwise AND of the 2 numbers
 mvString COS(mvString result, ConstantString a)
          Returns the cosine of the number
 mvString divide(mvString result, ConstantString a, ConstantString b)
           
 mvString EXP(mvString result, ConstantString a)
          Returns the e to the power of the number
 boolean GE(ConstantString a, ConstantString b)
          Determines whether a is greater than or equal to b.
 int getPrecision()
          Returns the current PRECISION value
 boolean GT(ConstantString a, ConstantString b)
          Determines whether a is greater than b.
 mvString INT(mvString result, ConstantString a)
          Returns the integer portion of the number
 boolean LE(ConstantString a, ConstantString b)
          Determines whether a is less than or equal to b.
 mvString LN(mvString result, ConstantString a)
          Returns the natural logarithm of the number
 boolean LT(ConstantString a, ConstantString b)
          Determines whether a is less than b.
 mvString MOD(mvString result, ConstantString a, ConstantString b)
          Returns the modulus of a divided by b
 mvString multiply(mvString result, ConstantString a, ConstantString b)
           
 void PRECISION(ConstantString val)
           
 mvString PWR(mvString result, ConstantString a, ConstantString b)
          Returns the number raised to the power.
 mvString RND(mvString result, ConstantString range)
           
 mvString SIN(mvString result, ConstantString a)
          Returns the sine of the number
 mvString SQRT(mvString result, ConstantString a)
           
 mvString subtract(mvString result, ConstantString a, ConstantString b)
           
 mvString TAN(mvString result, ConstantString a)
          Returns the tangent of the number
 

Method Detail

ABS

public mvString ABS(mvString result,
                    ConstantString a)
Gets the absolute value for the number.

Parameters:
result - value to store the absolute number in
a - the number
Returns:
the absolute value

add

public mvString add(mvString result,
                    ConstantString a,
                    ConstantString b)

BITAND

public mvString BITAND(mvString result,
                       ConstantString a,
                       ConstantString b)
Returns the bitwise AND of the 2 numbers

Parameters:
result - - the number to store the result
a - - the first operand
b - - the second operand
Returns:
the bitwise AND

COS

public mvString COS(mvString result,
                    ConstantString a)
Returns the cosine of the number

Parameters:
result - - the number to store the result
a - - the angle, in radians
Returns:
the cosine

divide

public mvString divide(mvString result,
                       ConstantString a,
                       ConstantString b)

EXP

public mvString EXP(mvString result,
                    ConstantString a)
Returns the e to the power of the number

Parameters:
result - - the number to store the result
a - - the number
Returns:
the result

GE

public boolean GE(ConstantString a,
                  ConstantString b)
Determines whether a is greater than or equal to b.

Parameters:
a - the first number to be compared
b - the second number to be compared
Returns:
true if a is greater than or equal to b

getPrecision

public int getPrecision()
Returns the current PRECISION value


GT

public boolean GT(ConstantString a,
                  ConstantString b)
Determines whether a is greater than b.

Parameters:
a - the first number to be compared
b - the second number to be compared
Returns:
true if a is greater than b

INT

public mvString INT(mvString result,
                    ConstantString a)
Returns the integer portion of the number

Parameters:
a - the number to store the result in
Returns:
the truncated number

LE

public boolean LE(ConstantString a,
                  ConstantString b)
Determines whether a is less than or equal to b.

Parameters:
a - the first number to be compared
b - the second number to be compared
Returns:
true if a is less than or equal to b

LN

public mvString LN(mvString result,
                   ConstantString a)
Returns the natural logarithm of the number

Parameters:
result - the number to store the result
a - a number greater than zero
Returns:
the natural logarithm

LT

public boolean LT(ConstantString a,
                  ConstantString b)
Determines whether a is less than b.

Parameters:
a - the first number to be compared
b - the second number to be compared
Returns:
true if a is less than b

MOD

public mvString MOD(mvString result,
                    ConstantString a,
                    ConstantString b)
Returns the modulus of a divided by b

Parameters:
a - the numerator
b - the denominator
result - the modulus
Returns:
the modulus

multiply

public mvString multiply(mvString result,
                         ConstantString a,
                         ConstantString b)

PRECISION

public void PRECISION(ConstantString val)

PWR

public mvString PWR(mvString result,
                    ConstantString a,
                    ConstantString b)
Returns the number raised to the power.

Parameters:
result - the number to store the result
a - the number
b - the power to be raised
Returns:
the result

RND

public mvString RND(mvString result,
                    ConstantString range)

SIN

public mvString SIN(mvString result,
                    ConstantString a)
Returns the sine of the number

Parameters:
result - - the number to store the result
a - - the angle, in radians
Returns:
the sine

SQRT

public mvString SQRT(mvString result,
                     ConstantString a)

subtract

public mvString subtract(mvString result,
                         ConstantString a,
                         ConstantString b)

TAN

public mvString TAN(mvString result,
                    ConstantString a)
Returns the tangent of the number

Parameters:
result - - the number to store the result
a - - the angle, in radians
Returns:
the tangent