Alternative Equation Formats

The equation on this page is available in multiple formats. Depending on your browser, some formats might not render correctly.

MathML

y = { 1 2 ( x i + x i + 1 ) i f j = 1 i w j = p W x i + 1 i f j = 1 i w j < p W < j = 1 i + 1 w j

Math Rendered as SVG

Math as LaTeX Source

\[ y = \left\{ \begin{array}{cl} \frac{1}{2} ( x_ i + x_{i+1} ) & \mr{if} \sum _{j=1}^{i} w_ j = pW \\ x_{i+1} & \mr{if} \sum _{j=1}^{i} w_ j < pW < \sum _{j=1}^{i+1} w_ j \end{array} \right. \]