איך מוסיפים נוסחאות מתמטיות

מתוך Climbing_Encyclopedia
קפיצה לניווטקפיצה לחיפוש

הכלי המשמש לכתיבת נוסחאות בוויקיפדיה הוא גירסה של LaTeX. התחביר הוא

<math/> נוסחה <math> .

בשביל שביטוי של נוסחה יוצג ("תרונדר" מהפועל to render) כמו שצריך ולא כטקסט רגיל, יש להוסיף את הסימן \ בתחילת הנוסחה, עם רווח אחריו. הוספת הסימן מוסיפה רווח בתחילת הנוסחה, ובכך כופה על הנוסחה להיות מוצגת כתמונה.

למשל הסימון <math>pi</math> יוצג כך: [math]\displaystyle{ pi }[/math]

ואילו הסימן <math>\pi</math> יציג את האות היוונית, כך: [math]\displaystyle{ \pi }[/math]

סימנים מיוחדים

סוג תחביר איך זה נראה
פונקציות רגילות (נכון) \sin x + \ln y +\operatorname{sgn} z [math]\displaystyle{ \sin x + \ln y +\operatorname{sgn} z }[/math]
פונקציות רגילות (לא נכון) sin x + ln y + sgn z [math]\displaystyle{ sin x + ln y + sgn z\, }[/math]
נגזרות \nabla \partial dx [math]\displaystyle{ \nabla \partial dx }[/math]
קבוצות \forall x\not\in \empty \subseteq A\cap B\cup \exists \{x,y\} \times C [math]\displaystyle{ \forall x \not\in \emptyset \subseteq A\cap B\cup \exists \{x,y\} \times C }[/math]
לוגיקה p\wedge \bar{q} \rightarrow p\vee \bar{q} \Rightarrow \Leftrightarrow [math]\displaystyle{ p\wedge \bar{q} \rightarrow p\vee \bar{q} \Rightarrow \Leftrightarrow }[/math]
שורש \sqrt{2}\approx 1.4 [math]\displaystyle{ \sqrt{2}\approx 1.4 }[/math]
\sqrt[n]{x} [math]\displaystyle{ \sqrt[n]{x} }[/math]
יחסים \sim \simeq \cong \le \ge \equiv \approx \ne [math]\displaystyle{ \sim \ \simeq \ \cong \ \le \ \ge \ \equiv \ \approx \ \ne }[/math]
גיאומטרי \angle \perp \| [math]\displaystyle{ \angle \perp \| }[/math]
מיוחד \oplus \otimes \pm \mp \hbar \dagger \ddagger \star \circ \cdot \bullet \infty [math]\displaystyle{ \oplus \otimes \pm \mp \hbar \dagger \ddagger \star \circ \cdot \bullet\ \infty }[/math]

הנמכה, הגבהה

סוג תחביר איך זה נראה
הגבהה a^2 [math]\displaystyle{ \ a^2 }[/math]
הנמכה a_2 [math]\displaystyle{ \ a_2 }[/math]
קיבוץ a^{2+2} [math]\displaystyle{ \ a^{2+2} }[/math]
a_{i,j} [math]\displaystyle{ \ a_{i,j} }[/math]
שילוב הנמכה והגבהה x_2^3 [math]\displaystyle{ \ x_2^3 }[/math]
נגזרת (נכון) x' [math]\displaystyle{ \ x' }[/math]
נגזרת (לא נכון ב-HTML) x^\prime [math]\displaystyle{ \ x^\prime }[/math]
נגזרת (לא נכון ב- PNG) x\prime [math]\displaystyle{ x\prime }[/math]
סכום \sum_{k=1}^N k^2 [math]\displaystyle{ \sum_{k=1}^N k^2 }[/math]
מכפלה \prod_{i=1}^N x_i [math]\displaystyle{ \prod_{i=1}^N x_i }[/math]
גבול \lim_{n \to \infty}x_n [math]\displaystyle{ \lim_{n \to \infty}x_n }[/math]
אינטגרל \int_{-N}^{N} e^x\, dx [math]\displaystyle{ \int_{-N}^{N} e^x\, dx }[/math]
אינטגרל קווי \oint_{C} x^3\, dx + 4y^2\, dy [math]\displaystyle{ \oint_{C} x^3\, dx + 4y^2\, dy }[/math]

שברים, מטריצות, ריבוי שורות

סוג תחביר איך זה נראה
שברים \frac{2}{4} or {2 \over 4} [math]\displaystyle{ \frac{2}{4} }[/math]
מקדמים בינומיים {n \choose k} [math]\displaystyle{ {n \choose k} }[/math]
מטריצות \begin{pmatrix} x & y \\ z & v \end{pmatrix} [math]\displaystyle{ \begin{pmatrix} x & y \\ z & v \end{pmatrix} }[/math]
\begin{bmatrix} 0 & \cdots & 0 \\ \vdots &

\ddots & \vdots \\ 0 & \cdots &

0\end{bmatrix}
[math]\displaystyle{ \begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0\end{bmatrix} }[/math]
\begin{Bmatrix} x & y \\ z & v \end{Bmatrix} [math]\displaystyle{ \begin{Bmatrix} x & y \\ z & v \end{Bmatrix} }[/math]
\begin{vmatrix} x & y \\ z & v \end{vmatrix} [math]\displaystyle{ \begin{vmatrix} x & y \\ z & v \end{vmatrix} }[/math]
\begin{Vmatrix} x & y \\ z & v \end{Vmatrix} [math]\displaystyle{ \begin{Vmatrix} x & y \\ z & v \end{Vmatrix} }[/math]
\begin{matrix} x & y \\ z & v \end{matrix} [math]\displaystyle{ \begin{matrix} x & y \\ z & v \end{matrix} }[/math]
פונקציות ברירה
(חלוקה למקרים)
f(n)=\left\{\begin{matrix} n/2, & \mbox{if }n\mbox{ is

even} \\ 3n+1, & \mbox{if }n\mbox{ is odd}

\end{matrix}\right.
[math]\displaystyle{ f(n)=\left\{\begin{matrix} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{matrix}\right. }[/math]
משוואות רבות שורות \begin{matrix}f(n+1)&=& (n+1)^2 \\ \ & =& n^2 + 2n + 1\end{matrix} [math]\displaystyle{ \begin{matrix}f(n+1)&=& (n+1)^2 \\ \ & =& n^2 + 2n + 1\end{matrix} }[/math]

גופנים

סוג תחביר איך זה נראה
אותיות יווניות \alpha \beta \gamma \Gamma \phi \Phi \Psi\ \tau \Omega [math]\displaystyle{ \alpha\ \beta\ \gamma\ \Gamma\ \phi\ \Phi\ \Psi\ \tau\ \Omega }[/math]
אותיות יווניות (ואריאנטים) \varepsilon \vartheta \varpi \varsigma \varphi \varkappa [math]\displaystyle{ \varepsilon\ \vartheta\ \varpi\ \varsigma\ \varphi\ \varkappa }[/math]
חלול (סימונים שמורים לקבוצות) x\in\mathbb{R}\sub\mathbb{C} [math]\displaystyle{ x\in\mathbb{R}\subset\mathbb{C} }[/math]
מודגש (לוקטורים) \mathbf{x}\cdot\mathbf{y} = 0 [math]\displaystyle{ \mathbf{x}\cdot\mathbf{y} = 0 }[/math]
חץ עליון (לוקטורים) \vec F = m \vec a [math]\displaystyle{ \vec F = m \vec a }[/math]
מודגש (יווני) \boldsymbol{\alpha}+\boldsymbol{\beta}+\boldsymbol{\gamma} [math]\displaystyle{ \boldsymbol{\alpha}+\boldsymbol{\beta}+\boldsymbol{\gamma} }[/math]
פרקטור \mathfrak{a} \mathfrak{B} [math]\displaystyle{ \mathfrak{a} \mathfrak{B} }[/math]
סקריפט \mathcal{ABC} [math]\displaystyle{ \mathcal{ABC} }[/math]
אותיות עבריות \aleph \beth \gimel \daleth [math]\displaystyle{ \aleph\ \beth\ \gimel\ \daleth }[/math]
סימנים לא נוטים \mbox{abc} [math]\displaystyle{ \mbox{abc} }[/math]

סוגריים

סוג תחביר איך זה נראה
לא נכון ( \frac{1}{2} ) [math]\displaystyle{ ( \frac{1}{2} ) }[/math]
יותר טוב \left( \frac{1}{2} \right) [math]\displaystyle{ \left ( \frac{1}{2} \right ) }[/math]

אפשר להשתמש בסוגרים שונים עם left\ ו right\

סוג תחביר איך זה נראה
סוגריים \left( A \right) [math]\displaystyle{ \left( A \right) }[/math]
סוגריים מרובעים \left[ A \right] [math]\displaystyle{ \left[ A \right] }[/math]
סוגריים מסולסלים \left\{ A \right\} [math]\displaystyle{ \left\{ A \right\} }[/math]
סוגריים עם זוויות \left\langle A \right\rangle [math]\displaystyle{ \left\langle A \right\rangle }[/math]
קווים אנכיים \left| A \right| [math]\displaystyle{ \left| A \right| }[/math]
השתמשו ב left\ ו right\ אם אתם לא מעוניינים שיופיעו שני הסוגרים \left. {A \over B} \right\} \to X [math]\displaystyle{ \left. {A \over B} \right\} \to X }[/math]

ריווח

שימו לב ש-TeX מנהל את רוב הריווח אוטומטית, השתמשו באופציות אלה אם אתם רוצים ריווח מיוחד בין הסימנים.

סוג תחביר איך זה נראה
רווח מרובע כפול a \qquad b [math]\displaystyle{ a \qquad b }[/math]
רווח מרובע a \quad b [math]\displaystyle{ a \quad b }[/math]
ריווח טקסט a\ b [math]\displaystyle{ a\ b }[/math]
רווח גדול a\;b [math]\displaystyle{ a\;b }[/math]
רווח בינוני a\>b [not supported]
רווח קטן a\,b [math]\displaystyle{ a\,b }[/math]
ללא רווח ab [math]\displaystyle{ ab\, }[/math]
רווח שלילי a\!b [math]\displaystyle{ a\!b }[/math]

מערכת צירים

נוסחא

\begin{bmatrix}
100 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\
90 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\
80 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\
70 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\
60 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\
50 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\
40 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\
30 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\
20 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\
10 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\
0 \cdots 1 \cdots 2 \cdots 3 \cdots 4 \cdots 5 \cdots 6 \cdots 7
\end{bmatrix}

\begin{bmatrix}

500 \\450\\400\\350\\ 300\\250\\ 200\\ 150\\ 100\\ 50\\ 0 \end{bmatrix}

איך זה נראה [math]\displaystyle{ \begin{bmatrix} 100 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\ 90 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\ 80 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\ 70 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\ 60 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\ 50 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\ 40 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\ 30 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\ 20 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\ 10 \cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots\cdots \\ 0 \cdots 1 \cdots 2 \cdots 3 \cdots 4 \cdots 5 \cdots 6 \cdots 7 \end{bmatrix} }[/math] [math]\displaystyle{ \begin{bmatrix} 500 \\450\\400\\350\\ 300\\250\\ 200\\ 150\\ 100\\ 50\\ 0 \end{bmatrix} }[/math]

דוגמאות לדפים עם נוסחאות

חלוקת משקל, איך עובדים אמצעי חיכוך?, חיכוך, דינאמיקה של נפילות

הערות

הדף המקביל בויקיפדיה.


תרמו לדף זה: מיכה יניב ואחרים...