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

Returns the base 10 logarithm of the complex number.

Examples

Example 1

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

ComplexMath.log10(cmplx(3, 4)); // 0.6989700043360187 + 0.4027191962733731i

Parameters

A complex number

Return Type

Add Package

deno add jsr:@babia/complex

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @babia/complex

Import symbol

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

Add Package

yarn dlx jsr add @babia/complex

Import symbol

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

Add Package

pnpm dlx jsr add @babia/complex

Import symbol

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

Add Package

bunx jsr add @babia/complex

Import symbol

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