Mon Feb 24 07:57:57 2020 polyinterp_test R version 3.4.4 (2018-03-15) polyinterp computes the intercept and slope of the line through two points. x coordinates: [1] -1 1 0 y coordinates: [1] -2 2 -1 p <- polyinterp ( x, y ) [1] -1 2 1 yp <- horner ( xp, p ) -1 <- horner ( -2 , p ) polyinterp_test Normal end of execution. Mon Feb 24 07:57:57 2020