MathML polyfill

Looking for WET v3.1?

As of September 23, 2014, version 3.1 of the Web Experience Toolkit is no longer supported. The source code and documentation have been moved to the wet-boew-legacy repository.

Overview

This polyfill loads MathJax when MathML is detected on the page and the browser has inadequate MathML support.

Known issues

  1. Browsers that lack both MathML and SVG support (e.g., IE7 - IE9) will take longer to load MathML than browsers with either SVG or MathML support
  2. IE8 takes a lot longer to load MathML than either IE7 or IE9 (known MathJax reflow issue)
  3. Pages with a lot of complex formulas can take a few minutes to load on slow machines running IE8 (known MathJax issue)

Examples of simple formulas

Given the quadratic equation[{htmlmin-lb}] a x 2 + b x + c = 0 , the roots are given by[{htmlmin-lb}] x = b ± b 2 4 a c 2 a .[{htmlmin-lb}]

Examples of complex formulas

Formula Result
Bernoulli Trials P ( E ) Probability of event E: Get exactly k heads in n coin flips. = ( n k ) Number of ways to get exactly k heads in n coin flips p Probability of getting heads in one flip k Number of heads ( 1 - p ) Probability of getting tails in one flip n - k Number of tails
Cauchy-Schwarz Inequality ( k = 1 n a k b k ) 2 ( k = 1 n a k 2 ) ( k = 1 n b k 2 )
Cauchy Formula f ( z ) · Ind γ ( z ) = 1 2 π i γ f ( ξ ) ξ - z d ξ
Cross Product V 1 × V 2 = | i j k X u Y u 0 X v Y v 0 |
Vandermonde Determinant | 1 1 1 v 1 v 2 v n v 1 2 v 2 2 v n 2 v 1 n - 1 v 2 n - 1 v n n - 1 | = 1 i < j n ( v j - v i )
Lorenz Equations x ˙ = σ ( y - x ) y ˙ = ρ x - y - x z z ˙ = - β z + x y
Maxwell's Equations { × B - 1 c E t = 4 π c j · E = 4 π ρ × E + 1 c B t = 0 · B = 0
Einstein Field Equations R μ ν - 1 2 g μ ν R = 8 π G c 4 T μ ν
Ramanujan Identity 1 ( φ 5 - φ ) e 25 π = 1 + e - 2 π 1 + e - 4 π 1 + e - 6 π 1 + e - 8 π 1 +
Another Ramanujan identity k = 1 1 2 k · φ = 1 2 0 + 1 2 1 + 1 2 1 + 1 2 2 + 1 2 3 + 1 2 5 +
Rogers-Ramanujan Identity 1 + k = 1 q k 2 + k ( 1 - q ) ( 1 - q 2 ) ( 1 - q k ) q 2 ( 1 - q ) + q 6 ( 1 - q ) ( 1 - q 2 ) + = j = 0 1 ( 1 - q 5 j + 2 ) ( 1 - q 5 j + 3 ) 1 ( 1 - q 2 ) ( 1 - q 3 ) × 1 ( 1 - q 7 ) ( 1 - q 8 ) × ,   for   | q | < 1 .
Date modified: