Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect calculation produced by acotan(num)
The num version of the method uses incorrect formula to calculate acotan. The following identities should hold: θ = acotan cotan θ for -π < θ < π θ = cotan acotan θ for θ ∈ ℝ Fix by calculating atan(1/x), result of which is corroborated by the above identities, WolframAlhpa[^1], and our implementation of acotan for boxed types. [1] http://www.wolframalpha.com/input/?i=acotan
- Loading branch information