org.shetline.math
Class MathUtil
java.lang.Object
org.shetline.math.MathUtil
public class MathUtil
- extends Object
Method Summary |
static double |
acos_deg(double x)
|
static double |
acot_deg(double x)
|
static double |
acot(double x)
|
static double |
acot2_deg(double a,
double b)
|
static double |
acot2(double a,
double b)
|
static double |
asin_deg(double x)
|
static double |
atan_deg(double x)
|
static double |
atan2_deg(double a,
double b)
|
static double |
cos_deg(double x)
|
static double |
cot_deg(double x)
|
static double |
cot(double x)
|
static int |
div(int x,
int y)
|
static long |
div(long x,
long y)
|
static String |
format(String fmt,
double x)
|
static String |
format(String fmt,
double x,
DecimalFormatSymbols dfs)
|
static String |
format(String fmt,
double x,
Locale locale)
|
static int |
getPatternPrecision(String pattern)
|
static int |
iceil(double x)
|
static int |
ifloor(double x)
|
static double |
interpolate(double[] xa,
double[] ya,
double x)
|
static double |
interpolate(double[] xx,
double[] yy,
double x,
double maxSpan)
|
static double |
interpolate(double x0,
double x,
double x1,
double y0,
double y1)
|
static double |
interpolateModular(double[] xa,
double[] ya,
double x,
double modulus)
|
static double |
interpolateModular(double[] xa,
double[] ya,
double x,
double modulus,
boolean signedResult)
|
static double |
interpolateModular(double[] xa,
double[] ya,
double x,
double modulus,
double maxSpan)
|
static double |
interpolateModular(double[] xa,
double[] ya,
double x,
double modulus,
double maxSpan,
boolean signedResult)
|
static double |
interpolateModular(double x0,
double x,
double x1,
double y0,
double y1,
double modulus)
|
static double |
interpolateModular(double x0,
double x,
double x1,
double y0,
double y1,
double modulus,
boolean signedResult)
|
static int |
iround(double x)
|
static double |
limitNeg1to1(double x)
|
static double |
limitNeg1to1(double x,
double tolerance)
|
static double |
log2(double x)
|
static double |
maxDouble(double x1,
double x2,
double x3,
double... list)
|
static float |
maxFloat(float x1,
float x2,
float x3,
float... list)
|
static int |
maxInt(int x1,
int x2,
int x3,
int... list)
|
static long |
maxLong(long x1,
long x2,
long x3,
long... list)
|
static double |
minDouble(double x1,
double x2,
double x3,
double... list)
|
static float |
minFloat(float x1,
float x2,
float x3,
float... list)
|
static int |
minInt(int x1,
int x2,
int x3,
int... list)
|
static long |
minLong(long x1,
long x2,
long x3,
long... list)
|
static int |
mod(int x,
int y)
|
static long |
mod(long x,
long y)
|
static String[] |
patternArray(String patternSet)
|
static int |
random(int x)
|
static long |
random(long x)
|
static double |
rmod(double x,
double y)
|
static double |
rmod2(double x,
double y)
|
static double |
rround(double x)
|
static void |
setDebug(boolean state)
|
static int |
signum(int x)
|
static long |
signum(long x)
|
static double |
signZN(double x)
|
static double |
signZP(double x)
|
static double |
sin_deg(double x)
|
static double |
squared(double x)
|
static double |
tan_deg(double x)
|
static double |
to_degree(double x)
|
static double |
to_radian(double x)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEFORE_PATTERN
protected static final int BEFORE_PATTERN
- See Also:
- Constant Field Values
BEFORE_DECIMAL
protected static final int BEFORE_DECIMAL
- See Also:
- Constant Field Values
AFTER_DECIMAL
protected static final int AFTER_DECIMAL
- See Also:
- Constant Field Values
AFTER_PATTERN
protected static final int AFTER_PATTERN
- See Also:
- Constant Field Values
patternSymbols
protected static final String patternSymbols
- See Also:
- Constant Field Values
acos_deg
public static double acos_deg(double x)
acot
public static double acot(double x)
acot2
public static double acot2(double a,
double b)
acot_deg
public static double acot_deg(double x)
acot2_deg
public static double acot2_deg(double a,
double b)
asin_deg
public static double asin_deg(double x)
atan_deg
public static double atan_deg(double x)
atan2_deg
public static double atan2_deg(double a,
double b)
cos_deg
public static double cos_deg(double x)
cot
public static double cot(double x)
cot_deg
public static double cot_deg(double x)
div
public static int div(int x,
int y)
div
public static long div(long x,
long y)
interpolate
public static double interpolate(double x0,
double x,
double x1,
double y0,
double y1)
interpolateModular
public static double interpolateModular(double x0,
double x,
double x1,
double y0,
double y1,
double modulus)
interpolateModular
public static double interpolateModular(double x0,
double x,
double x1,
double y0,
double y1,
double modulus,
boolean signedResult)
interpolate
public static double interpolate(double[] xa,
double[] ya,
double x)
interpolate
public static double interpolate(double[] xx,
double[] yy,
double x,
double maxSpan)
interpolateModular
public static double interpolateModular(double[] xa,
double[] ya,
double x,
double modulus)
interpolateModular
public static double interpolateModular(double[] xa,
double[] ya,
double x,
double modulus,
double maxSpan)
interpolateModular
public static double interpolateModular(double[] xa,
double[] ya,
double x,
double modulus,
boolean signedResult)
interpolateModular
public static double interpolateModular(double[] xa,
double[] ya,
double x,
double modulus,
double maxSpan,
boolean signedResult)
ifloor
public static int ifloor(double x)
iceil
public static int iceil(double x)
iround
public static int iround(double x)
log2
public static double log2(double x)
minInt
public static int minInt(int x1,
int x2,
int x3,
int... list)
minLong
public static long minLong(long x1,
long x2,
long x3,
long... list)
minFloat
public static float minFloat(float x1,
float x2,
float x3,
float... list)
minDouble
public static double minDouble(double x1,
double x2,
double x3,
double... list)
maxInt
public static int maxInt(int x1,
int x2,
int x3,
int... list)
maxLong
public static long maxLong(long x1,
long x2,
long x3,
long... list)
maxFloat
public static float maxFloat(float x1,
float x2,
float x3,
float... list)
maxDouble
public static double maxDouble(double x1,
double x2,
double x3,
double... list)
mod
public static int mod(int x,
int y)
mod
public static long mod(long x,
long y)
random
public static int random(int x)
random
public static long random(long x)
rmod
public static double rmod(double x,
double y)
rmod2
public static double rmod2(double x,
double y)
rround
public static double rround(double x)
signum
public static int signum(int x)
signum
public static long signum(long x)
signZN
public static double signZN(double x)
signZP
public static double signZP(double x)
sin_deg
public static double sin_deg(double x)
squared
public static double squared(double x)
tan_deg
public static double tan_deg(double x)
to_degree
public static double to_degree(double x)
to_radian
public static double to_radian(double x)
limitNeg1to1
public static double limitNeg1to1(double x)
limitNeg1to1
public static double limitNeg1to1(double x,
double tolerance)
format
public static String format(String fmt,
double x)
format
public static String format(String fmt,
double x,
Locale locale)
format
public static String format(String fmt,
double x,
DecimalFormatSymbols dfs)
getPatternPrecision
public static int getPatternPrecision(String pattern)
patternArray
public static String[] patternArray(String patternSet)
setDebug
public static void setDebug(boolean state)