ex-4: fix some typos

master
Giù Marcer 2020-06-01 15:45:10 +02:00 committed by rnhmjoj
parent 8f847117ac
commit 340c7a2690
3 changed files with 3 additions and 2 deletions

View File

@ -56,6 +56,7 @@ double exp1d (double x, double p_max)
return x/(a*B) - x*C/(a*A*pow(B, 2));
}
//
// Second derivative of the expected function.
//

View File

@ -24,7 +24,7 @@ struct parameters
// Minimization wrapper.
//
double chi2(double p_max, void* params);
double chi2 (double p_max, void* params);
// Expected function.
//

View File

@ -116,7 +116,7 @@ int main(int argc, char **argv) {
if (go == 1) printf("\n%.5f", histo[i].sum);
};
/* Compare the histigram with the expected function:
/* Compare the histogram with the expected function:
*
* x * log(p_max/x)/arctan(sqrt(p_max^2/x^2 - 1))
*