feat:node-modules
This commit is contained in:
49
node_modules/mathjs/lib/esm/function/trigonometry/acos.js
generated
vendored
Normal file
49
node_modules/mathjs/lib/esm/function/trigonometry/acos.js
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
import { factory } from '../../utils/factory.js';
|
||||
var name = 'acos';
|
||||
var dependencies = ['typed', 'config', 'Complex'];
|
||||
export var createAcos = /* #__PURE__ */factory(name, dependencies, _ref => {
|
||||
var {
|
||||
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 number(x) {
|
||||
if (x >= -1 && x <= 1 || config.predictable) {
|
||||
return Math.acos(x);
|
||||
} else {
|
||||
return new Complex(x, 0).acos();
|
||||
}
|
||||
},
|
||||
Complex: function Complex(x) {
|
||||
return x.acos();
|
||||
},
|
||||
BigNumber: function BigNumber(x) {
|
||||
return x.acos();
|
||||
}
|
||||
});
|
||||
});
|
||||
49
node_modules/mathjs/lib/esm/function/trigonometry/acosh.js
generated
vendored
Normal file
49
node_modules/mathjs/lib/esm/function/trigonometry/acosh.js
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
import { factory } from '../../utils/factory.js';
|
||||
import { acoshNumber } from '../../plain/number/index.js';
|
||||
var name = 'acosh';
|
||||
var dependencies = ['typed', 'config', 'Complex'];
|
||||
export var createAcosh = /* #__PURE__ */factory(name, dependencies, _ref => {
|
||||
var {
|
||||
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 number(x) {
|
||||
if (x >= 1 || config.predictable) {
|
||||
return 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 Complex(x) {
|
||||
return x.acosh();
|
||||
},
|
||||
BigNumber: function BigNumber(x) {
|
||||
return x.acosh();
|
||||
}
|
||||
});
|
||||
});
|
||||
42
node_modules/mathjs/lib/esm/function/trigonometry/acot.js
generated
vendored
Normal file
42
node_modules/mathjs/lib/esm/function/trigonometry/acot.js
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
import { factory } from '../../utils/factory.js';
|
||||
import { acotNumber } from '../../plain/number/index.js';
|
||||
var name = 'acot';
|
||||
var dependencies = ['typed', 'BigNumber'];
|
||||
export var createAcot = /* #__PURE__ */factory(name, dependencies, _ref => {
|
||||
var {
|
||||
typed,
|
||||
BigNumber: _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: acotNumber,
|
||||
Complex: function Complex(x) {
|
||||
return x.acot();
|
||||
},
|
||||
BigNumber: function BigNumber(x) {
|
||||
return new _BigNumber(1).div(x).atan();
|
||||
}
|
||||
});
|
||||
});
|
||||
48
node_modules/mathjs/lib/esm/function/trigonometry/acoth.js
generated
vendored
Normal file
48
node_modules/mathjs/lib/esm/function/trigonometry/acoth.js
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
import { factory } from '../../utils/factory.js';
|
||||
import { acothNumber } from '../../plain/number/index.js';
|
||||
var name = 'acoth';
|
||||
var dependencies = ['typed', 'config', 'Complex', 'BigNumber'];
|
||||
export var createAcoth = /* #__PURE__ */factory(name, dependencies, _ref => {
|
||||
var {
|
||||
typed,
|
||||
config,
|
||||
Complex,
|
||||
BigNumber: _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 number(x) {
|
||||
if (x >= 1 || x <= -1 || config.predictable) {
|
||||
return acothNumber(x);
|
||||
}
|
||||
return new Complex(x, 0).acoth();
|
||||
},
|
||||
Complex: function Complex(x) {
|
||||
return x.acoth();
|
||||
},
|
||||
BigNumber: function BigNumber(x) {
|
||||
return new _BigNumber(1).div(x).atanh();
|
||||
}
|
||||
});
|
||||
});
|
||||
49
node_modules/mathjs/lib/esm/function/trigonometry/acsc.js
generated
vendored
Normal file
49
node_modules/mathjs/lib/esm/function/trigonometry/acsc.js
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
import { factory } from '../../utils/factory.js';
|
||||
import { acscNumber } from '../../plain/number/index.js';
|
||||
var name = 'acsc';
|
||||
var dependencies = ['typed', 'config', 'Complex', 'BigNumber'];
|
||||
export var createAcsc = /* #__PURE__ */factory(name, dependencies, _ref => {
|
||||
var {
|
||||
typed,
|
||||
config,
|
||||
Complex,
|
||||
BigNumber: _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 number(x) {
|
||||
if (x <= -1 || x >= 1 || config.predictable) {
|
||||
return acscNumber(x);
|
||||
}
|
||||
return new Complex(x, 0).acsc();
|
||||
},
|
||||
Complex: function Complex(x) {
|
||||
return x.acsc();
|
||||
},
|
||||
BigNumber: function BigNumber(x) {
|
||||
return new _BigNumber(1).div(x).asin();
|
||||
}
|
||||
});
|
||||
});
|
||||
41
node_modules/mathjs/lib/esm/function/trigonometry/acsch.js
generated
vendored
Normal file
41
node_modules/mathjs/lib/esm/function/trigonometry/acsch.js
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
import { factory } from '../../utils/factory.js';
|
||||
import { acschNumber } from '../../plain/number/index.js';
|
||||
var name = 'acsch';
|
||||
var dependencies = ['typed', 'BigNumber'];
|
||||
export var createAcsch = /* #__PURE__ */factory(name, dependencies, _ref => {
|
||||
var {
|
||||
typed,
|
||||
BigNumber: _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: acschNumber,
|
||||
Complex: function Complex(x) {
|
||||
return x.acsch();
|
||||
},
|
||||
BigNumber: function BigNumber(x) {
|
||||
return new _BigNumber(1).div(x).asinh();
|
||||
}
|
||||
});
|
||||
});
|
||||
50
node_modules/mathjs/lib/esm/function/trigonometry/asec.js
generated
vendored
Normal file
50
node_modules/mathjs/lib/esm/function/trigonometry/asec.js
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
import { factory } from '../../utils/factory.js';
|
||||
import { asecNumber } from '../../plain/number/index.js';
|
||||
var name = 'asec';
|
||||
var dependencies = ['typed', 'config', 'Complex', 'BigNumber'];
|
||||
export var createAsec = /* #__PURE__ */factory(name, dependencies, _ref => {
|
||||
var {
|
||||
typed,
|
||||
config,
|
||||
Complex,
|
||||
BigNumber: _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 number(x) {
|
||||
if (x <= -1 || x >= 1 || config.predictable) {
|
||||
return asecNumber(x);
|
||||
}
|
||||
return new Complex(x, 0).asec();
|
||||
},
|
||||
Complex: function Complex(x) {
|
||||
return x.asec();
|
||||
},
|
||||
BigNumber: function BigNumber(x) {
|
||||
return new _BigNumber(1).div(x).acos();
|
||||
}
|
||||
});
|
||||
});
|
||||
53
node_modules/mathjs/lib/esm/function/trigonometry/asech.js
generated
vendored
Normal file
53
node_modules/mathjs/lib/esm/function/trigonometry/asech.js
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
import { factory } from '../../utils/factory.js';
|
||||
import { asechNumber } from '../../plain/number/index.js';
|
||||
var name = 'asech';
|
||||
var dependencies = ['typed', 'config', 'Complex', 'BigNumber'];
|
||||
export var createAsech = /* #__PURE__ */factory(name, dependencies, _ref => {
|
||||
var {
|
||||
typed,
|
||||
config,
|
||||
Complex,
|
||||
BigNumber: _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 number(x) {
|
||||
if (x <= 1 && x >= -1 || config.predictable) {
|
||||
var xInv = 1 / x;
|
||||
if (xInv > 0 || config.predictable) {
|
||||
return asechNumber(x);
|
||||
}
|
||||
var ret = Math.sqrt(xInv * xInv - 1);
|
||||
return new Complex(Math.log(ret - xInv), Math.PI);
|
||||
}
|
||||
return new Complex(x, 0).asech();
|
||||
},
|
||||
Complex: function Complex(x) {
|
||||
return x.asech();
|
||||
},
|
||||
BigNumber: function BigNumber(x) {
|
||||
return new _BigNumber(1).div(x).acosh();
|
||||
}
|
||||
});
|
||||
});
|
||||
49
node_modules/mathjs/lib/esm/function/trigonometry/asin.js
generated
vendored
Normal file
49
node_modules/mathjs/lib/esm/function/trigonometry/asin.js
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
import { factory } from '../../utils/factory.js';
|
||||
var name = 'asin';
|
||||
var dependencies = ['typed', 'config', 'Complex'];
|
||||
export var createAsin = /* #__PURE__ */factory(name, dependencies, _ref => {
|
||||
var {
|
||||
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 number(x) {
|
||||
if (x >= -1 && x <= 1 || config.predictable) {
|
||||
return Math.asin(x);
|
||||
} else {
|
||||
return new Complex(x, 0).asin();
|
||||
}
|
||||
},
|
||||
Complex: function Complex(x) {
|
||||
return x.asin();
|
||||
},
|
||||
BigNumber: function BigNumber(x) {
|
||||
return x.asin();
|
||||
}
|
||||
});
|
||||
});
|
||||
40
node_modules/mathjs/lib/esm/function/trigonometry/asinh.js
generated
vendored
Normal file
40
node_modules/mathjs/lib/esm/function/trigonometry/asinh.js
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
import { factory } from '../../utils/factory.js';
|
||||
import { asinhNumber } from '../../plain/number/index.js';
|
||||
var name = 'asinh';
|
||||
var dependencies = ['typed'];
|
||||
export var createAsinh = /* #__PURE__ */factory(name, dependencies, _ref => {
|
||||
var {
|
||||
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: asinhNumber,
|
||||
Complex: function Complex(x) {
|
||||
return x.asinh();
|
||||
},
|
||||
BigNumber: function BigNumber(x) {
|
||||
return x.asinh();
|
||||
}
|
||||
});
|
||||
});
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user