Skip to content

Modern Math CCoth

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

Home › Math Library › Math Library › CCoth

CCoth

Returns the hyperbolic cotangent of a complex number, one over its tanh.

Syntax

CCoth( byref z as Complex ) as Complex

Notes

  • CReciprocal( CTanh( z ) ), so it inherits the overflow guard two steps up in CTan.

Examples

#import "std/numeric"
using numeric

dim as Complex z = CSet( 0.5, 0.25 )

print CToString( CCoth( z ) )               '' 1.7658972151170627-0.7204010922182282i
print CToString( CCoth( CSet( 750, 1 ) ) )  '' 1-0i   -- heading for 1

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

Clone this wiki locally