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 ComplexMath.sin
sin(a: complex): complex

Returns the sine of the complex number.

Examples

Example 1

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

ComplexMath.sin(cmplx(1, 1)); // 1.2984575814159773 + 0.6349639147847361i

Parameters

A complex number

Return Type

Add Package

deno add jsr:@babia/complex

Import symbol

import { ComplexMath } from "@babia/complex";
const { sin } = ComplexMath;

---- OR ----

Import directly with a jsr specifier

import { ComplexMath } from "jsr:@babia/complex";
const { sin } = ComplexMath;

Add Package

npx jsr add @babia/complex

Import symbol

import { ComplexMath } from "@babia/complex";
const { sin } = ComplexMath;

Add Package

yarn dlx jsr add @babia/complex

Import symbol

import { ComplexMath } from "@babia/complex";
const { sin } = ComplexMath;

Add Package

pnpm dlx jsr add @babia/complex

Import symbol

import { ComplexMath } from "@babia/complex";
const { sin } = ComplexMath;

Add Package

bunx jsr add @babia/complex

Import symbol

import { ComplexMath } from "@babia/complex";
const { sin } = ComplexMath;