fix typo
This commit is contained in:
@@ -111,7 +111,7 @@ void sample_push(SampleData *sample, double x, double y){
|
||||
}
|
||||
|
||||
static void refine_interval(double xl, double xr, double yl, double yr, double rela_err_limit, SampleData *sample){
|
||||
double xm = (xl + yl)/2;
|
||||
double xm = (xl + xr)/2;
|
||||
double ym = chi(xm);
|
||||
sample_push(sample, xm, ym);
|
||||
if (fabs((ym-(yl+yr)/2)/ym) >= rela_err_limit) {
|
||||
|
||||
Reference in New Issue
Block a user