MathML HTML

Linear Interpolation Formula

This is the linear interpolation formula

LinearInterpolation.html

<!doctype html>
<html>
  <head>
    <title>XoaX.net's MathML: Linear Interpolation Example</title>
  </head>
  <body>
    <p>
      A linearly interpolated value is given by
      <math>
      	<mi>y</mi>
      	<mo>=</mo>
      	<msub><mi>y</mi><mn>0</mn></msub>
      	<mo>+</mo>
      	<mrow><mtext>(</mtext><mi>x</mi><mo>-</mo><msub><mi>x</mi><mn>0</mn></msub><mtext>)</mtext></mrow>
        <mfrac>
          <mrow><msub><mi>y</mi><mn>1</mn></msub><mo>-</mo><msub><mi>y</mi><mn>0</mn></msub></mrow>
          <mrow><msub><mi>x</mi><mn>1</mn></msub><mo>-</mo><msub><mi>x</mi><mn>0</mn></msub></mrow>
        </mfrac>
      </math>
    </p>
  </body>
</html>
 

Output

 
 

© 2007–2025 XoaX.net LLC. All rights reserved.