ex-6: language improvement in main.c
This commit is contained in:
parent
68184d414b
commit
7391bfde34
@ -34,8 +34,8 @@ struct param {
|
|||||||
* wave.
|
* wave.
|
||||||
*
|
*
|
||||||
* The intensity is given as a function of θ,
|
* The intensity is given as a function of θ,
|
||||||
* the diffraction angle, all the other physical
|
* the diffraction angle. All the other physical
|
||||||
* parameter are controlled by the structure `param`.
|
* parameters are controlled by the structure `param`.
|
||||||
*
|
*
|
||||||
* See Fraunhöfer diffraction on "Hect - Optics" for
|
* See Fraunhöfer diffraction on "Hect - Optics" for
|
||||||
* a derivation of the formula.
|
* a derivation of the formula.
|
||||||
@ -80,7 +80,7 @@ gsl_histogram* gaussian_for(gsl_histogram *hist, double sigma) {
|
|||||||
gsl_histogram_set_ranges_uniform(res, 0, dx * n);
|
gsl_histogram_set_ranges_uniform(res, 0, dx * n);
|
||||||
|
|
||||||
/* The histogram will be such that
|
/* The histogram will be such that
|
||||||
* the zero falls in the central bin.
|
* the maximum falls in the central bin.
|
||||||
*/
|
*/
|
||||||
long int offset = res->n/2;
|
long int offset = res->n/2;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user