public final class org.apache.commons.math3.util.MathUtils
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.commons.math3.util.MathUtils
super_class: java.lang.Object
{
public static final double TWO_PI;
descriptor: D
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 6.283185307179586
public static final double PI_SQUARED;
descriptor: D
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 9.869604401089358
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/math3/util/MathUtils;
public static int hash(double);
descriptor: (D)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new java.lang.Double
dup
dload 0
invokespecial java.lang.Double.<init>:(D)V
invokevirtual java.lang.Double.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value D
MethodParameters:
Name Flags
value
public static boolean equals(double, double);
descriptor: (DD)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 2 0: new java.lang.Double
dup
dload 0
invokespecial java.lang.Double.<init>:(D)V
new java.lang.Double
dup
dload 2
invokespecial java.lang.Double.<init>:(D)V
invokevirtual java.lang.Double.equals:(Ljava/lang/Object;)Z
ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 x D
0 1 2 y D
MethodParameters:
Name Flags
x
y
public static int hash(double[]);
descriptor: ([D)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.util.Arrays.hashCode:([D)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value [D
MethodParameters:
Name Flags
value
public static double normalizeAngle(double, double);
descriptor: (DD)D
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=4, args_size=2
start local 0 start local 2 0: dload 0
ldc 6.283185307179586
dload 0
ldc 3.141592653589793
dadd
dload 2
dsub
ldc 6.283185307179586
ddiv
invokestatic org.apache.commons.math3.util.FastMath.floor:(D)D
dmul
dsub
dreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 a D
0 1 2 center D
MethodParameters:
Name Flags
a
center
public static <T extends org.apache.commons.math3.RealFieldElement<T>> T max(T, );
descriptor: (Lorg/apache/commons/math3/RealFieldElement;Lorg/apache/commons/math3/RealFieldElement;)Lorg/apache/commons/math3/RealFieldElement;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.apache.commons.math3.RealFieldElement.subtract:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.commons.math3.RealFieldElement
invokeinterface org.apache.commons.math3.RealFieldElement.getReal:()D
dconst_0
dcmpl
iflt 1
aload 0
goto 2
StackMap locals:
StackMap stack:
1: aload 1
StackMap locals:
StackMap stack: org.apache.commons.math3.RealFieldElement
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 e1 TT;
0 3 1 e2 TT;
Signature: <T::Lorg/apache/commons/math3/RealFieldElement<TT;>;>(TT;TT;)TT;
MethodParameters:
Name Flags
e1 final
e2 final
public static <T extends org.apache.commons.math3.RealFieldElement<T>> T min(T, );
descriptor: (Lorg/apache/commons/math3/RealFieldElement;Lorg/apache/commons/math3/RealFieldElement;)Lorg/apache/commons/math3/RealFieldElement;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.apache.commons.math3.RealFieldElement.subtract:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.commons.math3.RealFieldElement
invokeinterface org.apache.commons.math3.RealFieldElement.getReal:()D
dconst_0
dcmpl
iflt 1
aload 1
goto 2
StackMap locals:
StackMap stack:
1: aload 0
StackMap locals:
StackMap stack: org.apache.commons.math3.RealFieldElement
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 e1 TT;
0 3 1 e2 TT;
Signature: <T::Lorg/apache/commons/math3/RealFieldElement<TT;>;>(TT;TT;)TT;
MethodParameters:
Name Flags
e1 final
e2 final
public static double reduce(double, double, double);
descriptor: (DDD)D
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=8, args_size=3
start local 0 start local 2 start local 4 0: dload 2
invokestatic org.apache.commons.math3.util.FastMath.abs:(D)D
dstore 6
start local 6 1: dload 0
dload 6
dload 0
dload 4
dsub
dload 6
ddiv
invokestatic org.apache.commons.math3.util.FastMath.floor:(D)D
dmul
dsub
dload 4
dsub
dreturn
end local 6 end local 4 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 a D
0 2 2 period D
0 2 4 offset D
1 2 6 p D
MethodParameters:
Name Flags
a
period
offset
public static byte copySign(byte, byte);
descriptor: (BB)B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 0
iflt 1
iload 1
ifge 2
1: StackMap locals:
StackMap stack:
iload 0
ifge 3
iload 1
ifge 3
2: StackMap locals:
StackMap stack:
iload 0
ireturn
3: StackMap locals:
StackMap stack:
iload 1
iflt 6
4: iload 0
bipush -128
if_icmpne 6
5: new org.apache.commons.math3.exception.MathArithmeticException
dup
getstatic org.apache.commons.math3.exception.util.LocalizedFormats.OVERFLOW:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
iconst_0
anewarray java.lang.Object
invokespecial org.apache.commons.math3.exception.MathArithmeticException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;[Ljava/lang/Object;)V
athrow
6: StackMap locals:
StackMap stack:
iload 0
ineg
i2b
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 magnitude B
0 7 1 sign B
Exceptions:
throws org.apache.commons.math3.exception.MathArithmeticException
MethodParameters:
Name Flags
magnitude
sign
public static short copySign(short, short);
descriptor: (SS)S
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 0
iflt 1
iload 1
ifge 2
1: StackMap locals:
StackMap stack:
iload 0
ifge 3
iload 1
ifge 3
2: StackMap locals:
StackMap stack:
iload 0
ireturn
3: StackMap locals:
StackMap stack:
iload 1
iflt 6
4: iload 0
sipush -32768
if_icmpne 6
5: new org.apache.commons.math3.exception.MathArithmeticException
dup
getstatic org.apache.commons.math3.exception.util.LocalizedFormats.OVERFLOW:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
iconst_0
anewarray java.lang.Object
invokespecial org.apache.commons.math3.exception.MathArithmeticException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;[Ljava/lang/Object;)V
athrow
6: StackMap locals:
StackMap stack:
iload 0
ineg
i2s
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 magnitude S
0 7 1 sign S
Exceptions:
throws org.apache.commons.math3.exception.MathArithmeticException
MethodParameters:
Name Flags
magnitude
sign
public static int copySign(int, int);
descriptor: (II)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 0
iflt 1
iload 1
ifge 2
1: StackMap locals:
StackMap stack:
iload 0
ifge 3
iload 1
ifge 3
2: StackMap locals:
StackMap stack:
iload 0
ireturn
3: StackMap locals:
StackMap stack:
iload 1
iflt 6
4: iload 0
ldc -2147483648
if_icmpne 6
5: new org.apache.commons.math3.exception.MathArithmeticException
dup
getstatic org.apache.commons.math3.exception.util.LocalizedFormats.OVERFLOW:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
iconst_0
anewarray java.lang.Object
invokespecial org.apache.commons.math3.exception.MathArithmeticException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;[Ljava/lang/Object;)V
athrow
6: StackMap locals:
StackMap stack:
iload 0
ineg
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 magnitude I
0 7 1 sign I
Exceptions:
throws org.apache.commons.math3.exception.MathArithmeticException
MethodParameters:
Name Flags
magnitude
sign
public static long copySign(long, long);
descriptor: (JJ)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 2 0: lload 0
lconst_0
lcmp
iflt 1
lload 2
lconst_0
lcmp
ifge 2
1: StackMap locals:
StackMap stack:
lload 0
lconst_0
lcmp
ifge 3
lload 2
lconst_0
lcmp
ifge 3
2: StackMap locals:
StackMap stack:
lload 0
lreturn
3: StackMap locals:
StackMap stack:
lload 2
lconst_0
lcmp
iflt 6
4: lload 0
ldc -9223372036854775808
lcmp
ifne 6
5: new org.apache.commons.math3.exception.MathArithmeticException
dup
getstatic org.apache.commons.math3.exception.util.LocalizedFormats.OVERFLOW:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
iconst_0
anewarray java.lang.Object
invokespecial org.apache.commons.math3.exception.MathArithmeticException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;[Ljava/lang/Object;)V
athrow
6: StackMap locals:
StackMap stack:
lload 0
lneg
lreturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 magnitude J
0 7 2 sign J
Exceptions:
throws org.apache.commons.math3.exception.MathArithmeticException
MethodParameters:
Name Flags
magnitude
sign
public static void checkFinite(double);
descriptor: (D)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: dload 0
invokestatic java.lang.Double.isInfinite:(D)Z
ifne 1
dload 0
invokestatic java.lang.Double.isNaN:(D)Z
ifeq 2
1: StackMap locals:
StackMap stack:
new org.apache.commons.math3.exception.NotFiniteNumberException
dup
dload 0
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
iconst_0
anewarray java.lang.Object
invokespecial org.apache.commons.math3.exception.NotFiniteNumberException.<init>:(Ljava/lang/Number;[Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 x D
Exceptions:
throws org.apache.commons.math3.exception.NotFiniteNumberException
MethodParameters:
Name Flags
x final
public static void checkFinite(double[]);
descriptor: ([D)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
daload
dstore 2
start local 2 3: dload 2
invokestatic java.lang.Double.isInfinite:(D)Z
ifne 4
dload 2
invokestatic java.lang.Double.isNaN:(D)Z
ifeq 5
4: StackMap locals: double
StackMap stack:
new org.apache.commons.math3.exception.NotFiniteNumberException
dup
getstatic org.apache.commons.math3.exception.util.LocalizedFormats.ARRAY_ELEMENT:Lorg/apache/commons/math3/exception/util/LocalizedFormats;
dload 2
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokespecial org.apache.commons.math3.exception.NotFiniteNumberException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;Ljava/lang/Number;[Ljava/lang/Object;)V
athrow
end local 2 5: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
6: iload 1
aload 0
arraylength
if_icmplt 2
end local 1 7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 val [D
1 7 1 i I
3 5 2 x D
Exceptions:
throws org.apache.commons.math3.exception.NotFiniteNumberException
MethodParameters:
Name Flags
val final
public static void checkNotNull(java.lang.Object, org.apache.commons.math3.exception.util.Localizable, java.lang.Object[]);
descriptor: (Ljava/lang/Object;Lorg/apache/commons/math3/exception/util/Localizable;[Ljava/lang/Object;)V
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnonnull 2
1: new org.apache.commons.math3.exception.NullArgumentException
dup
aload 1
aload 2
invokespecial org.apache.commons.math3.exception.NullArgumentException.<init>:(Lorg/apache/commons/math3/exception/util/Localizable;[Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 o Ljava/lang/Object;
0 3 1 pattern Lorg/apache/commons/math3/exception/util/Localizable;
0 3 2 args [Ljava/lang/Object;
Exceptions:
throws org.apache.commons.math3.exception.NullArgumentException
MethodParameters:
Name Flags
o
pattern
args
public static void checkNotNull(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new org.apache.commons.math3.exception.NullArgumentException
dup
invokespecial org.apache.commons.math3.exception.NullArgumentException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 o Ljava/lang/Object;
Exceptions:
throws org.apache.commons.math3.exception.NullArgumentException
MethodParameters:
Name Flags
o
}
SourceFile: "MathUtils.java"