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

Domain violations for sec, csc, cot on valid domains. #17

Open
mewilhel opened this issue May 12, 2020 · 0 comments
Open

Domain violations for sec, csc, cot on valid domains. #17

mewilhel opened this issue May 12, 2020 · 0 comments
Labels
bug Something isn't working enhancement New feature or request
Milestone

Comments

@mewilhel
Copy link
Member

These functions are defined as composites using the inverse (e.g. cot(x::MC)= inv(tan(x))) which results in domain violations on intervals tighter than Interval(0, pi).

The fix here is to add definitions for sec, csc, cot, asec, acsc, acot that aren't defined as composites. Basically, check for domain violations and return nan(x) if this is the case. Otherwise, compute the envelope. This would also require explicit definitions of these functions in IntervalArithmetic.jl since cot(x::Interval) has the same issue.

@mewilhel mewilhel added bug Something isn't working enhancement New feature or request labels May 12, 2020
@mewilhel mewilhel added this to the Version 2.0.0 milestone May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant