import type { array, matrix } from "../types"; /** * Computes the exponential value. * * Computes the exponential value for each element in a number, array, or matrix. * * @param x The input value(s) * @returns The exponential of the input value(s) * @throws If no arguments are provided * * @example Exponential of a single number * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(exp(6), 403.4287934927351); * * ``` * * @example Exponential of an array of numbers * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(exp([5, 6, 3]), [148.4131591025766, 403.4287934927351, 20.085536923187668]); * * ``` * * @example Exponential of a matrix of numbers * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(exp([[5, 6, 5], [7, 8, -1]]), [ * [148.4131591025766, 403.4287934927351, 148.4131591025766], * [1096.6331584284585, 2980.9579870417282, 0.36787944117144233] * ]); * * ``` */ export default function exp(x: number): number; /** * Computes the exponential value. * * Computes the exponential value for each element in a number, array, or matrix. * * @param x The input value(s) * @returns The exponential of the input value(s) * @throws If no arguments are provided * * @example Exponential of a single number * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(exp(6), 403.4287934927351); * * ``` * * @example Exponential of an array of numbers * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(exp([5, 6, 3]), [148.4131591025766, 403.4287934927351, 20.085536923187668]); * * ``` * * @example Exponential of a matrix of numbers * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(exp([[5, 6, 5], [7, 8, -1]]), [ * [148.4131591025766, 403.4287934927351, 148.4131591025766], * [1096.6331584284585, 2980.9579870417282, 0.36787944117144233] * ]); * * ``` */ export default function exp(x: array): array; /** * Computes the exponential value. * * Computes the exponential value for each element in a number, array, or matrix. * * @param x The input value(s) * @returns The exponential of the input value(s) * @throws If no arguments are provided * * @example Exponential of a single number * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(exp(6), 403.4287934927351); * * ``` * * @example Exponential of an array of numbers * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(exp([5, 6, 3]), [148.4131591025766, 403.4287934927351, 20.085536923187668]); * * ``` * * @example Exponential of a matrix of numbers * ```ts * import { assertEquals } from "jsr:@std/assert"; * * assertEquals(exp([[5, 6, 5], [7, 8, -1]]), [ * [148.4131591025766, 403.4287934927351, 148.4131591025766], * [1096.6331584284585, 2980.9579870417282, 0.36787944117144233] * ]); * * ``` */ export default function exp(x: matrix): matrix; //# sourceMappingURL=exp.d.ts.map