Skip to content

Fix range reduction for sin/cos - #10

Open
sheaf wants to merge 1 commit into
minoki:masterfrom
sheaf:sincos
Open

Fix range reduction for sin/cos#10
sheaf wants to merge 1 commit into
minoki:masterfrom
sheaf:sincos

Conversation

@sheaf

@sheaf sheaf commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

This fixes #9.

Before:

ghci> cosI (3.2 :: Interval Double)
I (Rounded @TowardNegInf (-1.0)) (Rounded @TowardInf (-0.540430615720292))

after:

ghci> cosI (3.2 :: Interval Double)
I (Rounded @TowardNegInf (-0.9982947757947532)) (Rounded @TowardInf (-0.998294775794753))

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.

cosI/sinI return very wide intervals when argument is outside of [-pi, pi]

1 participant