Skip to main content
added 170 characters in body
Source Link

there should be more whitespace in the first version (this might be more or less pronounced on your screen, and also depends on the characters within the identifier).

there should be more whitespace in the first version (this might be more or less pronounced on your screen, and also depends on the characters within the identifier).

Roman-face TeX, no need for the ugly italic version. Fix code fragment so it matches what is displayed. Find missing backslash.
Source Link
  • \{ 0, 1 \} gives the two-elements set $\{ 0, 1 \}$
  • \emptyset gives the empty set $\emptyset$
  • A \cup B and A \cap B give $A \cup B$ (union) and $A \cap B$ (intersection)
  • a \in A gives $a \in A$, while b \not\in A gives $b \not\in A$
  • A \subset B or A \subseteq B give $A \subset B$ or $A \subseteq B$
  • Standard sets, usually written in blackboard bold with \mathbb or \Bbb:
    • $\Bbb N$ \Bbb N is some set of natural numbers with ambiguity over whether zero is included or not, so avoid this notation
    • $\Bbb N^0, \Bbb N_0$ \Bbb N^0, \Bbb N_0 is the set of natural numbers starting at zero
    • $\Bbb N^1, \Bbb N_1, \Bbb N^+$ \Bbb N^1, \Bbb N_1, \Bbb N^+ is the set of natural numbers starting at one
    • $\Bbb Z$ \Bbb Z is the ring of integers (from German Zahl)
    • $\Bbb Z^-, \Bbb Z^+, \Bbb Z \setminus \{0\}$ \Bbb Z^-, \Bbb Z^+, \Bbb Z \setminus \{0\} are the sets of negative, positive, and nonzero integers
    • $\Bbb Q$ Bbb\Bbb Q is the field of rational numbers; similarly, $\Bbb Q^-, \Bbb Q^+, \Bbb Q \setminus \{0\}$ \Bbb Q^-, \Bbb Q^+, \Bbb Q \setminus \{0\} for negative, positive, and nonzero
    • $\Bbb R$ \Bbb R is the field of real numbers; similarly, $\Bbb R^-, \Bbb R^+, \Bbb R \setminus \{0\}$ \Bbb R^-, \Bbb R^+, \Bbb R \setminus \{0\} for negative, positive, and nonzero
    • $\Bbb C$ \Bbb C is the field of complex numbers
    • the ring of integers modplo $p$ is alternately written $\Bbb Z/p\Bbb Z$\Bbb Z/p\Bbb z or $\Bbb Z_p$ \Bbb Z_p, but beware $\Bbb Z_p$ also means the $p$-adic integers
    • the multiplicative group of integers modulo $n$ is alternately written $(\Bbb Z/n\Bbb Z)^\times$(\Bbb Z/n\Bbb Z)^\times, $(\Bbb Z/n\Bbb Z)^*$ (\Bbb Z/n\Bbb Z)^*, $\Bbb Z_n^*$ (\Bbb Z/n\Bbb Z)^*, etc.
    • $\operatorname{GF}(p^n), \Bbb F_{p^n}$ \operatorname{GF}(p^n), \Bbb F_{p^n} is the finite field of characteristic $p$ with $p^n$ elements
\begin{gather}
  M :\quadM\colon y^2 = x^3 + 486662 x^2 + x, \\
  E\colon -x^2 + y^2 = 1 - \frac{121665}{121666} x^2 y^2.
\end{gather}
  • \{ 0, 1 \} gives the two-elements set $\{ 0, 1 \}$
  • \emptyset gives the empty set $\emptyset$
  • A \cup B and A \cap B give $A \cup B$ (union) and $A \cap B$ (intersection)
  • a \in A gives $a \in A$, while b \not\in A gives $b \not\in A$
  • A \subset B or A \subseteq B give $A \subset B$ or $A \subseteq B$
  • Standard sets, usually written in blackboard bold with \mathbb or \Bbb:
    • $\Bbb N$ \Bbb N is some set of natural numbers with ambiguity over whether zero is included or not, so avoid this notation
    • $\Bbb N^0, \Bbb N_0$ \Bbb N^0, \Bbb N_0 is the set of natural numbers starting at zero
    • $\Bbb N^1, \Bbb N_1, \Bbb N^+$ \Bbb N^1, \Bbb N_1, \Bbb N^+ is the set of natural numbers starting at one
    • $\Bbb Z$ \Bbb Z is the ring of integers (from German Zahl)
    • $\Bbb Z^-, \Bbb Z^+, \Bbb Z \setminus \{0\}$ \Bbb Z^-, \Bbb Z^+, \Bbb Z \setminus \{0\} are the sets of negative, positive, and nonzero integers
    • $\Bbb Q$ Bbb Q is the field of rational numbers; similarly, $\Bbb Q^-, \Bbb Q^+, \Bbb Q \setminus \{0\}$ \Bbb Q^-, \Bbb Q^+, \Bbb Q \setminus \{0\} for negative, positive, and nonzero
    • $\Bbb R$ \Bbb R is the field of real numbers; similarly, $\Bbb R^-, \Bbb R^+, \Bbb R \setminus \{0\}$ \Bbb R^-, \Bbb R^+, \Bbb R \setminus \{0\} for negative, positive, and nonzero
    • $\Bbb C$ \Bbb C is the field of complex numbers
    • the ring of integers modplo $p$ is alternately written $\Bbb Z/p\Bbb Z$\Bbb Z/p\Bbb z or $\Bbb Z_p$ \Bbb Z_p, but beware $\Bbb Z_p$ also means the $p$-adic integers
    • the multiplicative group of integers modulo $n$ is alternately written $(\Bbb Z/n\Bbb Z)^\times$(\Bbb Z/n\Bbb Z)^\times, $(\Bbb Z/n\Bbb Z)^*$ (\Bbb Z/n\Bbb Z)^*, $\Bbb Z_n^*$ (\Bbb Z/n\Bbb Z)^*, etc.
    • $\operatorname{GF}(p^n), \Bbb F_{p^n}$ \operatorname{GF}(p^n), \Bbb F_{p^n} is the finite field of characteristic $p$ with $p^n$ elements
\begin{gather}
  M :\quad y^2 = x^3 + 486662 x^2 + x, \\
  E\colon -x^2 + y^2 = 1 - \frac{121665}{121666} x^2 y^2.
\end{gather}
  • \{ 0, 1 \} gives the two-elements set $\{ 0, 1 \}$
  • \emptyset gives the empty set $\emptyset$
  • A \cup B and A \cap B give $A \cup B$ (union) and $A \cap B$ (intersection)
  • a \in A gives $a \in A$, while b \not\in A gives $b \not\in A$
  • A \subset B or A \subseteq B give $A \subset B$ or $A \subseteq B$
  • Standard sets, usually written in blackboard bold with \mathbb or \Bbb:
    • $\Bbb N$ \Bbb N is some set of natural numbers with ambiguity over whether zero is included or not, so avoid this notation
    • $\Bbb N^0, \Bbb N_0$ \Bbb N^0, \Bbb N_0 is the set of natural numbers starting at zero
    • $\Bbb N^1, \Bbb N_1, \Bbb N^+$ \Bbb N^1, \Bbb N_1, \Bbb N^+ is the set of natural numbers starting at one
    • $\Bbb Z$ \Bbb Z is the ring of integers (from German Zahl)
    • $\Bbb Z^-, \Bbb Z^+, \Bbb Z \setminus \{0\}$ \Bbb Z^-, \Bbb Z^+, \Bbb Z \setminus \{0\} are the sets of negative, positive, and nonzero integers
    • $\Bbb Q$ \Bbb Q is the field of rational numbers; similarly, $\Bbb Q^-, \Bbb Q^+, \Bbb Q \setminus \{0\}$ \Bbb Q^-, \Bbb Q^+, \Bbb Q \setminus \{0\} for negative, positive, and nonzero
    • $\Bbb R$ \Bbb R is the field of real numbers; similarly, $\Bbb R^-, \Bbb R^+, \Bbb R \setminus \{0\}$ \Bbb R^-, \Bbb R^+, \Bbb R \setminus \{0\} for negative, positive, and nonzero
    • $\Bbb C$ \Bbb C is the field of complex numbers
    • the ring of integers modplo $p$ is alternately written $\Bbb Z/p\Bbb Z$\Bbb Z/p\Bbb z or $\Bbb Z_p$ \Bbb Z_p, but beware $\Bbb Z_p$ also means the $p$-adic integers
    • the multiplicative group of integers modulo $n$ is alternately written $(\Bbb Z/n\Bbb Z)^\times$(\Bbb Z/n\Bbb Z)^\times, $(\Bbb Z/n\Bbb Z)^*$ (\Bbb Z/n\Bbb Z)^*, $\Bbb Z_n^*$ (\Bbb Z/n\Bbb Z)^*, etc.
    • $\operatorname{GF}(p^n), \Bbb F_{p^n}$ \operatorname{GF}(p^n), \Bbb F_{p^n} is the finite field of characteristic $p$ with $p^n$ elements
\begin{gather}
  M\colon y^2 = x^3 + 486662 x^2 + x, \\
  E\colon -x^2 + y^2 = 1 - \frac{121665}{121666} x^2 y^2.
\end{gather}
Roman-face TeX, no need for the ugly italic version.
Source Link

Braces / curly brackets {} are used to group expressions / symbols together within $\TeX$$\mathrm\TeX$. You need to use the backslash \ escape character to use one within an expression: \{\} gives you $\{\}$. Parentheses () and (square) brackets can be used as-is, for instance in a range $[0, 10)$ is just [0, 10).

The following sections will show common contents of math blocks. There are however other ways of finding out how to use $\TeX$$\mathrm\TeX$:

Most cryptographic functions are undefined in the $\TeX$$\mathrm\TeX$ packages; it is however important to make sure they are not confused with identifiers.

Braces / curly brackets {} are used to group expressions / symbols together within $\TeX$. You need to use the backslash \ escape character to use one within an expression: \{\} gives you $\{\}$. Parentheses () and (square) brackets can be used as-is, for instance in a range $[0, 10)$ is just [0, 10).

The following sections will show common contents of math blocks. There are however other ways of finding out how to use $\TeX$:

Most cryptographic functions are undefined in the $\TeX$ packages; it is however important to make sure they are not confused with identifiers.

Braces / curly brackets {} are used to group expressions / symbols together within $\mathrm\TeX$. You need to use the backslash \ escape character to use one within an expression: \{\} gives you $\{\}$. Parentheses () and (square) brackets can be used as-is, for instance in a range $[0, 10)$ is just [0, 10).

The following sections will show common contents of math blocks. There are however other ways of finding out how to use $\mathrm\TeX$:

Most cryptographic functions are undefined in the $\mathrm\TeX$ packages; it is however important to make sure they are not confused with identifiers.

Tiny typo.
Source Link
TRiG
  • 109
  • 3
Loading
added 69 characters in body
Source Link
Loading
added 69 characters in body
Source Link
Loading
Settle a dispute by fiat.
Source Link
Loading
Various improvements.
Source Link
Loading
match rendered output to given example code
Source Link
Loading
added 4 characters in body
Source Link
Loading
Extended answer.
Source Link
AleksanderCH
  • 6.5k
  • 1
  • 9
  • 8
Loading
corrected some mistakes, removed \leq in favor of \le
Source Link
Loading
added 202 characters in body
Source Link
Loading
More some of the less imple things from beginning to the new section on sets
Source Link
fgrieu Mod
  • 151.3k
  • 14
  • 18
Loading
Add sets ,minor simplifications, fix sup- into sub-, remove alternative `\mathcal{O}(n)` for big-O which is infrequent
Source Link
fgrieu Mod
  • 151.3k
  • 14
  • 18
Loading
Change modulo entries
Source Link
fgrieu Mod
  • 151.3k
  • 14
  • 18
Loading
typo
Source Link
fgrieu Mod
  • 151.3k
  • 14
  • 18
Loading
made modulus readable again, removed *explanation* of modulus (these are *formatting* hints), changed order again so often used identifiers are put first, changed shifts / rotates, added newline trick with double backslash
Source Link
Loading
More
Source Link
fgrieu Mod
  • 151.3k
  • 14
  • 18
Loading
Use \frac rather than \over (the later if TeX, not LaTeX, and can given inconsistent results). Distingusih remainder from modulo
Source Link
fgrieu Mod
  • 151.3k
  • 14
  • 18
Loading
Source Link
Loading
Post Made Community Wiki by Maarten BodewesMod