Skip to content

Commit

Permalink
Add changelog entry for bugfix in pow.
Browse files Browse the repository at this point in the history
  • Loading branch information
berni44 committed Feb 24, 2021
1 parent bab6c2b commit f922850
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions changelog/bugfix_for_pow.dd
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Implementation of `pow(f, -2)` and `f ^^ -2` changed

We noticed that the implementation of `pow(f, -2)` and `f ^^ -2` with
`f` being a floating point value, was buggy for some values of `f`.
Unfortunately the fix implies small changes for other values for `f`
(with exponent `-2`) too: The least significant bits of the result might
differ from the current implementation. (This is due to the
peculiarities of floating point numbers and cannot be avoided with
reasonable means.)

To avoid problems, make sure, that your algorithms do not rely on the
least significant bits of floating point calculations, for example by
using `isClose` instead of `==`.

0 comments on commit f922850

Please sign in to comment.