def ChebyshevCost(trial): """ The costfunction for the fitting problem. 70 evaluation points between [-1, 1] with two end points """ return chebyshev16cost(trial,M=70)*100
def ChebyshevCost(trial): """ The costfunction for the fitting problem. 70 evaluation points between [-1, 1] with two end points """ return chebyshev16cost(trial, M=70) * 100