feat:node-modules

This commit is contained in:
houjunxiang
2025-11-24 10:26:18 +08:00
parent 753766893b
commit 8a3e48d856
8825 changed files with 567399 additions and 1 deletions

View File

@@ -0,0 +1,55 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createAcos = void 0;
var _factory = require("../../utils/factory.js");
const name = 'acos';
const dependencies = ['typed', 'config', 'Complex'];
const createAcos = exports.createAcos = /* #__PURE__ */(0, _factory.factory)(name, dependencies, _ref => {
let {
typed,
config,
Complex
} = _ref;
/**
* Calculate the inverse cosine of a value.
*
* To avoid confusion with the matrix arccosine, this function does not
* apply to matrices.
*
* Syntax:
*
* math.acos(x)
*
* Examples:
*
* math.acos(0.5) // returns number 1.0471975511965979
* math.acos(math.cos(1.5)) // returns number 1.5
*
* math.acos(2) // returns Complex 0 + 1.3169578969248166 i
*
* See also:
*
* cos, atan, asin
*
* @param {number | BigNumber | Complex} x Function input
* @return {number | BigNumber | Complex} The arc cosine of x
*/
return typed(name, {
number: function (x) {
if (x >= -1 && x <= 1 || config.predictable) {
return Math.acos(x);
} else {
return new Complex(x, 0).acos();
}
},
Complex: function (x) {
return x.acos();
},
BigNumber: function (x) {
return x.acos();
}
});
});

View File

@@ -0,0 +1,55 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createAcosh = void 0;
var _factory = require("../../utils/factory.js");
var _index = require("../../plain/number/index.js");
const name = 'acosh';
const dependencies = ['typed', 'config', 'Complex'];
const createAcosh = exports.createAcosh = /* #__PURE__ */(0, _factory.factory)(name, dependencies, _ref => {
let {
typed,
config,
Complex
} = _ref;
/**
* Calculate the hyperbolic arccos of a value,
* defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.
*
* For matrices, the function is evaluated element wise.
*
* Syntax:
*
* math.acosh(x)
*
* Examples:
*
* math.acosh(1.5) // returns 0.9624236501192069
*
* See also:
*
* cosh, asinh, atanh
*
* @param {number | BigNumber | Complex} x Function input
* @return {number | BigNumber | Complex} Hyperbolic arccosine of x
*/
return typed(name, {
number: function (x) {
if (x >= 1 || config.predictable) {
return (0, _index.acoshNumber)(x);
}
if (x <= -1) {
return new Complex(Math.log(Math.sqrt(x * x - 1) - x), Math.PI);
}
return new Complex(x, 0).acosh();
},
Complex: function (x) {
return x.acosh();
},
BigNumber: function (x) {
return x.acosh();
}
});
});

View File

@@ -0,0 +1,48 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createAcot = void 0;
var _factory = require("../../utils/factory.js");
var _index = require("../../plain/number/index.js");
const name = 'acot';
const dependencies = ['typed', 'BigNumber'];
const createAcot = exports.createAcot = /* #__PURE__ */(0, _factory.factory)(name, dependencies, _ref => {
let {
typed,
BigNumber
} = _ref;
/**
* Calculate the inverse cotangent of a value, defined as `acot(x) = atan(1/x)`.
*
* To avoid confusion with the matrix arccotanget, this function does not
* apply to matrices.
*
* Syntax:
*
* math.acot(x)
*
* Examples:
*
* math.acot(0.5) // returns number 1.1071487177940904
* math.acot(2) // returns number 0.4636476090008061
* math.acot(math.cot(1.5)) // returns number 1.5
*
* See also:
*
* cot, atan
*
* @param {number | BigNumber| Complex} x Function input
* @return {number | BigNumber| Complex} The arc cotangent of x
*/
return typed(name, {
number: _index.acotNumber,
Complex: function (x) {
return x.acot();
},
BigNumber: function (x) {
return new BigNumber(1).div(x).atan();
}
});
});

View File

@@ -0,0 +1,54 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createAcoth = void 0;
var _factory = require("../../utils/factory.js");
var _index = require("../../plain/number/index.js");
const name = 'acoth';
const dependencies = ['typed', 'config', 'Complex', 'BigNumber'];
const createAcoth = exports.createAcoth = /* #__PURE__ */(0, _factory.factory)(name, dependencies, _ref => {
let {
typed,
config,
Complex,
BigNumber
} = _ref;
/**
* Calculate the inverse hyperbolic tangent of a value,
* defined as `acoth(x) = atanh(1/x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.
*
* To avoid confusion with the matrix inverse hyperbolic tangent, this
* function does not apply to matrices.
*
* Syntax:
*
* math.acoth(x)
*
* Examples:
*
* math.acoth(0.5) // returns 0.8047189562170503
*
* See also:
*
* acsch, asech
*
* @param {number | BigNumber | Complex} x Function input
* @return {number | BigNumber | Complex} Hyperbolic arccotangent of x
*/
return typed(name, {
number: function (x) {
if (x >= 1 || x <= -1 || config.predictable) {
return (0, _index.acothNumber)(x);
}
return new Complex(x, 0).acoth();
},
Complex: function (x) {
return x.acoth();
},
BigNumber: function (x) {
return new BigNumber(1).div(x).atanh();
}
});
});

View File

@@ -0,0 +1,55 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createAcsc = void 0;
var _factory = require("../../utils/factory.js");
var _index = require("../../plain/number/index.js");
const name = 'acsc';
const dependencies = ['typed', 'config', 'Complex', 'BigNumber'];
const createAcsc = exports.createAcsc = /* #__PURE__ */(0, _factory.factory)(name, dependencies, _ref => {
let {
typed,
config,
Complex,
BigNumber
} = _ref;
/**
* Calculate the inverse cosecant of a value, defined as `acsc(x) = asin(1/x)`.
*
* To avoid confusion with the matrix arccosecant, this function does not
* apply to matrices.
*
* Syntax:
*
* math.acsc(x)
*
* Examples:
*
* math.acsc(2) // returns 0.5235987755982989
* math.acsc(0.5) // returns Complex 1.5707963267948966 -1.3169578969248166i
* math.acsc(math.csc(1.5)) // returns number ~1.5
*
* See also:
*
* csc, asin, asec
*
* @param {number | BigNumber | Complex} x Function input
* @return {number | BigNumber | Complex} The arc cosecant of x
*/
return typed(name, {
number: function (x) {
if (x <= -1 || x >= 1 || config.predictable) {
return (0, _index.acscNumber)(x);
}
return new Complex(x, 0).acsc();
},
Complex: function (x) {
return x.acsc();
},
BigNumber: function (x) {
return new BigNumber(1).div(x).asin();
}
});
});

View File

@@ -0,0 +1,47 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createAcsch = void 0;
var _factory = require("../../utils/factory.js");
var _index = require("../../plain/number/index.js");
const name = 'acsch';
const dependencies = ['typed', 'BigNumber'];
const createAcsch = exports.createAcsch = /* #__PURE__ */(0, _factory.factory)(name, dependencies, _ref => {
let {
typed,
BigNumber
} = _ref;
/**
* Calculate the inverse hyperbolic cosecant of a value,
* defined as `acsch(x) = asinh(1/x) = ln(1/x + sqrt(1/x^2 + 1))`.
*
* To avoid confusion with the matrix inverse hyperbolic cosecant, this function
* does not apply to matrices.
*
* Syntax:
*
* math.acsch(x)
*
* Examples:
*
* math.acsch(0.5) // returns 1.4436354751788103
*
* See also:
*
* asech, acoth
*
* @param {number | BigNumber | Complex} x Function input
* @return {number | BigNumber | Complex} Hyperbolic arccosecant of x
*/
return typed(name, {
number: _index.acschNumber,
Complex: function (x) {
return x.acsch();
},
BigNumber: function (x) {
return new BigNumber(1).div(x).asinh();
}
});
});

View File

@@ -0,0 +1,56 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createAsec = void 0;
var _factory = require("../../utils/factory.js");
var _index = require("../../plain/number/index.js");
const name = 'asec';
const dependencies = ['typed', 'config', 'Complex', 'BigNumber'];
const createAsec = exports.createAsec = /* #__PURE__ */(0, _factory.factory)(name, dependencies, _ref => {
let {
typed,
config,
Complex,
BigNumber
} = _ref;
/**
* Calculate the inverse secant of a value. Defined as `asec(x) = acos(1/x)`.
*
* To avoid confusion with the matrix arcsecant, this function does not
* apply to matrices.
*
* Syntax:
*
* math.asec(x)
*
* Examples:
*
* math.asec(2) // returns 1.0471975511965979
* math.asec(math.sec(1.5)) // returns 1.5
*
* math.asec(0.5) // returns Complex 0 + 1.3169578969248166i
*
* See also:
*
* acos, acot, acsc
*
* @param {number | BigNumber | Complex} x Function input
* @return {number | BigNumber | Complex} The arc secant of x
*/
return typed(name, {
number: function (x) {
if (x <= -1 || x >= 1 || config.predictable) {
return (0, _index.asecNumber)(x);
}
return new Complex(x, 0).asec();
},
Complex: function (x) {
return x.asec();
},
BigNumber: function (x) {
return new BigNumber(1).div(x).acos();
}
});
});

View File

@@ -0,0 +1,59 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createAsech = void 0;
var _factory = require("../../utils/factory.js");
var _index = require("../../plain/number/index.js");
const name = 'asech';
const dependencies = ['typed', 'config', 'Complex', 'BigNumber'];
const createAsech = exports.createAsech = /* #__PURE__ */(0, _factory.factory)(name, dependencies, _ref => {
let {
typed,
config,
Complex,
BigNumber
} = _ref;
/**
* Calculate the hyperbolic arcsecant of a value,
* defined as `asech(x) = acosh(1/x) = ln(sqrt(1/x^2 - 1) + 1/x)`.
*
* To avoid confusion with the matrix hyperbolic arcsecant, this function
* does not apply to matrices.
*
* Syntax:
*
* math.asech(x)
*
* Examples:
*
* math.asech(0.5) // returns 1.3169578969248166
*
* See also:
*
* acsch, acoth
*
* @param {number | BigNumber | Complex} x Function input
* @return {number | BigNumber | Complex} Hyperbolic arcsecant of x
*/
return typed(name, {
number: function (x) {
if (x <= 1 && x >= -1 || config.predictable) {
const xInv = 1 / x;
if (xInv > 0 || config.predictable) {
return (0, _index.asechNumber)(x);
}
const ret = Math.sqrt(xInv * xInv - 1);
return new Complex(Math.log(ret - xInv), Math.PI);
}
return new Complex(x, 0).asech();
},
Complex: function (x) {
return x.asech();
},
BigNumber: function (x) {
return new BigNumber(1).div(x).acosh();
}
});
});

View File

@@ -0,0 +1,55 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.createAsin = void 0;
var _factory = require("../../utils/factory.js");
const name = 'asin';
const dependencies = ['typed', 'config', 'Complex'];
const createAsin = exports.createAsin = /* #__PURE__ */(0, _factory.factory)(name, dependencies, _ref => {
let {
typed,
config,
Complex
} = _ref;
/**
* Calculate the inverse sine of a value.
*
* To avoid confusion with the matric arcsine, this function does not apply
* to matrices.
*
* Syntax:
*
* math.asin(x)
*
* Examples:
*
* math.asin(0.5) // returns number 0.5235987755982989
* math.asin(math.sin(1.5)) // returns number ~1.5
*
* math.asin(2) // returns Complex 1.5707963267948966 -1.3169578969248166i
*
* See also:
*
* sin, atan, acos
*
* @param {number | BigNumber | Complex} x Function input
* @return {number | BigNumber | Complex} The arc sine of x
*/
return typed(name, {
number: function (x) {
if (x >= -1 && x <= 1 || config.predictable) {
return Math.asin(x);
} else {
return new Complex(x, 0).asin();
}
},
Complex: function (x) {
return x.asin();
},
BigNumber: function (x) {
return x.asin();
}
});
});

View File

@@ -0,0 +1,46 @@
"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");
const name = 'asinh';
const dependencies = ['typed'];
const createAsinh = exports.createAsinh = /* #__PURE__ */(0, _factory.factory)(name, dependencies, _ref => {
let {
typed
} = _ref;
/**
* 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 (x) {
return x.asinh();
},
BigNumber: function (x) {
return x.asinh();
}
});
});

Some files were not shown because too many files have changed in this diff Show More