log.js 646 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.logDocs = void 0;
  6. var logDocs = {
  7. name: 'log',
  8. category: 'Arithmetic',
  9. syntax: ['log(x)', 'log(x, base)'],
  10. description: 'Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).',
  11. examples: ['log(3.5)', 'a = log(2.4)', 'exp(a)', '10 ^ 4', 'log(10000, 10)', 'log(10000) / log(10)', 'b = log(1024, 2)', '2 ^ b'],
  12. seealso: ['exp', 'log1p', 'log2', 'log10']
  13. };
  14. exports.logDocs = logDocs;