math.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>reveal.js - The HTML Presentation Framework</title>
  6. <meta name="description" content="A framework for easily creating beautiful presentations using HTML">
  7. <meta name="author" content="Hakim El Hattab">
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  11. <link rel="stylesheet" href="../css/reveal.min.css">
  12. <link rel="stylesheet" href="../css/theme/night.css" id="theme">
  13. <!-- For syntax highlighting -->
  14. <link rel="stylesheet" href="../lib/css/zenburn.css">
  15. <!--[if lt IE 9]>
  16. <script src="lib/js/html5shiv.js"></script>
  17. <![endif]-->
  18. </head>
  19. <body>
  20. <div class="reveal">
  21. <div class="slides">
  22. <section>
  23. <h2>reveal.js Math Plugin</h2>
  24. <p>A thin wrapper for MathJax</p>
  25. </section>
  26. <section>
  27. <h3>The Lorenz Equations</h3>
  28. \[\begin{aligned}
  29. \dot{x} &amp; = \sigma(y-x) \\
  30. \dot{y} &amp; = \rho x - y - xz \\
  31. \dot{z} &amp; = -\beta z + xy
  32. \end{aligned} \]
  33. </section>
  34. <section>
  35. <h3>The Cauchy-Schwarz Inequality</h3>
  36. \[ \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \]
  37. </section>
  38. <section>
  39. <h3>A Cross Product Formula</h3>
  40. \[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
  41. \mathbf{i} &amp; \mathbf{j} &amp; \mathbf{k} \\
  42. \frac{\partial X}{\partial u} &amp; \frac{\partial Y}{\partial u} &amp; 0 \\
  43. \frac{\partial X}{\partial v} &amp; \frac{\partial Y}{\partial v} &amp; 0
  44. \end{vmatrix} \]
  45. </section>
  46. <section>
  47. <h3>The probability of getting \(k\) heads when flipping \(n\) coins is</h3>
  48. \[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]
  49. </section>
  50. <section>
  51. <h3>An Identity of Ramanujan</h3>
  52. \[ \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} =
  53. 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
  54. {1+\frac{e^{-8\pi}} {1+\ldots} } } } \]
  55. </section>
  56. <section>
  57. <h3>A Rogers-Ramanujan Identity</h3>
  58. \[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
  59. \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}\]
  60. </section>
  61. <section>
  62. <h3>Maxwell&#8217;s Equations</h3>
  63. \[ \begin{aligned}
  64. \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &amp; = \frac{4\pi}{c}\vec{\mathbf{j}} \\ \nabla \cdot \vec{\mathbf{E}} &amp; = 4 \pi \rho \\
  65. \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} &amp; = \vec{\mathbf{0}} \\
  66. \nabla \cdot \vec{\mathbf{B}} &amp; = 0 \end{aligned}
  67. \]
  68. </section>
  69. </div>
  70. </div>
  71. <script src="../lib/js/head.min.js"></script>
  72. <script src="../js/reveal.min.js"></script>
  73. <script>
  74. Reveal.initialize({
  75. transition: 'linear',
  76. math: {
  77. mode: 'TeX-AMS_HTML-full'
  78. },
  79. dependencies: [
  80. { src: '../lib/js/classList.js', condition: function() { return !document.body.classList; } },
  81. { src: '../plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  82. { src: '../plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
  83. { src: '../plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
  84. { src: '../plugin/math/math.js', async: true }
  85. ]
  86. });
  87. </script>
  88. </body>
  89. </html>