Skip to content

Modern Math CAcot

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Math Library › Math Library › CAcot

CAcot

Returns the inverse cotangent of a complex number; zero gives zero.

Syntax

CAcot( byref z as Complex ) as Complex

Notes

  • CAtan( CReciprocal( z ) ).
  • CAcot( 0 ) is zero rather than π/2, because CReciprocal of zero is zero — see CReciprocal.

Examples

#import "std/numeric"
using numeric

print CToString( CAcot( CSet( 2, 1 ) ) )  '' 0.39269908169872414-0.1732867951399863i
print CToString( CAcot( CZero( ) ) )      '' 0+0i   -- zero, following CReciprocal's rule

Library: Math Library
Category: Math Library
Documented under: Members

Clone this wiki locally