|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.livescribe.util.MathFunctions
public final class MathFunctions
MathFunctions provide rounding and scientific methods
| Method Summary | |
|---|---|
static double |
acos(double cosValue)
Returns the arc cosine of an angle |
static double |
asin(double sinValue)
Returns the arc sine of an angle |
static double |
atan(double tanValue)
Returns the arc tangent of an angle |
static float |
exp(float value)
Returns Euler's number, e, raised to the specified value. |
static double |
ln(double lnValue)
Returns the natural logarithm (base e) of a double value. |
static double |
log(double logValue)
Returns the base 10 logarithm of a double value. |
static double |
pow(double base,
double power)
Returns the value of the first argument raised to the power of the second argument |
static float |
powf(float base,
float power)
Returns the value of the first argument raised to the power of the second argument |
static String |
powString(float base,
float power)
Returns the value of the first argument raised to the power of the second argument as a String |
static double |
round(double value)
Rounds the specified value. |
static String |
roundDisplay(double value)
Returns the value of a decimal value with rounding |
static float |
roundf(float value)
Rounds the specified value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double ln(double lnValue)
Math.log().
lnValue - a value
public static double log(double logValue)
Math.log10().
logValue - a value
public static double pow(double base,
double power)
base - the basepower - the exponent
public static String powString(float base,
float power)
base - the basepower - the exponent
public static String roundDisplay(double value)
value - The value that needs to be rounded. It should be in format
[number.decimal] If the decimal value is greater then 10 digits
then the decimal value is rounded to the 10th decimal place
public static float powf(float base,
float power)
base - the basepower - the exponent
public static float exp(float value)
value - the exponent
public static double round(double value)
value - round this value
public static float roundf(float value)
value - round this value
public static double acos(double cosValue)
cosValue - the value whose arc cosine is to be returned
public static double asin(double sinValue)
sinValue - the value whose arc sine is to be returned
public static double atan(double tanValue)
tanValue - the value whose arc tangent is to be returned
|
PenProfile 2.x | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||