summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorkittobi1992 <kittobi1992@users.noreply.github.com>2014-11-25 11:21:47 +0100
committerkittobi1992 <kittobi1992@users.noreply.github.com>2014-11-25 11:21:47 +0100
commita3bc266cd5da72f904065b3f0c4605bf9cfe98d7 (patch)
tree063e716431bd60158ce50d0b0e40b749e23ddf3d /java
parent0929a42d629e3fa1186ad6d5bb970130f9e028c5 (diff)
BigInteger documentation
Diffstat (limited to 'java')
-rw-r--r--java/BigInteger.tex17
1 files changed, 17 insertions, 0 deletions
diff --git a/java/BigInteger.tex b/java/BigInteger.tex
new file mode 100644
index 0000000..586b0cb
--- /dev/null
+++ b/java/BigInteger.tex
@@ -0,0 +1,17 @@
+\subsection{BigInteger}
+
+Hier ein kleiner überblick über die Methoden der Klasse BigInteger: \\
+
+\begin{enumerate}
+\item BigInteger add(BigInteger val), multiply(BigInteger val), divide(BigInteger val), substract(BigInteger val) \\
+Returns this +,*,/,- val
+\item BigInteger pow(BigInteger e) \\ Returns this\(^e\)
+\item BigInteger and(BigInteger val), or(BigInteger val), xor(BigInteger val), not(), shiftLeft(int n), shiftRight(int n) \\
+Bit-Operations
+\item BigInteger gcd(BigInteger val) \\ Returns the greatest common divisor of abs(this) and abs(val)
+\item BigInteger mod(BigInteger m), modInverse(BigInteger m), modPow(BigInteger e, BigInteger m) \\
+Returns this mod m, this\(^{-1}\) mod m, this\(^e\) mod m
+\item BigInteger nextProbablePrime() \\ Returns the next number that is greater than this and that is probably a prime.
+\item int intValue(), long longValue(), float floatValue(), double doubleValue() \\
+Converting BigInteger. Attention: If the BigInteger is to big the lowest bits were choosen which fits into the converted data-type.
+\end{enumerate}