Parameters
int
degree
The polynomial order and therefore the number of roots.
double
intervalBegin
The real domain interval begin where to start sampling.
double
intervalEnd
The real domain interval end where to stop sampling.
Return
Double[]
Samples in [a,b] at (b+a)/2+(b-1)/2*cos(pi*(2i-1)/(2n))