[AstroPy] numerical problems in sum

Gabriele Brambilla gb.gabrielebrambilla at gmail.com
Mon Mar 3 19:58:14 EST 2014


Hi,
I'm calculating the energy spectrum of photons emitted by of a lot of
accelerated particles.
After I have calculated the amount of energy for a single particle in a
particular energy interval I sum them all together in this way:

MYMAP[i, j, k] = MYMAP[i, j, k] + www

where the 3d matrix is a np.array.

I have strong reasons to think that in this operation happens some
numerical error...Have you suggestions to discover where it is?

My results differs a bit from the one obtained by another guy.

thanks

Gabriele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20140303/2cdb0d60/attachment.html>


More information about the AstroPy mailing list