# DataFunction Command

From GeoGebra Manual

- DataFunction( <List of Numbers>, <List of Numbers> )
- Yields a function that connects points (x
_{1}, y_{1}), (x_{2}, y_{2}),...,(x_{n}, y_{n}) where {x_{1}, ..., x_{n}}, {y_{1}, ..., y_{n}} are the input lists. In between these points linear interpolation is used. This command is used by Sensors. **Example:**`DataFunction({0, 1, 2, 4}, {0, 1, 4, 16})`

yields a function that goes through points (0, 0), (1,1), (2, 4), (4, 16).