Matematika

Elemen kustom <devsite-mathjax> memungkinkan Anda menampilkan notasi matematika dalam konten DevSite.

Penggunaan umum

Tambahkan elemen kustom <devsite-mathjax> dengan atribut config di bagian atas file. Elemen <devsite-mathjax> bersifat mandiri dan hanya perlu disertakan satu kali di halaman.

Ini adalah contoh persamaan kolom Einstein dari relativitas umum dengan elemen <devsite-mathjax> dan atribut config yang disetel ke TeX-AMS-MML_SVG.

$$ R_{\mu\nu}-\frac{1}{2}Rg_{\mu\nu}+\Lambda{g_{\mu\nu}} = \frac{8\pi{G}}{c^4}{T_{\mu\nu}} $$

Pemisah kolom

Notasi matematika dikelilingi oleh pemisah kolom dan dapat ditampilkan secara mandiri atau inline.

Independen

Teorema Pythagoras berikut dikelilingi oleh $$ delimiters and wrapped in a <div> element. It is displayed on its own line.

$$ a^2 + b^2 = c^2 $$

The following Pythagorean theorem is surrounded by \\[ and \\] delimiters and isn't wrapped in a <div> element. It is displayed on its own line.

\[ a^2 + b^2 = c^2 \]

The following Pythagorean theorem is surrounded by \[ and \] delimiters and is wrapped in a <div> element. It is displayed on its own line.

\[ a^2 + b^2 = c^2 \]

Inline

This inline equation of the area of a circle $ A = \pi{r^2} $ is displayed in this Markdown paragraph by using $ delimiters.

This inline equation of a summation expression \( \sum_{i=1}^n X_i \) is displayed in this Markdown paragraph by using \\( and \\) delimiters.

This inline equation of a straight line \(y=mx+b\) is displayed in this HTML paragraph by using \( and \) delimiters.