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
19 lines (18 loc) • 391 B
JavaScript
module.exports = {
'name': 'sqrtm',
'category': 'Arithmetic',
'syntax': [
'sqrtm(x)'
],
'description':
'Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.',
'examples': [
'sqrtm([[1, 2], [3, 4]])'
],
'seealso': [
'sqrt',
'abs',
'square',
'multiply'
]
}