Skip to main content

Built and signed on GitHub Actions

A package provides implementation of complex numbers and mathematical functions for complex numbers.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
4 months ago (1.1.1)
function cot
cot(a: complex): complex

Returns the cotangent of the complex number.

Examples

Example 1

import { ComplexMath, cmplx } from "@babia/complex";

ComplexMath.cot(cmplx(1, 1)); // 0.2176215618544027 - 0.868014142895925i

Parameters

a: complex

A complex number

Return Type

complex

Add Package

deno add jsr:@babia/complex

Import symbol

import { cot } from "@babia/complex/math";

---- OR ----

Import directly with a jsr specifier

import { cot } from "jsr:@babia/complex/math";

Add Package

npx jsr add @babia/complex

Import symbol

import { cot } from "@babia/complex/math";

Add Package

yarn dlx jsr add @babia/complex

Import symbol

import { cot } from "@babia/complex/math";

Add Package

pnpm dlx jsr add @babia/complex

Import symbol

import { cot } from "@babia/complex/math";

Add Package

bunx jsr add @babia/complex

Import symbol

import { cot } from "@babia/complex/math";