ARTLUNG LAB Share

July 2024

MathML Test Page

I first got curious to experiment with MathML during an HWC Europe meeting.

This test is based on The Problem, an interview question we used at a former employer.

This is an image:


This is MathML:

Given a sequence of integers A0...An
find i, j such that x = i j Ax is maximized.

Source Code of the MathML


    <article class="sample">
        Given a sequence of integers A<sub><i>0</i></sub>...A<sub><i>n</i></sub><br/> find i, j such that

        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <mstyle displaystyle="true">
                <munderover>
                    <mo>&sum;</mo>
                    <mrow>
                        <mi>x</mi>
                        <mo>=</mo>
                        <mi>i</mi>
                    </mrow>
                    <mi>j</mi>
                </munderover>
            </mstyle>
        </math>

        A<sub><i>x</i></sub> is maximized.
    </article>

Resources