JuliaDiff / DualNumbers.jl

Julia package for representing dual numbers and for performing dual algebra
Other
80 stars 30 forks source link

Implement `complex` for dual arguments #90

Closed sethaxen closed 2 years ago

sethaxen commented 2 years ago

This PR implements the following methods:

This allows Dual to be used for automatically differentiating not just the complex functions for which rules are defined here but also the construction of those complex numbers.

codecov-commenter commented 2 years ago

Codecov Report

Merging #90 (f5a6d29) into master (7848bf4) will increase coverage by 1.36%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #90      +/-   ##
==========================================
+ Coverage   44.67%   46.03%   +1.36%     
==========================================
  Files           1        1              
  Lines         197      202       +5     
==========================================
+ Hits           88       93       +5     
  Misses        109      109              
Impacted Files Coverage Δ
src/dual.jl 46.03% <100.00%> (+1.36%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7848bf4...f5a6d29. Read the comment docs.

dlfivefifty commented 2 years ago

Looks fine