Open devmotion opened 7 months ago
Attention: Patch coverage is 83.33333%
with 1 lines
in your changes are missing coverage. Please review.
Project coverage is 51.88%. Comparing base (
d9251a7
) to head (d52f6a3
).
Files | Patch % | Lines |
---|---|---|
src/dual.jl | 83.33% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Given the definitions of
==
andisequal
in ForwardDiff#master, the PR reverts https://github.com/JuliaDiff/DualNumbers.jl/commit/337539f32622b8d713a7ea122aeaafb4f1e0de3b (see #10) and defines both==(x, y)
andisequal(x, y)
in terms of bothvalue(x)
andepsilon(x)
etc. This makes==
andisequal
in DualNumbers consistent,==
andisequal
mathematically correct.Additionally, the PR fixes
isless
: According to its docstring,isless(x, y)
shouldOn the master branch, however, the first requirement is not satisfied (e.g., choose
x = dual(3, 0.5)
andy = dual(3, 1.0)
: then neitherisless(x, y)
,isless(y, x)
, norisequal(x, y)
is satisfied).cc @andreasnoack who was involved in #10