AngouriMath

Try it live

Navigation

← Back to list of members

Cotan​(AngouriMath.​Entity.​Number.​Complex)

 Method (no overloads)

Summary

Calculates the exact value of cotangent of num

Remarks

cos x/sin x on the real line, a residual of cos x, which is known to |x| times the working
digits as on the real line everywhere; and off it
(sin x cos x sech^2 y - i tanh y)/(sin^2 x sech^2 y + tanh^2 y), which neither cancels nor overflows. It
was 1/tan z made 0 wherever both parts were below 1e-16, so cot(pi/2 + 10^(-20)), about
-10^(-20), was 0. https://github.com/asc-community/AngouriMath/issues/1944

























Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 6091 pages online