tschoonj / xraylib

A library for X-ray matter interaction cross sections for X-ray fluorescence applications
https://github.com/tschoonj/xraylib/wiki
Other
120 stars 55 forks source link

ComptonProfile produces negative values for high pz #4

Closed tschoonj closed 13 years ago

tschoonj commented 13 years ago

A bug has been detected in the ComptonProfile and ComptonProfile_Partial functions which manifests itself by producing negative values (which are obviously incorrect) when requested for high pz.

Example: ComptonProfile(26,90.0) produces -0.000109986

tschoonj commented 13 years ago

Bugfix. Closed by acc063cb2f085c840b312e1beedb2e6953dc7daf.

Fixes comptonprofiles bug: switch from using splines to linear interpolation.