Example of Chebyshev polynomials using new TFormula pre-defined definitions of chebyshev polynomials
void ChebyshevPol() {
auto legend =
new TLegend(0.88,0.4,1.,1.);
int colors[] = {
kRed, kRed+3,
kMagenta, kMagenta+3,
kBlue, kBlue+3,
kCyan+3,
kGreen, kGreen+3,
kYellow, kOrange };
f1->SetLineColor( colors[
degree]);
f1->SetMinimum(-1.2);
f1->SetMaximum(1.2);
TString opt = (degree == 0) ?
"" :
"same";
f1->SetNpx(1000);
}
}
- Author
- Lorenzo Moneta
Definition in file ChebyshevPol.C.