com.google.common.math.BigIntegerMath.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for connecting to the Relayr Cloud
???? 2[ ? ? ? ? ? ?
? ?
?
?
? b ?
? ? O ?
? ?
N ?
? ? N ?
?
?
? ?
?
N ?
?
? ? ? ?
N ? N ? N ? ?
?
?
?
? ?
? ?
?
N ? ?
?
N ?
?
? ?
? ? ? ?
? ? ?
, ?
, ?
, ? ?
? ? ? ? ? ?
? ?
? ? ?
6 ?
? ?
? ?
6 ?
N ? ?
N ? ?
? ?
?
A ?
@$
?@
InnerClasses SQRT2_PRECOMPUTE_THRESHOLD I
ConstantValue RuntimeInvisibleAnnotations 1Lcom/google/common/annotations/VisibleForTesting; SQRT2_PRECOMPUTED_BITS Ljava/math/BigInteger; LN_10 D LN_2 isPowerOfTwo (Ljava/math/BigInteger;)Z Code LineNumberTable LocalVariableTable x
StackMapTable log2 1(Ljava/math/BigInteger;Ljava/math/RoundingMode;)I halfPower x2
logX2Floor mode Ljava/math/RoundingMode; logFloor ? log10 nextPow nextCmp halfPowerSquared approxLog10 approxPow approxCmp floorLog floorPow floorCmp /Lcom/google/common/annotations/GwtIncompatible; value TODO sqrt F(Ljava/math/BigInteger;Ljava/math/RoundingMode;)Ljava/math/BigInteger;
halfSquare sqrtFloor .(Ljava/math/BigInteger;)Ljava/math/BigInteger; sqrt0 shift sqrt1 sqrtApproxWithDoubles divide \(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/RoundingMode;)Ljava/math/BigInteger; p q pDec Ljava/math/BigDecimal; qDec factorial (I)Ljava/math/BigInteger; tz
normalizedNum J normalizedBits num n
approxSize bignums Ljava/util/ArrayList; startingNumber product productBits bits nextPowerOfTwo LocalVariableTypeTable -Ljava/util/ArrayList; ? listProduct ((Ljava/util/List;)Ljava/math/BigInteger; nums Ljava/util/List; (Ljava/util/List; Signature @(Ljava/util/List;)Ljava/math/BigInteger; *(Ljava/util/List;II)Ljava/math/BigInteger; m start end B(Ljava/util/List;II)Ljava/math/BigInteger; binomial (II)Ljava/math/BigInteger; i k accum numeratorAccum denominatorAccum
numeratorBits
fitsInLong ()V this 'Lcom/google/common/math/BigIntegerMath;
SourceFile BigIntegerMath.java -Lcom/google/common/annotations/GwtCompatible; emulated S S S java/math/BigInteger !" ] ^#$ X Y% ?&'( ? java/lang/AssertionError ? ? ? ^)*+ m,- j d e \ [ Z [. Y ? ~/ ~012 z345 } ~6 Y7 ~ ? ~8 ?9:; z<= j>?@ java/math/BigDecimal ?A ?BCD2EFGH jI dJ ?K java/util/ArrayList ?LMN d,71 ? ?OP ? ?QR k (%s) > n (%s) java/lang/ObjectS4TUVW ?X A16a09e667f3bcc908b2fb1366ea957d3e3adec17512775099da2f590b0667322a ?YZ< %com/google/common/math/BigIntegerMath 'com/google/common/math/BigIntegerMath$1 java/lang/Double MAX_EXPONENT "com/google/common/math/DoubleUtils SIGNIFICAND_BITS java/lang/Long SIZE $com/google/common/base/Preconditions checkNotNull &(Ljava/lang/Object;)Ljava/lang/Object; signum ()I getLowestSetBit bitLength (com/google/common/math/MathPreconditions
checkPositive @(Ljava/lang/String;Ljava/math/BigInteger;)Ljava/math/BigInteger; !$SwitchMap$java$math$RoundingMode [I java/math/RoundingMode ordinal checkRoundingUnnecessary (Z)V
shiftRight compareTo (Ljava/math/BigInteger;)I pow longValue ()J com/google/common/math/LongMath (JLjava/math/RoundingMode;)I FLOOR TEN multiply equals (Ljava/lang/Object;)Z checkNonNegative (JLjava/math/RoundingMode;)J valueOf (J)Ljava/math/BigInteger; ONE add shiftLeft bigToDouble (Ljava/math/BigInteger;)D java/lang/Math (D)D HALF_EVEN !com/google/common/math/DoubleMath roundToBigInteger 1(DLjava/math/RoundingMode;)Ljava/math/BigInteger; (Ljava/math/BigInteger;)V G(Ljava/math/BigDecimal;ILjava/math/RoundingMode;)Ljava/math/BigDecimal; toBigIntegerExact ()Ljava/math/BigInteger; (Ljava/lang/String;I)I
factorials [J CEILING com/google/common/math/IntMath (ILjava/math/RoundingMode;)I (IILjava/math/RoundingMode;)I (I)V numberOfTrailingZeros (J)I java/util/List size get (I)Ljava/lang/Object; java/lang/Integer (I)Ljava/lang/Integer;
checkArgument )(ZLjava/lang/String;[Ljava/lang/Object;)V biggestBinomials (II)J (Ljava/lang/String;I)V log 1 N A R S T U V W X Y V W Z [ \ [ ] ^ _ X *? W*? ? *? *? d? ? ? `
8 9 a b Y c @ d e _ h ?*? ? ?
W*? d=? +? .? ? 0 7 7 9 9 H H H*?
? ?*?
? ? `? ? ? d? N*-? ? ?`?*? N-? d6h`? ? `?? Y? ? ` > F
G H L J S M U Q d V k W w Y Z ? \ ? e ? f ? g ? j a > w f Y ? " g Y ? h S ? b Y ? i j ? k S c ! ? L
B ? l? ? lB? m e _ g
*?
W*? ? *? +? ?*? ? ?? k? o?=? ? N-*? 6? ??-? ? N-*? 6??? 7? -? :*? 6? !?N6? -? :*? 6???6-:6? +? .? { / <