Jutho / RationalRoots.jl

A Julia type for representing square roots of rational numbers
Other
11 stars 3 forks source link

Implement the literal square of a RationalRoot #2

Closed w-vdh closed 3 years ago

w-vdh commented 3 years ago

For x::RationalRoot, x^2 now returns abs(x.signedsquare).

codecov-io commented 3 years ago

Codecov Report

Merging #2 (24250a8) into master (9ba45f8) will increase coverage by 2.81%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #2      +/-   ##
==========================================
+ Coverage   94.93%   97.75%   +2.81%     
==========================================
  Files           1        1              
  Lines          79       89      +10     
==========================================
+ Hits           75       87      +12     
+ Misses          4        2       -2     
Impacted Files Coverage Δ
src/RationalRoots.jl 97.75% <100.00%> (+2.81%) :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 9ba45f8...24250a8. Read the comment docs.

Jutho commented 3 years ago

Thanks; that is indeed useful.