Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweak mu to fix #30 #31

Merged
merged 2 commits into from
Sep 9, 2023
Merged

tweak mu to fix #30 #31

merged 2 commits into from
Sep 9, 2023

Conversation

jamiecjx
Copy link
Contributor

@jamiecjx jamiecjx commented Sep 8, 2023

Sometimes μ is set to something ike 0.9999999 in Line 118, which results in log(eps(real(T))/100)/log(μ) being a large positive number. Adding a small constant prevents this.

It might be even safer to have log(eps(real(T))/100)/log(μ+2*eps(real(T))) or any other small number.

@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (dbc28d2) 94.17% compared to head (8799806) 94.17%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #31   +/-   ##
=======================================
  Coverage   94.17%   94.17%           
=======================================
  Files           5        5           
  Lines         326      326           
=======================================
  Hits          307      307           
  Misses         19       19           
Files Changed Coverage Δ
src/recurrence.jl 96.73% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dlfivefifty
Copy link
Member

Can you add a unit test?

@dlfivefifty dlfivefifty merged commit 8640647 into JuliaApproximation:main Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants