This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients juraj.sukop, mark.dickinson, pitrou, serhiy.storchaka, vstinner
Date 2017-01-16.11:36:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> The performance argument unlikely is applicable in this case.

Agreed. This is mainly about accuracy, not speed: the FMA operation is a fundamental building block for floating-point arithmetic, is useful in some numerical algorithms, and essential in others (especially when doing things like double-double arithmetic). It would be valuable to have when prototyping numerical algorithms in pure Python.

Given that it's supported in C99 and on current Windows, I'm +1 on including it in the math module.

Note that implementing this it not quite as straightforward as simply wrapping the libm version, since we'll also want the correct exceptional behaviour, for consistency with the rest of the math module: i.e., we should be raising ValueError where the fma operation would signal the invalid FPE, and OverflowError where the fma operation would signal the overflow FPE.
Date User Action Args
2017-01-16 11:36:54mark.dickinsonsetrecipients: + mark.dickinson, pitrou, vstinner, serhiy.storchaka, juraj.sukop
2017-01-16 11:36:54mark.dickinsonsetmessageid: <>
2017-01-16 11:36:54mark.dickinsonlinkissue29282 messages
2017-01-16 11:36:53mark.dickinsoncreate