Hilfe:Formeln: Unterschied zwischen den Versionen

Aus VoWi
Zur Navigation springen Zur Suche springen
K (→‎Basics: +\approx)
 
(26 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
Formeln werden in <code>&lt;math></code>-Tags eingeschlossen.
{{Hilfeleiste}}
Diese Seite zeigt wie du im {{SITENAME}} Formeln eingeben kannst. Für eine ausführlichere Dokumentation, siehe [[de.wikipedia:Hilfe:TeX|Wikipedia]].


== Basics ==
== Basics ==


ASCII-Zeichen können grundsätzlich direkt eingegeben werden. Geschwungene Klammern werden für Parameter verwendet und benötigen einen vorangestellten Backslash um sichtbar zu werden.
Um eine Formel einzufügen schreibe z.B. <code>&lt;math>a^2 + b_x = c^{10}&lt;/math></code>, was das Bild <math>a^2+b_x=c^{10}</math> erzeugt.


{| class="paddedtable"
Der Text im math-Tag ist TeX-Code. In TeX gibst du Formeln durch Befehle beschreiben. Befehle beginnen mit einem Backslash.
| <code>\ge</code> || <math>\ge</math>
 
|-
<big>{</big> \{        <big>}</big> \}        <big>·</big> \cdot
| <code>\le</code> || <math>\le</math>
<big>≤</big> \le        <big>≥</big> \ge       <big>≠</big> \neq
|-
<big>∀</big> \forall    <big>∃</big> \exists    <big>∈</big> \in
| <code>x^2_3</code> || <math>x^2_3</math>
<big>∧</big> \land      <big>∨</big> \lor      <big>¬</big> \neg
|-
<big>∪</big> \cup      <big></big> \cap      <big>∞</big> \infty
| <code>x^{n+1}</code> || <math>x^{n+1}</math>
<big>⊂</big> \subset    <big>⊃</big> \supset    <big>≡</big> \equiv
|-
<big>⊆</big> \subseteq  <big>⊇</big> \supseteq  <big>×</big> \times
| <code>\frac{a}{b}</code> || <math>\frac{a}{b}</math>
<big>←</big> \larr      <big></big> \harr      <big>→</big> \rarr
|-
<big>⇐</big> \Larr      <big>⇔</big> \Harr      <big>⇒</big> \Rarr
| <code>\mathbb{R}</code> || <math>\mathbb{R}</math>
<big>↦</big> \mapto    <big>⟺</big> \iff    <big></big> \implies
|-
<big></big> \approx
| <code>\forall</code> || <math>\forall</math>
 
|-
Manche Befehle unterstützten Argumente. Erforderte Argumente werden in {} übergeben, optionale Argumente in [].
| <code>\exists</code> || <math>\exists</math>
 
|-
Manche Befehle erwarten Argumente, welche in geschwungenen Klammern übergeben werden.
| <code>\Rarr</code> || <math>\Rarr</math>
 
|-
;Text in Formeln
| <code>\implies</code> || <math>\implies</math>
:<code>3 \text{ Äpfel}</code> &rarr; <math>3 \text{ Äpfel}</math>
|-
;Brüche
| <code>\in</code> || <math>\in</math>
:<code>\frac{a+b}{b}</code> &rarr; <math>\frac{a+b}{b}</math>
|-
;Wurzeln
| <code>\cap</code> || <math>\cap</math>
:<code>\sqrt{x}</code>, <code>\sqrt[3]{x}</code> &rarr; <math>\sqrt{x}</math>, <math>\sqrt[3]{x}</math>
|-
;Zahlenmengen
| <code>\cup</code> || <math>\cup</math>
:<code>\N, \Z, \Q, \R, \C, \mathbb{X}</code> &rarr; <math>\N, \Z, \Q, \R, \C, \mathbb{X}</math>
|}
;Summe, Produkt und Integral
:<code>\sum_{i=1}^n, \prod_{i=1}^n, \int_0^\infty</code> &rarr; <math>\sum_{i=1}^n, \prod_{i=1}^n, \int_0^\infty</math>
;[[Hilfe:Greek Sheet|Griechische Buchstaben]]
:Können mit <code>\Name</code> für Großbuchstaben und <code>\name</code> für Kleinbuchstaben angegeben werden.
;Funktionen und Operatoren
:<code>\log</code>, <code>\ln</code>, <code>\sin</code>, <code>\cos</code>, <code>\tan</code>, <code>\lim</code>
;Horizontale Klammern
:<code>\overbrace{a+b}^{c}</code> &rarr; <math>\overbrace{a+b}^c</math>


== Mehrzeilige Formeln ==
== Mehrzeilige Formeln ==
Zeile 39: Zeile 47:
<pre>
<pre>
\begin{align}
\begin{align}
2x & = 4 && |/2\\
2x & = 4 && |\; /2\\
x & = 2
x & = 2
\end{align}
\end{align}
Zeile 45: Zeile 53:
<math>
<math>
\begin{align}
\begin{align}
2x & = 4 && |/2\\
2x & = 4 && |\; /2\\
x & = 2
x & = 2
\end{align}
\end{align}
Zeile 77: Zeile 85:
\end{matrix}
\end{matrix}
</math>
</math>
* smallmatrix <small>x</small>
{| class="col-2-center paddedtable"
* pmatrix (x)
| smallmatrix || <small>A</small>
* bmatrix [x]
|-
* Bmatrix {x}
| pmatrix || (A)
* vmatrix |x|
|-
* Vmatrix ||x||
| bmatrix || [A]
|-
| Bmatrix || {A}
|-
| vmatrix || <nowiki>|A|</nowiki>
|-
| Vmatrix || <nowiki>||A||</nowiki>
|}
</div>
</div>
== Links ==
Nicht alle AMS-LaTeX-Befehle werden unterstützt!
* [ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf Short Math Guide for LaTeX]
* [http://detexify.kirelabs.org/classify.html Detexify] (nicht alle Symbole werden von MediaWiki unterstützt)

Aktuelle Version vom 22. Oktober 2019, 06:42 Uhr

Mitmachen · Wikisyntax · Formeln · Mission · Policy · FAQ

Diese Seite zeigt wie du im VoWi Formeln eingeben kannst. Für eine ausführlichere Dokumentation, siehe Wikipedia.

Basics[Bearbeiten | Quelltext bearbeiten]

Um eine Formel einzufügen schreibe z.B. <math>a^2 + b_x = c^{10}</math>, was das Bild erzeugt.

Der Text im math-Tag ist TeX-Code. In TeX gibst du Formeln durch Befehle beschreiben. Befehle beginnen mit einem Backslash.

{ \{         } \}         · \cdot
 \le         \ge         \neq
 \forall     \exists     \in
 \land       \lor       ¬ \neg
 \cup        \cap        \infty
 \subset     \supset     \equiv
 \subseteq   \supseteq  × \times
 \larr       \harr       \rarr
 \Larr       \Harr       \Rarr
 \mapto     \iff      \implies
 \approx

Manche Befehle unterstützten Argumente. Erforderte Argumente werden in {} übergeben, optionale Argumente in [].

Manche Befehle erwarten Argumente, welche in geschwungenen Klammern übergeben werden.

Text in Formeln
3 \text{ Äpfel}
Brüche
\frac{a+b}{b}
Wurzeln
\sqrt{x}, \sqrt[3]{x},
Zahlenmengen
\N, \Z, \Q, \R, \C, \mathbb{X}
Summe, Produkt und Integral
\sum_{i=1}^n, \prod_{i=1}^n, \int_0^\infty
Griechische Buchstaben
Können mit \Name für Großbuchstaben und \name für Kleinbuchstaben angegeben werden.
Funktionen und Operatoren
\log, \ln, \sin, \cos, \tan, \lim
Horizontale Klammern
\overbrace{a+b}^{c}

Mehrzeilige Formeln[Bearbeiten | Quelltext bearbeiten]

Zeilenumbrüche \\ dürfen nur in mehrzeiligen Umgebungen vorkommen.

\begin{align}
2x & = 4 && |\; /2\\
x & = 2
\end{align}

f(n)=\begin{cases}
n,  & \text{wenn }n\text{ gerade,}\\
-n, & \text{wenn }n\text{ ungerade.}
\end{cases}

\begin{matrix}
 x & y\\
 z & v
\end{matrix}

smallmatrix A
pmatrix (A)
bmatrix [A]
Bmatrix {A}
vmatrix |A|
Vmatrix ||A||

Links[Bearbeiten | Quelltext bearbeiten]

Nicht alle AMS-LaTeX-Befehle werden unterstützt!