Commit c62bd13
Stefan Krah
1) State the relative errors of the power functions for integer exponents.
2) _mpd_qpow_mpd(): Abort the loop for all specials, not only infinity.
3) _mpd_qpow_mpd(): Make the function more general and distinguish between
zero clamping and folding down the exponent. The latter case is currently
handled by setting context->clamp to 0 before calling the function.
4) _mpd_qpow_int(): Add one to the work precision in case of a negative
exponent. This is to get the same relative error (0.1 * 10**-prec)
for both positive and negative exponents. The previous relative
error for negative exponents was (0.2 * 10**-prec).
Both errors are _before_ the final rounding to the context precision.1 parent f185226 commit c62bd13
1 file changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5844 | 5844 | | |
5845 | 5845 | | |
5846 | 5846 | | |
| 5847 | + | |
| 5848 | + | |
| 5849 | + | |
| 5850 | + | |
| 5851 | + | |
| 5852 | + | |
5847 | 5853 | | |
5848 | 5854 | | |
5849 | 5855 | | |
| |||
5880 | 5886 | | |
5881 | 5887 | | |
5882 | 5888 | | |
| 5889 | + | |
| 5890 | + | |
| 5891 | + | |
| 5892 | + | |
| 5893 | + | |
| 5894 | + | |
5883 | 5895 | | |
5884 | 5896 | | |
5885 | 5897 | | |
| |||
5899 | 5911 | | |
5900 | 5912 | | |
5901 | 5913 | | |
5902 | | - | |
| 5914 | + | |
| 5915 | + | |
5903 | 5916 | | |
5904 | 5917 | | |
5905 | 5918 | | |
| |||
5914 | 5927 | | |
5915 | 5928 | | |
5916 | 5929 | | |
5917 | | - | |
| 5930 | + | |
| 5931 | + | |
| 5932 | + | |
5918 | 5933 | | |
5919 | 5934 | | |
5920 | 5935 | | |
| |||
5932 | 5947 | | |
5933 | 5948 | | |
5934 | 5949 | | |
| 5950 | + | |
5935 | 5951 | | |
5936 | 5952 | | |
5937 | 5953 | | |
| |||
0 commit comments