#include "headcpp.h" #include "math.h" #include "tbl.h" #include "matrice.h" #include "cheby.h" // Chebyshev polynomial double cheby (int n, double x) { if (n==0) return 1 ; else if (n==1) return x ; else { double tm2 = 1 ; double tm1 = x ; double tm ; for (int i=2 ; i<=n ; i++) { tm = 2*x*tm1 - tm2 ; tm2 = tm1 ; tm1 = tm ; } return tm ; } } // Norme double norme_cheb (int i) { if (i==0) return M_PI ; else return M_PI/2 ; } // Colocation point Tbl coloc_cheb (int n) { Tbl res (n) ; res.set_etat_qcq() ; for (int i=0 ; i