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

1.0-dev: fix stack overflow error (#513, #538) #562

Merged
merged 2 commits into from
Jun 14, 2023

Conversation

OlivierHnt
Copy link
Member

This PR just defines methods for rad2deg, deg2rad and sincospi to avoid the default fallback methods from Base which resulted in StackOverflowError.
This fixes #513 and #538.

It was noted in #513 (comment) that one can define a better algorithm for sincospi. I did not do this here, I simply defined sincospi(x) = (sinpi(x), cospi(x)) for now.

@codecov-commenter
Copy link

codecov-commenter commented Jun 11, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (8b9f4fd) 84.79% compared to head (2f16df2) 84.78%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@             Coverage Diff             @@
##           1.0-dev     #562      +/-   ##
===========================================
- Coverage    84.79%   84.78%   -0.01%     
===========================================
  Files           33       33              
  Lines         1828     1827       -1     
===========================================
- Hits          1550     1549       -1     
  Misses         278      278              
Impacted Files Coverage Δ
src/IntervalArithmetic.jl 100.00% <ø> (ø)
src/intervals/arithmetic/trigonometric.jl 96.66% <100.00%> (-0.02%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Kolaru Kolaru merged commit 7bfad94 into JuliaIntervals:1.0-dev Jun 14, 2023
@Kolaru
Copy link
Collaborator

Kolaru commented Jun 14, 2023

LGTM thanks !

@OlivierHnt OlivierHnt deleted the 1.0-dev-trig branch June 14, 2023 11:44
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.

3 participants