UNPKG

mathjs

Version:

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif

44 lines (43 loc) 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createAsinh = void 0; var _factory = require("../../utils/factory.js"); var _index = require("../../plain/number/index.js"); var name = 'asinh'; var dependencies = ['typed']; var createAsinh = exports.createAsinh = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) { var typed = _ref.typed; /** * Calculate the hyperbolic arcsine of a value, * defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`. * * To avoid confusion with the matrix hyperbolic arcsine, this function * does not apply to matrices. * * Syntax: * * math.asinh(x) * * Examples: * * math.asinh(0.5) // returns 0.48121182505960347 * * See also: * * acosh, atanh * * @param {number | BigNumber | Complex} x Function input * @return {number | BigNumber | Complex} Hyperbolic arcsine of x */ return typed('asinh', { number: _index.asinhNumber, Complex: function Complex(x) { return x.asinh(); }, BigNumber: function BigNumber(x) { return x.asinh(); } }); });