Math

You can write formulas using KaTeX and specify other options for the Math plugin.

The probability of getting \(k\) heads when flipping \(n\) coins

\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]

<script>
  import { Animotion, Slide, Step } from '@components'
</script>

<Presentation>
  <Slide>
    <p>
      The probability of getting {`\\(k\\)`} heads when flipping {`\\(n\\)`} coins
    </p>

    <Step>
      {`
        \\[P(E) = {n \\choose k} p^k (1-p)^{ n-k} \\]
      `}
    </Step>
  </Slide>
</Presentation>