summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2025-02-13 23:01:30 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2025-02-13 23:01:30 +0100
commit43f3622a7ac5c2fb95fd6fb55ab55269949b0295 (patch)
treefddf1a7b5388a68d3635edc5f266d5b93a87b0dc /content
parent67f9885f382d2227675abbcd469d9bdd219cb429 (diff)
add binomial2 to optional
Diffstat (limited to 'content')
-rw-r--r--content/math/math.tex15
1 files changed, 9 insertions, 6 deletions
diff --git a/content/math/math.tex b/content/math/math.tex
index fdf7081..4f466cf 100644
--- a/content/math/math.tex
+++ b/content/math/math.tex
@@ -392,16 +392,19 @@ so gilt
\end{methods}
\sourcecode{math/binomial1.cpp}
+ \optional{
+ \begin{methods}
+ \method{calc\_binom}{berechnet Primfaktoren vom Binomialkoeffizient}{n\*\log(n)}
+ \end{methods}
+ \opthint \\
+ \textbf{WICHTIG:} braucht alle Primzahlen $\leq n$
+ \sourcecode{math/binomial2.cpp}
+ }
+
\begin{methods}
\method{calc\_binom}{berechnet Binomialkoeffizient modulo Primzahl $p$}{p-n}
\end{methods}
\sourcecode{math/binomial3.cpp}
-
-% \begin{methods}
-% \method{calc\_binom}{berechnet Primfaktoren vom Binomialkoeffizient}{n}
-% \end{methods}
-% \textbf{WICHTIG:} braucht alle Primzahlen $\leq n$
-% \sourcecode{math/binomial2.cpp}
%\end{algorithm}
\paragraph{\textsc{Catalan}-Zahlen}