Bremsstrahlung trapezium rule bug
Mateasek opened this issue · 3 comments
Mateasek commented
I think that here we have a bug in the trapezium evaluation, don't we?
I think that there should be (i + 1) term here, otherwise for the 1st iteration the lower_wavelength
and upper_wavelength
are equal, aren't they?
The line should look like:
upper_wavelength = spectrum.min_wavelength + spectrum.delta_wavelength * (i + 1)
vsnever commented