You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
utrig arcsin(x) not working for domain of |x| <= 1 #7
The arctan method for determining arcsin(x) only works for values in the domain of |x| < 1 rather than |x| <= 1. The method throws a DivisionByZero error for x = 1 or x = -1.
I'm not fully confident in my understanding of using arctan to derive arccos and arcsin, but could take a stab at simply substituting 1/2 * pi or 3/2 * pi for the domain boundary condition.
Also, the DivisionByZero issue only impacts arcsin results. I fixed the issue title and initial description. arccos has a different domain boundary issue.
changed the title [-]utrig arcsin(x) and arccos(x) not working for domain of |x| <= 1[/-][+]utrig arcsin(x) not working for domain of |x| <= 1[/+]on Feb 11, 2022
Activity
jepler commentedon Feb 11, 2022
I'd be happy to accept a patch that special cases these two values. Add a test for bonus points.
CedarGroveStudios commentedon Feb 11, 2022
I'm not fully confident in my understanding of using arctan to derive arccos and arcsin, but could take a stab at simply substituting
1/2 * pior3/2 * pifor the domain boundary condition.Also, the
DivisionByZeroissue only impactsarcsinresults. I fixed the issue title and initial description.arccoshas a different domain boundary issue.[-]utrig arcsin(x) and arccos(x) not working for domain of |x| <= 1[/-][+]utrig arcsin(x) not working for domain of |x| <= 1[/+]