Bantuan:Menampilkan rumus

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Langsung ke: navigasi, cari
Gtk-redo-ltr.svg WP:MATH

MediaWiki menggunakan subset markah AMS-LaTeX, yaitu sebuah superset markah LaTeX yang menghasilkan superset markah TeX untuk menampilkan formula matematika. Subset ini menghasilkan gambar PNG ataupun markah HTML sederhana, tergantung preferensi pengguna dan kerumitan rumusnya. Ketika peramban web semakin canggih, subset ini akan mampu menghasilkan HTML dan MathML yang termutakhirkan (lihat blahtex untuk informasi mengenai upaya menambahkan dukungan untuk MathML.)

TeX vs HTML[sunting | sunting sumber]

Sebelum memperkenalkan markah TeX untuk menghasilkan karakter-karakter istimewa, perlu diketahui bahwa sebagaimana tabel perbandingan di bawah ini, hasil sejenis kadang dapat diperoleh melalui HTML (lihat Bantuan:Karakter istimewa).

Sintaks TeX (PNG) Hasil Sintaks HTML Hasil
<math>\alpha\,\!</math> \alpha\,\! {{math|<var>&alpha;</var>}} α
<math>\sqrt{2}</math> \sqrt{2} {{math|{{radical|2}}}} 2
<math>\sqrt{1-e^2}</math> \sqrt{1-e^2}\! {{math|{{radical|1 − ''e''²}}}} 1 − e²

Kode di sebelah kiri menghasilkan simbol-simbol di sebelah kanan, namun simbol-simbol tersebut dapat pula langsung diletakkan di teks wiki, kecuali ‘=’.

-->
&alpha; &beta; &gamma; &delta; &epsilon; &zeta;
&eta; &theta; &iota; &kappa; &lambda; &mu; &nu;
&xi; &omicron; &pi; &rho; &sigma; &sigmaf;
&tau; &upsilon; &phi; &chi; &psi; &omega;
&Gamma; &Delta; &Theta; &Lambda; &Xi; &Pi;
&Sigma; &Phi; &Psi; &Omega;
α β γ δ ε ζ
η θ ι κ λ μ ν
ξ ο π ρ σ ς
τ υ φ χ ψ ω
Γ Δ Θ Λ Ξ Π
Σ Φ Ψ Ω
&int; &sum; &prod; &radic; &minus; &plusmn; &infin;
&asymp; &prop; {{=}} &equiv; &ne; &le; &ge; 
&times; &middot; &divide; &part; &prime; &Prime;
&nabla; &permil; &deg; &there4; &Oslash; &oslash;
&isin; &notin; 
&cap; &cup; &sub; &sup; &sube; &supe;
&not; &and; &or; &exist; &forall; 
&rArr; &hArr; &rarr; &harr; &uarr; 
&alefsym; - &ndash; &mdash; 
∫ ∑ ∏ √ − ± ∞
≈ ∝ = ≡ ≠ ≤ ≥
× · ÷ ∂ ′ ″
∇ ‰ ° ∴ Ø ø
∈ ∉ ∩ ∪ ⊂ ⊃ ⊆ ⊇
¬ ∧ ∨ ∃ ∀
⇒ ⇔ → ↔ ↑
ℵ - – —

Proyek ini menggunakan HTML dan TeX karena masing-masing memiliki keuntungan dalam kondisi tertentu.

Fungsi, simbol, karakter istimewa[sunting | sunting sumber]

Aksen/diakritik[sunting | sunting sumber]

\dot{a}, \ddot{a}, \acute{a}, \grave{a} \dot{a}, \ddot{a}, \acute{a}, \grave{a} \!
\check{a}, \breve{a}, \tilde{a}, \bar{a} \check{a}, \breve{a}, \tilde{a}, \bar{a} \!
\hat{a}, \widehat{a}, \vec{a} \hat{a}, \widehat{a}, \vec{a} \!

Fungsi standar[sunting | sunting sumber]

\exp_a b = a^b, \exp b = e^b, 10^m \exp_a b = a^b, \exp b = e^b, 10^m \!
\ln c, \lg d = \log e, \log_{10} f \ln c, \lg d = \log e, \log_{10} f \!
\sin a, \cos b, \tan c, \cot d, \sec e, \csc f \sin a, \cos b, \tan c, \cot d, \sec e, \csc f\!
\arcsin h, \arccos i, \arctan j \arcsin h, \arccos i, \arctan j \!
\sinh k, \cosh l, \tanh m, \coth n \sinh k, \cosh l, \tanh m, \coth n \!
\operatorname{sh}\,k, \operatorname{ch}\,l, \operatorname{th}\,m, \operatorname{coth}\,n \operatorname{sh}\,k, \operatorname{ch}\,l, \operatorname{th}\,m, \operatorname{coth}\,n \!
\operatorname{argsh}\,o, \operatorname{argch}\,p, \operatorname{argth}\,q \operatorname{argsh}\,o, \operatorname{argch}\,p, \operatorname{argth}\,q \!
\sgn r, \left\vert s \right\vert \sgn r, \left\vert s \right\vert \!

Ikatan[sunting | sunting sumber]

\min x, \max y, \inf s, \sup t \min x, \max y, \inf s, \sup t \!
\lim u, \liminf v, \limsup w \lim u, \liminf v, \limsup w \!
\dim p, \deg q, \det m, \ker\phi \dim p, \deg q, \det m, \ker\phi \!

Proyeksi[sunting | sunting sumber]

\Pr j, \hom l, \lVert z \rVert, \arg z \Pr j, \hom l, \lVert z \rVert, \arg z \!

Diferensial dan turunan[sunting | sunting sumber]

dt, \operatorname{d}t, \partial t, \nabla\psi dt, \operatorname{d}t, \partial t, \nabla\psi\!
\operatorname{d}y/\operatorname{d}x, {\operatorname{d}y\over\operatorname{d}x}, {\partial^2\over\partial x_1\partial x_2}y \operatorname{d}y/\operatorname{d}x,{\operatorname{d}y\over\operatorname{d}x}, {\partial^2\over\partial x_1\partial x_2}y \!
\prime, \backprime, f^\prime, f', f'', f^{(3)}, \dot y, \ddot y \prime, \backprime, f^\prime, f', f'', f^{(3)} \!, \dot y, \ddot y

Simbol atau konstanta mirip huruf[sunting | sunting sumber]

\infty, \alef, \complement, \backepsilon, \eth, \Finv, \hbar \infty, \alef, \complement, \backepsilon, \eth, \Finv, \hbar \!
\Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS \Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS \!

Aritmetika modular[sunting | sunting sumber]

s_k \equiv 0 \pmod{m} s_k \equiv 0 \pmod{m} \!
a\,\bmod\,b a\,\bmod\,b \!
\gcd(m, n), \operatorname{lcm}(m, n) \gcd(m, n), \operatorname{lcm}(m, n)
\mid, \nmid, \shortmid, \nshortmid \mid, \nmid, \shortmid, \nshortmid \!

Akar[sunting | sunting sumber]

\surd, \sqrt{2}, \sqrt[n]{}, \sqrt[3]{x^3+y^3 \over 2} \surd, \sqrt{2}, \sqrt[n]{}, \sqrt[3]{x^3+y^3 \over 2} \!

Operator[sunting | sunting sumber]

+, -, \pm, \mp, \dotplus +, -, \pm, \mp, \dotplus \!
\times, \div, \divideontimes, /, \backslash \times, \div, \divideontimes, /, \backslash \!
\cdot, * \ast, \star, \circ, \bullet \cdot, * \ast, \star, \circ, \bullet \!
\boxplus, \boxminus, \boxtimes, \boxdot \boxplus, \boxminus, \boxtimes, \boxdot \!
\oplus, \ominus, \otimes, \oslash, \odot \oplus, \ominus, \otimes, \oslash, \odot\!
\circleddash, \circledcirc, \circledast \circleddash, \circledcirc, \circledast \!
\bigoplus, \bigotimes, \bigodot \bigoplus, \bigotimes, \bigodot \!

Himpunan[sunting | sunting sumber]

\{ \}, \O \empty \emptyset, \varnothing \{ \}, \O \empty \emptyset, \varnothing \!
\in, \notin \not\in, \ni, \not\ni \in, \notin \not\in, \ni, \not\ni \!
\cap, \Cap, \sqcap, \bigcap, \setminus, \smallsetminus \cap, \Cap, \sqcap, \bigcap, \setminus, \smallsetminus \!
\cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus \cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus \!
\subset, \Subset, \sqsubset \subset, \Subset, \sqsubset \!
\supset, \Supset, \sqsupset \supset, \Supset, \sqsupset \!
\subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq \subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq \!
\supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq \supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq \!
\subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq \subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq \!
\supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq \supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq \!

Relasi[sunting | sunting sumber]

=, \ne \neq, \equiv, \not\equiv =, \ne \neq, \equiv, \not\equiv \!
\doteq, \overset{\underset{\mathrm{def}}{}}{=}, := \doteq, \overset{\underset{\mathrm{def}}{}}{=}, := \!
\sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong \sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong \!
\approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto \approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto \!
<, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot <, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot \!
>, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot >, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot \!
\le \leq, \lneq, \leqq, \nleqq, \lneqq, \lvertneqq \le \leq, \lneq, \leqq, \nleqq, \lneqq, \lvertneqq \!
\ge \geq, \gneq, \geqq, \ngeqq, \gneqq, \gvertneqq \ge \geq, \gneq, \geqq, \ngeqq, \gneqq, \gvertneqq \!
\lessgtr \lesseqgtr \lesseqqgtr \gtrless \gtreqless \gtreqqless \lessgtr \lesseqgtr \lesseqqgtr \gtrless \gtreqless \gtreqqless \!
\leqslant, \nleqslant, \eqslantless \leqslant, \nleqslant, \eqslantless \!
\geqslant, \ngeqslant, \eqslantgtr \geqslant, \ngeqslant, \eqslantgtr \!
\lesssim, \lnsim, \lessapprox, \lnapprox \lesssim, \lnsim, \lessapprox, \lnapprox \!
\gtrsim, \gnsim, \gtrapprox, \gnapprox  \gtrsim, \gnsim, \gtrapprox, \gnapprox \,
\prec, \nprec, \preceq, \npreceq, \precneqq \prec, \nprec, \preceq, \npreceq, \precneqq \!
\succ, \nsucc, \succeq, \nsucceq, \succneqq \succ, \nsucc, \succeq, \nsucceq, \succneqq \!
\preccurlyeq, \curlyeqprec \preccurlyeq, \curlyeqprec \,
\succcurlyeq, \curlyeqsucc \succcurlyeq, \curlyeqsucc \,
\precsim, \precnsim, \precapprox, \precnapprox \precsim, \precnsim, \precapprox, \precnapprox \,
\succsim, \succnsim, \succapprox, \succnapprox \succsim, \succnsim, \succapprox, \succnapprox \,

Geometri[sunting | sunting sumber]

\parallel, \nparallel, \shortparallel, \nshortparallel \parallel, \nparallel, \shortparallel, \nshortparallel \!
\perp, \angle, \sphericalangle, \measuredangle, 45^\circ \perp, \angle, \sphericalangle, \measuredangle, 45^\circ \!
\Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar \Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar \!
\bigcirc, \triangle \bigtriangleup, \bigtriangledown \bigcirc, \triangle \bigtriangleup, \bigtriangledown \!
\vartriangle, \triangledown \vartriangle, \triangledown\!
\blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright \blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright \!

Logika[sunting | sunting sumber]

\forall, \exists, \nexists \forall, \exists, \nexists \!
\therefore, \because, \And \therefore, \because, \And \!
\or \lor \vee, \curlyvee, \bigvee \or \lor \vee, \curlyvee, \bigvee \!
\and \land \wedge, \curlywedge, \bigwedge \and \land \wedge, \curlywedge, \bigwedge \!
\bar{q}, \overline{q}, \lnot \neg, \not\operatorname{R}, \bot, \top \bar{q}, \overline{q}, \lnot \neg, \not\operatorname{R}, \bot, \top\!
\vdash \dashv, \vDash, \Vdash, \models \vdash \dashv, \vDash, \Vdash, \models \!
\Vvdash \nvdash \nVdash \nvDash \nVDash \Vvdash \nvdash \nVdash \nvDash \nVDash \!
\ulcorner \urcorner \llcorner \lrcorner \ulcorner \urcorner \llcorner \lrcorner \,

Panah[sunting | sunting sumber]

\Rrightarrow, \Lleftarrow \Rrightarrow, \Lleftarrow \!
\Rightarrow, \nRightarrow, \Longrightarrow \implies \Rightarrow, \nRightarrow, \Longrightarrow \implies\!
\Leftarrow, \nLeftarrow, \Longleftarrow \Leftarrow, \nLeftarrow, \Longleftarrow \!
\Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff \Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff \!
\Uparrow, \Downarrow, \Updownarrow \Uparrow, \Downarrow, \Updownarrow \!
\rightarrow \to, \nrightarrow, \longrightarrow \rightarrow \to, \nrightarrow, \longrightarrow\!
\leftarrow \gets, \nleftarrow, \longleftarrow \leftarrow \gets, \nleftarrow, \longleftarrow\!
\leftrightarrow, \nleftrightarrow, \longleftrightarrow \leftrightarrow, \nleftrightarrow, \longleftrightarrow \!
\uparrow, \downarrow, \updownarrow \uparrow, \downarrow, \updownarrow \!
\nearrow, \swarrow, \nwarrow, \searrow \nearrow, \swarrow, \nwarrow, \searrow \!
\mapsto, \longmapsto \mapsto, \longmapsto \!
\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons \rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons \,\!
\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \rightarrowtail \looparrowright \curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \rightarrowtail \looparrowright \,\!
\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \leftarrowtail \looparrowleft \curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \leftarrowtail \looparrowleft \,\!
\hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \twoheadrightarrow \twoheadleftarrow \hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \twoheadrightarrow \twoheadleftarrow \!

Istimewa[sunting | sunting sumber]

\amalg \P \S \% \dagger \ddagger \ldots \cdots \amalg \P \S \% \dagger \ddagger \ldots \cdots \!
\smile \frown \wr \triangleleft \triangleright \smile \frown \wr \triangleleft \triangleright\!
\diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp \diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp \!

Tidak dikelompokkan (baru)[sunting | sunting sumber]

\diagup \diagdown \centerdot \ltimes \rtimes \leftthreetimes \rightthreetimes \diagup \diagdown \centerdot \ltimes \rtimes \leftthreetimes \rightthreetimes \!
\eqcirc \circeq \triangleq \bumpeq \Bumpeq \doteqdot \risingdotseq \fallingdotseq \eqcirc \circeq \triangleq \bumpeq \Bumpeq \doteqdot \risingdotseq \fallingdotseq \!
\intercal \barwedge \veebar \doublebarwedge \between \pitchfork \intercal \barwedge \veebar \doublebarwedge \between \pitchfork \!
\vartriangleleft \ntriangleleft \vartriangleright \ntriangleright \vartriangleleft \ntriangleleft \vartriangleright \ntriangleright \!
\trianglelefteq \ntrianglelefteq \trianglerighteq \ntrianglerighteq \trianglelefteq \ntrianglelefteq \trianglerighteq \ntrianglerighteq \!

Untuk penjelasan lebih lanjut mengenai simbol-simbol ini, baca taklimat di TeX Cookbook.

Contoh penerapan formula TeX[sunting | sunting sumber]

Polinom kuadrat[sunting | sunting sumber]

ax^2 + bx + c = 0

<math>ax^2 + bx + c = 0</math>

Polinom kuadrat (PNG)[sunting | sunting sumber]

ax^2 + bx + c = 0\,\!

<math>ax^2 + bx + c = 0\,\!</math>

Formula kuadrat[sunting | sunting sumber]

x={-b\pm\sqrt{b^2-4ac} \over 2a}

<math>x={-b\pm\sqrt{b^2-4ac} \over 2a}</math>

Parentesis dan pecahan tinggi[sunting | sunting sumber]

2 = \left( \frac{\left(3-x\right) \times 2}{3-x} \right)

<math>2 = \left(
 \frac{\left(3-x\right) \times 2}{3-x}
 \right)</math>
S_{\text{new}} = S_{\text{old}} - \frac{ \left( 5-T \right) ^2} {2}

 <math>S_{\text{new}} = S_{\text{old}} - \frac{ \left( 5-T \right) ^2} {2}</math>
 

Integral[sunting | sunting sumber]

\int_a^x \!\!\!\int_a^s f(y)\,dy\,ds = \int_a^x f(y)(x-y)\,dy

<math>\int_a^x \!\!\!\int_a^s f(y)\,dy\,ds
 = \int_a^x f(y)(x-y)\,dy</math>

Penjumlahan[sunting | sunting sumber]

\sum_{i=0}^{n-1} i

<math>\sum_{i=0}^{n-1} i</math>
\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n}{3^m\left(m\,3^n+n\,3^m\right)}

<math>\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n}
 {3^m\left(m\,3^n+n\,3^m\right)}</math>

Persamaan diferensial[sunting | sunting sumber]

u'' + p(x)u' + q(x)u=f(x),\quad x>a

<math>u'' + p(x)u' + q(x)u=f(x),\quad x>a</math>

Bilangan kompleks[sunting | sunting sumber]

|\bar{z}| = |z|, |(\bar{z})^n| = |z|^n, \arg(z^n) = n \arg(z)

<math>|\bar{z}| = |z|,
 |(\bar{z})^n| = |z|^n,
 \arg(z^n) = n \arg(z)</math>

Limit[sunting | sunting sumber]

\lim_{z\rightarrow z_0} f(z)=f(z_0)

<math>\lim_{z\rightarrow z_0} f(z)=f(z_0)</math>

Persamaan integral[sunting | sunting sumber]

\phi_n(\kappa)
 = \frac{1}{4\pi^2\kappa^2} \int_0^\infty \frac{\sin(\kappa R)}{\kappa R} \frac{\partial}{\partial R} \left[R^2\frac{\partial D_n(R)}{\partial R}\right]\,dR

<math>\phi_n(\kappa) =
 \frac{1}{4\pi^2\kappa^2} \int_0^\infty
 \frac{\sin(\kappa R)}{\kappa R}
 \frac{\partial}{\partial R}
 \left[R^2\frac{\partial D_n(R)}{\partial R}\right]\,dR</math>

Contoh[sunting | sunting sumber]

\phi_n(\kappa) = 0.033C_n^2\kappa^{-11/3},\quad \frac{1}{L_0}\ll\kappa\ll\frac{1}{l_0}

<math>\phi_n(\kappa) = 
 0.033C_n^2\kappa^{-11/3},\quad
 \frac{1}{L_0}\ll\kappa\ll\frac{1}{l_0}</math>

Kelanjutan dan kasus[sunting | sunting sumber]

f(x) = \begin{cases}1 & -1 \le x < 0 \\
 \frac{1}{2} & x = 0 \\ 1 - x^2 & \text{otherwise}\end{cases}

<math>
 f(x) =
 \begin{cases}
 1 & -1 \le x < 0 \\
 \frac{1}{2} & x = 0 \\
 1 - x^2 & \text{otherwise}
 \end{cases}
 </math>

Subskrip prefiks[sunting | sunting sumber]

{}_pF_q(a_1,\dots,a_p;c_1,\dots,c_q;z) = \sum_{n=0}^\infty \frac{(a_1)_n\cdots(a_p)_n}{(c_1)_n\cdots(c_q)_n}\frac{z^n}{n!}

 <math>{}_pF_q(a_1,\dots,a_p;c_1,\dots,c_q;z)
 = \sum_{n=0}^\infty
 \frac{(a_1)_n\cdots(a_p)_n}{(c_1)_n\cdots(c_q)_n}
 \frac{z^n}{n!}</math>

Pecahan dan pecahan kecil[sunting | sunting sumber]

\frac{a}{b}\ \tfrac{a}{b}
<math>\frac{a}{b}\ \tfrac{a}{b}</math>

Luas kuadrilateral[sunting | sunting sumber]

S=dD\,\sin\alpha\!
<math>S=dD\,\sin\alpha\!</math>

Volum bola[sunting | sunting sumber]

V=\tfrac16\pi h\left[3\left(r_1^2+r_2^2\right)+h^2\right]
<math>V=\tfrac16\pi h\left[3\left(r_1^2+r_2^2\right)+h^2\right]</math>

Lihat pula[sunting | sunting sumber]

Pranala luar[sunting | sunting sumber]

  • Oetiker, Tobias; Partl, Hubert; Hyna, Irene; Schlegl, Elisabeth (December 13, 2009), The Not So Short Introduction to LaTeX 2ε (ed. 4.27) . A paper introducing LaTeX — skip to page 49 for the math section. See page 63 for a complete reference list of symbols included in LaTeX and AMS-LaTeX.