evaluateChebyshev function
Value of the Chebyshev polynomial with coefficients c at s.
Implementation
double evaluateChebyshev(List<double> c, double s) {
final t = chebyshevBasis(s, c.length);
var sum = 0.0;
for (var k = 0; k < c.length; k++) {
sum += c[k] * t[k];
}
return sum;
}