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

Returns the complex exponential of the complex argument a (the base-e exponential of a).

Examples

Example 1

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

ComplexMath.exp(cmplx(3, 4)); // -13.128783081462158 - 15.200784463067954i

Parameters

A complex number

Return Type

Add Package

deno add jsr:@babia/complex

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @babia/complex

Import symbol

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

Add Package

yarn dlx jsr add @babia/complex

Import symbol

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

Add Package

pnpm dlx jsr add @babia/complex

Import symbol

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

Add Package

bunx jsr add @babia/complex

Import symbol

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