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
24 lines (23 loc) • 526 B
JavaScript
export const nthRootsDocs = {
name: 'nthRoots',
category: 'Arithmetic',
syntax: [
'nthRoots(A)',
'nthRoots(A, root)'
],
description: ('' +
'Calculate the nth roots of a value. ' +
'An nth root of a positive real number A, ' +
'is a positive real solution of the equation "x^root = A". ' +
'This function returns an array of complex values.'
),
examples: [
'nthRoots(1)',
'nthRoots(1, 3)'
],
seealso: [
'sqrt',
'pow',
'nthRoot'
]
}