The Remez code for best polynomial approximation. It implements the barycentric-Remez code of Pachon and Trefethen, 2008. Uncomment line 31 to track the evolution of the error and modify the tolerance in line 18 to taste. Currently works only in [-1 1]. Bashing is welcome.
The Remez code for best polynomial approximation. It implements the barycentric-Remez code of Pachon and Trefethen, 2008. Uncomment line 31 to track the evolution of the error and modify the tolerance in line 18 to taste. Currently works only in [-1 1]. Bashing is welcome.

chebfun/chebfun_v4,nickhale/chebfunV4