diff --git a/HISTORY.md b/HISTORY.md index b002f02990..72a7fdea2f 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -516,7 +516,7 @@ Non-breaking changes: # 2022-05-24, version 10.6.0 -- Implementation of fourier transform functions `fft` and `ifft` (#2540). +- Implementation of Fourier transform functions `fft` and `ifft` (#2540). Thanks @HanchaiN. - Fix TypeScript types not being listed in the exported fields (#2569). Thanks @mattvague. diff --git a/src/expression/embeddedDocs/embeddedDocs.js b/src/expression/embeddedDocs/embeddedDocs.js index 8474694ed8..becafabd4c 100644 --- a/src/expression/embeddedDocs/embeddedDocs.js +++ b/src/expression/embeddedDocs/embeddedDocs.js @@ -293,7 +293,7 @@ export const embeddedDocs = { vacuumImpedance: { description: 'Characteristic impedance of vacuum', examples: ['vacuumImpedance'] }, coulomb: { description: 'Coulomb\'s constant', examples: ['coulomb'] }, elementaryCharge: { description: 'Elementary charge', examples: ['elementaryCharge'] }, - bohrMagneton: { description: 'Borh magneton', examples: ['bohrMagneton'] }, + bohrMagneton: { description: 'Bohr magneton', examples: ['bohrMagneton'] }, conductanceQuantum: { description: 'Conductance quantum', examples: ['conductanceQuantum'] }, inverseConductanceQuantum: { description: 'Inverse conductance quantum', examples: ['inverseConductanceQuantum'] }, // josephson: {description: 'Josephson constant', examples: ['josephson']}, @@ -301,7 +301,7 @@ export const embeddedDocs = { nuclearMagneton: { description: 'Nuclear magneton', examples: ['nuclearMagneton'] }, klitzing: { description: 'Von Klitzing constant', examples: ['klitzing'] }, - bohrRadius: { description: 'Borh radius', examples: ['bohrRadius'] }, + bohrRadius: { description: 'Bohr radius', examples: ['bohrRadius'] }, classicalElectronRadius: { description: 'Classical electron radius', examples: ['classicalElectronRadius'] }, electronMass: { description: 'Electron mass', examples: ['electronMass'] }, fermiCoupling: { description: 'Fermi coupling constant', examples: ['fermiCoupling'] }, diff --git a/src/expression/embeddedDocs/function/arithmetic/hypot.js b/src/expression/embeddedDocs/function/arithmetic/hypot.js index 24c037b763..da6df1ccdb 100644 --- a/src/expression/embeddedDocs/function/arithmetic/hypot.js +++ b/src/expression/embeddedDocs/function/arithmetic/hypot.js @@ -5,7 +5,7 @@ export const hypotDocs = { 'hypot(a, b, c, ...)', 'hypot([a, b, c, ...])' ], - description: 'Calculate the hypotenusa of a list with values. ', + description: 'Calculate the hypotenuse of a list with values.', examples: [ 'hypot(3, 4)', 'sqrt(3^2 + 4^2)', diff --git a/src/expression/embeddedDocs/function/matrix/diff.js b/src/expression/embeddedDocs/function/matrix/diff.js index be75436c0a..df5ab4c54c 100644 --- a/src/expression/embeddedDocs/function/matrix/diff.js +++ b/src/expression/embeddedDocs/function/matrix/diff.js @@ -7,7 +7,7 @@ export const diffDocs = { ], description: [ 'Create a new matrix or array with the difference of the passed matrix or array.', - 'Dim parameter is optional and used to indicant the dimension of the array/matrix to apply the difference', + 'Dim parameter is optional and used to indicate the dimension of the array/matrix to apply the difference', 'If no dimension parameter is passed it is assumed as dimension 0', 'Dimension is zero-based in javascript and one-based in the parser', 'Arrays must be \'rectangular\' meaning arrays like [1, 2]', diff --git a/src/expression/embeddedDocs/function/matrix/fft.js b/src/expression/embeddedDocs/function/matrix/fft.js index d4d1835207..930f0eb545 100644 --- a/src/expression/embeddedDocs/function/matrix/fft.js +++ b/src/expression/embeddedDocs/function/matrix/fft.js @@ -4,7 +4,7 @@ export const fftDocs = { syntax: [ 'fft(x)' ], - description: 'Calculate N-dimensional fourier transform', + description: 'Calculate N-dimensional Fourier transform', examples: [ 'fft([[1, 0], [1, 0]])' ], diff --git a/src/expression/embeddedDocs/function/matrix/ifft.js b/src/expression/embeddedDocs/function/matrix/ifft.js index 6584cc664c..f5d48a636c 100644 --- a/src/expression/embeddedDocs/function/matrix/ifft.js +++ b/src/expression/embeddedDocs/function/matrix/ifft.js @@ -4,7 +4,7 @@ export const ifftDocs = { syntax: [ 'ifft(x)' ], - description: 'Calculate N-dimensional inverse fourier transform', + description: 'Calculate N-dimensional inverse Fourier transform', examples: [ 'ifft([[2, 2], [0, 0]])' ], diff --git a/src/expression/embeddedDocs/function/matrix/kron.js b/src/expression/embeddedDocs/function/matrix/kron.js index 187bfc247c..cbe09ccc7c 100644 --- a/src/expression/embeddedDocs/function/matrix/kron.js +++ b/src/expression/embeddedDocs/function/matrix/kron.js @@ -4,7 +4,7 @@ export const kronDocs = { syntax: [ 'kron(x, y)' ], - description: 'Calculates the kronecker product of 2 matrices or vectors.', + description: 'Calculates the Kronecker product of 2 matrices or vectors.', examples: [ 'kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])', 'kron([1,1], [2,3,4])' diff --git a/src/expression/embeddedDocs/function/special/zeta.js b/src/expression/embeddedDocs/function/special/zeta.js index 1871dab9e9..978d5cb557 100644 --- a/src/expression/embeddedDocs/function/special/zeta.js +++ b/src/expression/embeddedDocs/function/special/zeta.js @@ -4,7 +4,7 @@ export const zetaDocs = { syntax: [ 'zeta(s)' ], - description: 'Compute the Riemann Zeta Function using an infinite series and Riemanns Functional Equation for the entire complex plane', + description: 'Compute the Riemann Zeta Function using an infinite series and Riemann\'s Functional Equation for the entire complex plane', examples: [ 'zeta(0.2)', 'zeta(-0.5)', diff --git a/src/expression/embeddedDocs/function/statistics/quantileSeq.js b/src/expression/embeddedDocs/function/statistics/quantileSeq.js index e6a9e421a8..2ddbb0f3df 100644 --- a/src/expression/embeddedDocs/function/statistics/quantileSeq.js +++ b/src/expression/embeddedDocs/function/statistics/quantileSeq.js @@ -6,7 +6,7 @@ export const quantileSeqDocs = { 'quantileSeq(A, [prob1, prob2, ...][, sorted])', 'quantileSeq(A, N[, sorted])' ], - description: 'Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber. \n\nIn case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.', + description: 'Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probability are: Number, BigNumber. \n\nIn case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.', examples: [ 'quantileSeq([3, -1, 5, 7], 0.5)', 'quantileSeq([3, -1, 5, 7], [1/3, 2/3])', diff --git a/src/expression/embeddedDocs/function/trigonometry/acoth.js b/src/expression/embeddedDocs/function/trigonometry/acoth.js index 866ff24efb..93feb0c387 100644 --- a/src/expression/embeddedDocs/function/trigonometry/acoth.js +++ b/src/expression/embeddedDocs/function/trigonometry/acoth.js @@ -4,7 +4,7 @@ export const acothDocs = { syntax: [ 'acoth(x)' ], - description: 'Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.', + description: 'Calculate the inverse hyperbolic tangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.', examples: [ 'acoth(2)', 'acoth(0.5)' diff --git a/src/expression/embeddedDocs/function/trigonometry/acsch.js b/src/expression/embeddedDocs/function/trigonometry/acsch.js index 3b69b96672..10e15e93c9 100644 --- a/src/expression/embeddedDocs/function/trigonometry/acsch.js +++ b/src/expression/embeddedDocs/function/trigonometry/acsch.js @@ -4,7 +4,7 @@ export const acschDocs = { syntax: [ 'acsch(x)' ], - description: 'Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.', + description: 'Calculate the inverse hyperbolic cosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.', examples: [ 'acsch(0.5)' ], diff --git a/src/expression/embeddedDocs/function/utils/clone.js b/src/expression/embeddedDocs/function/utils/clone.js index fb40d77a94..6c008f5bdc 100644 --- a/src/expression/embeddedDocs/function/utils/clone.js +++ b/src/expression/embeddedDocs/function/utils/clone.js @@ -4,7 +4,7 @@ export const cloneDocs = { syntax: [ 'clone(x)' ], - description: 'Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices', + description: 'Clone a variable. Creates a copy of primitive variables, and a deep copy of matrices', examples: [ 'clone(3.5)', 'clone(2 - 4i)', diff --git a/src/function/arithmetic/hypot.js b/src/function/arithmetic/hypot.js index 4b5d3e160a..407fe1b25c 100644 --- a/src/function/arithmetic/hypot.js +++ b/src/function/arithmetic/hypot.js @@ -16,11 +16,11 @@ const dependencies = [ export const createHypot = /* #__PURE__ */ factory(name, dependencies, ({ typed, abs, addScalar, divideScalar, multiplyScalar, sqrt, smaller, isPositive }) => { /** - * Calculate the hypotenusa of a list with values. The hypotenusa is defined as: + * Calculate the hypotenuse of a list with values. The hypotenuse is defined as: * * hypot(a, b, c, ...) = sqrt(a^2 + b^2 + c^2 + ...) * - * For matrix input, the hypotenusa is calculated for all values in the matrix. + * For matrix input, the hypotenuse is calculated for all values in the matrix. * * Syntax: * @@ -52,7 +52,7 @@ export const createHypot = /* #__PURE__ */ factory(name, dependencies, ({ typed, }) /** - * Calculate the hypotenusa for an Array with values + * Calculate the hypotenuse for an Array with values * @param {Array.} args * @return {number | BigNumber} Returns the result * @private diff --git a/src/function/matrix/fft.js b/src/function/matrix/fft.js index e82325fbdc..c3896b2411 100644 --- a/src/function/matrix/fft.js +++ b/src/function/matrix/fft.js @@ -34,7 +34,7 @@ export const createFft = /* #__PURE__ */ factory(name, dependencies, ({ log2 }) => { /** - * Calculate N-dimensional fourier transform + * Calculate N-dimensional Fourier transform * * Syntax: * @@ -50,7 +50,7 @@ export const createFft = /* #__PURE__ */ factory(name, dependencies, ({ * ifft * * @param {Array | Matrix} arr An array or matrix - * @return {Array | Matrix} N-dimensional fourier transformation of the array + * @return {Array | Matrix} N-dimensional Fourier transformation of the array */ return typed(name, { Array: _ndFft, diff --git a/src/function/matrix/ifft.js b/src/function/matrix/ifft.js index 60081a79eb..05ecd978d2 100644 --- a/src/function/matrix/ifft.js +++ b/src/function/matrix/ifft.js @@ -17,7 +17,7 @@ export const createIfft = /* #__PURE__ */ factory(name, dependencies, ({ conj }) => { /** - * Calculate N-dimensional inverse fourier transform + * Calculate N-dimensional inverse Fourier transform * * Syntax: * @@ -32,7 +32,7 @@ export const createIfft = /* #__PURE__ */ factory(name, dependencies, ({ * fft * * @param {Array | Matrix} arr An array or matrix - * @return {Array | Matrix} N-dimensional fourier transformation of the array + * @return {Array | Matrix} N-dimensional Fourier transformation of the array */ return typed(name, { 'Array | Matrix': function (arr) { diff --git a/src/function/matrix/kron.js b/src/function/matrix/kron.js index a7a92b1adc..1583672cb6 100644 --- a/src/function/matrix/kron.js +++ b/src/function/matrix/kron.js @@ -6,7 +6,7 @@ const dependencies = ['typed', 'matrix', 'multiplyScalar'] export const createKron = /* #__PURE__ */ factory(name, dependencies, ({ typed, matrix, multiplyScalar }) => { /** - * Calculates the kronecker product of 2 matrices or vectors. + * Calculates the Kronecker product of 2 matrices or vectors. * * NOTE: If a one dimensional vector / matrix is given, it will be * wrapped so its two dimensions. @@ -30,7 +30,7 @@ export const createKron = /* #__PURE__ */ factory(name, dependencies, ({ typed, * * @param {Array | Matrix} x First vector * @param {Array | Matrix} y Second vector - * @return {Array | Matrix} Returns the kronecker product of `x` and `y` + * @return {Array | Matrix} Returns the Kronecker product of `x` and `y` */ return typed(name, { 'Matrix, Matrix': function (x, y) { @@ -49,10 +49,10 @@ export const createKron = /* #__PURE__ */ factory(name, dependencies, ({ typed, }) /** - * Calculate the kronecker product of two matrices / vectors + * Calculate the Kronecker product of two matrices / vectors * @param {Array} a First vector * @param {Array} b Second vector - * @returns {Array} Returns the kronecker product of x and y + * @returns {Array} Returns the Kronecker product of x and y * @private */ function _kron (a, b) { diff --git a/src/function/trigonometry/acoth.js b/src/function/trigonometry/acoth.js index d339dbb499..0ffaec7ae6 100644 --- a/src/function/trigonometry/acoth.js +++ b/src/function/trigonometry/acoth.js @@ -6,10 +6,10 @@ const dependencies = ['typed', 'config', 'Complex', 'BigNumber'] export const createAcoth = /* #__PURE__ */ factory(name, dependencies, ({ typed, config, Complex, BigNumber }) => { /** - * Calculate the hyperbolic arccotangent of a value, + * 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 hyperbolic arccotangent, this + * To avoid confusion with the matrix inverse hyperbolic tangent, this * function does not apply to matrices. * * Syntax: diff --git a/src/function/trigonometry/acsch.js b/src/function/trigonometry/acsch.js index e287f3c890..6ed3f5b18b 100644 --- a/src/function/trigonometry/acsch.js +++ b/src/function/trigonometry/acsch.js @@ -6,10 +6,10 @@ const dependencies = ['typed', 'BigNumber'] export const createAcsch = /* #__PURE__ */ factory(name, dependencies, ({ typed, BigNumber }) => { /** - * Calculate the hyperbolic arccosecant of a value, + * 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 hyperbolic arccosecant, this function + * To avoid confusion with the matrix inverse hyperbolic cosecant, this function * does not apply to matrices. * * Syntax: diff --git a/test/unit-tests/function/matrix/fft.test.js b/test/unit-tests/function/matrix/fft.test.js index aa1d39a68b..7c80fc6a1f 100644 --- a/test/unit-tests/function/matrix/fft.test.js +++ b/test/unit-tests/function/matrix/fft.test.js @@ -5,14 +5,14 @@ import math from '../../../../src/defaultInstance.js' const fft = math.fft describe('fft', function () { - it('should calculate 1-dimensional fourier transformation', function () { + it('should calculate 1-dimensional Fourier transformation', function () { const in1 = [1, math.complex(2, -1), math.complex(0, -1), math.complex(-1, 2)] const out1 = [2, math.complex(-2, -2), math.complex(0, -2), math.complex(4, 4)] approxDeepEqual(fft(in1.valueOf()), out1.valueOf()) approxDeepEqual(fft(math.matrix(in1)), math.matrix(out1)) }) - it('should calculate multidimensional fourier transformation', function () { + it('should calculate multidimensional Fourier transformation', function () { const in1 = [ [1, 0], [1, 0] @@ -39,7 +39,7 @@ describe('fft', function () { approxDeepEqual(fft(math.matrix(in2)), math.matrix(out2)) }) - it('should calculate 1-dimensional non-power-of-2 fourier transformation', function () { + it('should calculate 1-dimensional non-power-of-2 Fourier transformation', function () { const in1 = [1, 2, 3] const out1 = [math.complex(6, -0), math.complex(-1.5, 0.8660254), math.complex(-1.5, -0.8660254)] approxDeepEqual(fft(in1.valueOf()), out1.valueOf()) @@ -53,7 +53,7 @@ describe('fft', function () { approxDeepEqual(fft(math.matrix(in2)), math.matrix(out2)) }) - it('should calculate multidimensional non-power-of-2 fourier transformation', function () { + it('should calculate multidimensional non-power-of-2 Fourier transformation', function () { const in1 = [ [1, 2, 3], [4, 5, 6], diff --git a/test/unit-tests/function/matrix/ifft.test.js b/test/unit-tests/function/matrix/ifft.test.js index 4e5a839a79..f6ef6cd63f 100644 --- a/test/unit-tests/function/matrix/ifft.test.js +++ b/test/unit-tests/function/matrix/ifft.test.js @@ -5,11 +5,11 @@ import math from '../../../../src/defaultInstance.js' const ifft = math.ifft describe('ifft', function () { - it('should calculate 1-dimensional inverse fourier transformation', function () { + it('should calculate 1-dimensional inverse Fourier transformation', function () { approxDeepEqual(ifft([2, math.complex(-2, -2), math.complex(0, -2), math.complex(4, 4)]), [1, math.complex(2, -1), math.complex(0, -1), math.complex(-1, 2)]) }) - it('should calculate multidimensional inverse fourier transformation', function () { + it('should calculate multidimensional inverse Fourier transformation', function () { const in1 = [ [1, 0], [1, 0] diff --git a/test/unit-tests/function/matrix/kron.test.js b/test/unit-tests/function/matrix/kron.test.js index 56af01123d..f93516c696 100644 --- a/test/unit-tests/function/matrix/kron.test.js +++ b/test/unit-tests/function/matrix/kron.test.js @@ -1,10 +1,10 @@ -// test kronecker product +// test Kronecker product import assert from 'assert' import math from '../../../../src/defaultInstance.js' describe('kron', function () { - it('should calculate the kronecker product of two arrays', function () { + it('should calculate the Kronecker product of two arrays', function () { assert.deepStrictEqual(math.kron([ [1, -2, 1], [1, 1, 0] @@ -67,21 +67,21 @@ describe('kron', function () { }) describe('DenseMatrix', function () { - it('should calculate the kronecker product of a 2d matrix (1)', function () { + it('should calculate the Kronecker product of a 2d matrix (1)', function () { const y = math.matrix([[1, 1], [1, 1]]) const x = math.matrix([[1, 0], [0, 1]]) const product = math.kron(x, y) assert.deepStrictEqual(product.valueOf(), [[1, 1, 0, 0], [1, 1, 0, 0], [0, 0, 1, 1], [0, 0, 1, 1]]) }) - it('should calculate the kronecker product of a 2d matrix (2)', function () { + it('should calculate the Kronecker product of a 2d matrix (2)', function () { const y = math.matrix([[1, 2], [55, -1]]) const x = math.matrix([[13, 0], [0, -1]]) const product = math.kron(x, y) assert.deepStrictEqual(product.toArray(), [[13, 26, 0, 0], [715, -13, 0, -0], [0, 0, -1, -2], [0, -0, -55, 1]]) }) - it('should throw an error for invalid kronecker product of matrix', function () { + it('should throw an error for invalid Kronecker product of matrix', function () { const y = math.matrix([[[]]]) const x = math.matrix([[[1, 1], [1, 1]], [[1, 1], [1, 1]]]) assert.throws(function () { math.kron(y, x) }) @@ -89,14 +89,14 @@ describe('kron', function () { }) describe('SparseMatrix', function () { - it('should calculate the kronecker product of a 2d matrix (1)', function () { + it('should calculate the Kronecker product of a 2d matrix (1)', function () { const y = math.sparse([[1, 1], [1, 1]]) const x = math.sparse([[1, 0], [0, 1]]) const product = math.kron(x, y) assert.deepStrictEqual(product.valueOf(), [[1, 1, 0, 0], [1, 1, 0, 0], [0, 0, 1, 1], [0, 0, 1, 1]]) }) - it('should calculate the kronecker product of a 2d matrix (2)', function () { + it('should calculate the Kronecker product of a 2d matrix (2)', function () { const y = math.matrix([[1, 2], [55, -1]], 'sparse') const x = math.matrix([[13, 0], [0, -1]], 'sparse') const product = math.kron(x, y) diff --git a/types/index.d.ts b/types/index.d.ts index b2983bc4b4..1ef7253caf 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1245,9 +1245,9 @@ export interface MathJsInstance extends MathJsFactory { gcd(args: T[]): T /** - * Calculate the hypotenusa of a list with values. The hypotenusa is + * Calculate the hypotenuse of a list with values. The hypotenuse is * defined as: hypot(a, b, c, ...) = sqrt(a^2 + b^2 + c^2 + ...) For - * matrix input, the hypotenusa is calculated for all values in the + * matrix input, the hypotenuse is calculated for all values in the * matrix. * @param args A list with numeric values or an Array or Matrix. Matrix * and Array input is flattened and returns a single number for the @@ -1948,10 +1948,10 @@ export interface MathJsInstance extends MathJsFactory { inv(x: T): NoLiteralType /** - * Calculate the kronecker product of two matrices or vectors + * Calculate the Kronecker product of two matrices or vectors * @param x First vector * @param y Second vector - * @returns Returns the kronecker product of x and y + * @returns Returns the Kronecker product of x and y */ kron(x: MathCollection, y: MathCollection): Matrix @@ -2241,16 +2241,16 @@ export interface MathJsInstance extends MathJsFactory { **/ /** - * Calculate N-dimensional fourier transform + * Calculate N-dimensional Fourier transform * @param {Array | Matrix} arr An array or matrix - * @return {Array | Matrix} N-dimensional fourier transformation of the array + * @return {Array | Matrix} N-dimensional Fourier transformation of the array */ fft(arr: T): T /** - * Calculate N-dimensional inverse fourier transform + * Calculate N-dimensional inverse Fourier transform * @param {Array | Matrix} arr An array or matrix - * @return {Array | Matrix} N-dimensional fourier transformation of the array + * @return {Array | Matrix} N-dimensional Fourier transformation of the array */ ifft(arr: T): T @@ -3136,10 +3136,10 @@ export interface MathJsInstance extends MathJsFactory { acot(x: T): T /** - * Calculate the hyperbolic arccotangent of a value, defined as acoth(x) + * Calculate the inverse hyperbolic tangent of a value, defined as acoth(x) * = (ln((x+1)/x) + ln(x/(x-1))) / 2. * @param x Function input - * @returns The hyperbolic arccotangent of x + * @returns The inverse hyperbolic tangent of x */ acoth(x: number): number acoth(x: T): T @@ -3153,10 +3153,10 @@ export interface MathJsInstance extends MathJsFactory { acsc(x: T): T /** - * Calculate the hyperbolic arccosecant of a value, defined as acsch(x) + * Calculate the inverse hyperbolic cosecant of a value, defined as acsch(x) * = ln(1/x + sqrt(1/x^2 + 1)). * @param x Function input - * @returns The hyperbolic arccosecant of x + * @returns The inverse hyperbolic cosecant of x */ acsch(x: number): number acsch(x: T): T @@ -5076,9 +5076,9 @@ export interface MathJsChain { ): MathJsChain /** - * Calculate the hypotenusa of a list with values. The hypotenusa is + * Calculate the hypotenuse of a list with values. The hypotenuse is * defined as: hypot(a, b, c, ...) = sqrt(a^2 + b^2 + c^2 + ...) For - * matrix input, the hypotenusa is calculated for all values in the + * matrix input, the hypotenuse is calculated for all values in the * matrix. */ hypot(this: MathJsChain): MathJsChain @@ -5687,7 +5687,7 @@ export interface MathJsChain { ): MathJsChain> /** - * Calculate the kronecker product of two matrices or vectors + * Calculate the Kronecker product of two matrices or vectors * @param y Second vector */ kron( @@ -6545,7 +6545,7 @@ export interface MathJsChain { ): MathJsChain /** - * Calculate the hyperbolic arccotangent of a value, defined as acoth(x) + * Calculate the inverse hyperbolic tangent of a value, defined as acoth(x) * = (ln((x+1)/x) + ln(x/(x-1))) / 2. For matrices, the function is * evaluated element wise. */ @@ -6564,7 +6564,7 @@ export interface MathJsChain { ): MathJsChain /** - * Calculate the hyperbolic arccosecant of a value, defined as acsch(x) + * Calculate the inverse hyperbolic cosecant of a value, defined as acsch(x) * = ln(1/x + sqrt(1/x^2 + 1)). For matrices, the function is evaluated * element wise. */