Skip to content

Modern Math CCsc

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

Home › Math Library › Math Library › CCsc

CCsc

Returns the cosecant of a complex number, one over the sine; zero gives zero.

Syntax

CCsc( byref z as Complex ) as Complex

Notes

  • CReciprocal( CSin( z ) ).
  • CCsc( 0 ) is zero, because CReciprocal of zero is zero — see CReciprocal. The true value is infinite.

Examples

#import "std/numeric"
using numeric

dim as Complex z = CSet( 0.5, 0.25 )

print CToString( CCsc( z ) )         '' 1.6838612682157232-0.7549097014050444i
print CToString( CCsc( CZero( ) ) )  '' 0+0i   -- zero, following CReciprocal's rule

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

Clone this wiki locally