עזרה:נוסחאות

מתוך ויקיפדיה, האנציקלופדיה החופשית
קפיצה אל: ניווט, חיפוש
עריכת ערכים

קיצור דרך: וק:ענ

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

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

שניתן ליצור גם בלחיצה על הכפתור "נוסחה מתמטית (LaTeX)" בשורת כפתורי העריכה.

טיפ: במידת הצורך ניתן ליצור קישור שכותרתו היא נוסחה מתמטית, דוגמה: הביטוי [[משפט פיתגורס|<math>a^{2}+b^{2}=c^{2}</math>]] יציג את הקישור a^{2}+b^{2}=c^{2}.

תוכן עניינים

[עריכה] סימנים מיוחדים

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

[עריכה] הנמכה, הגבהה

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

[עריכה] שברים, מטריצות, ריבוי שורות

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

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

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

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

\end{matrix}\right.
f(n)=\left\{\begin{matrix} n/2, & \mbox{if }n\mbox{ is even} \\ 3n+1, & \mbox{if }n\mbox{ is odd} \end{matrix}\right.
פונקציות ברירה
(חלוקה למקרים)
(עם יישור טורים)

\psi(x) = \left\{ \begin{array}{lr} 1 & x=0 \\ 0 & x\ne 0 \end{array} \right.
(במקרה זה, יש לרשום את היישור המבוקש - r ימין, c מרכז, l שמאל - לכל עמודה במטריצה)

 \psi(x) = \left\{ \begin{array}{lr} 1 & x=0 \\ 0 & x\ne 0 \end{array} \right.

משוואות רבות שורות \begin{matrix}f(n+1)&=& (n+1)^2 \\ \ & =& n^2 + 2n + 1\end{matrix} \begin{matrix}f(n+1)&=& (n+1)^2 \\ \ & =& n^2 + 2n + 1\end{matrix}
חץ עם כיתובית מעליו A \stackrel{f}{\longrightarrow} B   A \stackrel{f}{\longrightarrow} B

[עריכה] גופנים

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

[עריכה] סוגריים

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

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

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

[עריכה] ריווח

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

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

[עריכה] מערכת צירים

נוסחא

\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}

איך זה נראה 
\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}

[עריכה] ראו גם

[עריכה] הערות וקישורים חיצוניים

כלים אישיים
גרסאות שפה
מרחבי שם
פעולות
ניווט
קהילה
תיבת כלים
דף זה בשפות אחרות
הדפסה/יצוא