# Linear Interpolation

In mathematics, [linear interpolation](https://en.wikipedia.org/wiki/Linear_interpolation) is a method of [curve fitting](https://en.wikipedia.org/wiki/Curve_fitting) using [linear polynomials](https://en.wikipedia.org/wiki/Linear_polynomial) to construct new data points within the range of a discrete set of known data points.

XMPro Linear Interpolation Function is used to determine:&#x20;

* X3 value provided (X1,Y1) (X2,Y2) (?,Y3) values. The formula to calculate X3 value is:\
  `X3 = X1 + ((Y3 - Y1) * ((X2 - X1) / (Y2 - Y1))`

**OR**

* Y3 value provided (X1,Y1) (X2,Y2)(X3,?) values. The formula to calculate the Y3 value is: \
  `Y3 = Y1 + ((X3 - X1) * ((Y2 - Y1) / (X2 - X1)))`

Details for an [example](https://xmpro.gitbook.io/integrations/linear-interpolation/how-to-use/example) and its [configuration](https://xmpro.gitbook.io/integrations/linear-interpolation/how-to-use/configuration#configuration) can be found in the *How to Use* section.

## Pre-requisites

None at this time

## Current Version

* [Download](https://xmappstore.blob.core.windows.net/tier5/Function_Linear%20Interpolation_v1.13.xmp) the Linear Interpolation Function v1.13 (Last Update: 22 Jan 2025)

Please [contact](mailto:support@xmpro.com?subject=linear-interpolation-older-version) XMPro if you're looking for an older version of this Agent.&#x20;

## Release Notes

<table><thead><tr><th width="97">Version</th><th width="128">Date</th><th>Description</th></tr></thead><tbody><tr><td>1.13</td><td>22 Jan 2025</td><td>Repackaged to translate the Agent's properties.</td></tr><tr><td>1.12</td><td>06 Sep 2022</td><td>Repackaged to include the Agents Category.</td></tr><tr><td>1.11</td><td>22 Feb 2022</td><td>Initial Release.</td></tr></tbody></table>
