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
10 lines (9 loc) • 319 B
JavaScript
;
module.exports = {
'name': 'arg',
'category': 'Complex',
'syntax': ['arg(x)'],
'description': 'Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).',
'examples': ['arg(2 + 2i)', 'atan2(3, 2)', 'arg(2 + 3i)'],
'seealso': ['re', 'im', 'conj', 'abs']
};