# pwiselinterp: Piecewise linear interpolation In cmna: Computational Methods for Numerical Analysis

## Description

Finds a piecewise linear function that interpolates the data points

## Usage

 `1` ```pwiselinterp(x, y) ```

## Arguments

 `x` a vector of x values `y` a vector of y values

## Details

`pwiselinterp` finds a piecewise linear function that interpolates the data points. For each x-y ordered pair, there function finds the unique line interpolating them. The function will return a data.frame with three columns.

The column `x` is the upper bound of the domain for the given piece. The columns `m` and `b` represent the coefficients from the y-intercept form of the linear equation, y = mx + b.

The matrix will contain length(x) rows with the first row having m and b of NA.

## Value

a matrix with the linear function components

Other interp: `bezier`, `bilinear`, `cubicspline`, `linterp`, `nn`, `polyinterp`
Other algebra: `bilinear`, `cubicspline`, `division`, `fibonacci`, `horner`, `isPrime`, `linterp`, `nthroot`, `polyinterp`, `quadratic`
 ```1 2 3``` ```x <- c(5, 0, 3) y <- c(4, 0, 3) f <- pwiselinterp(x, y) ```