simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

max.js (449B)


      1 export var maxDocs = {
      2   name: 'max',
      3   category: 'Statistics',
      4   syntax: ['max(a, b, c, ...)', 'max(A)', 'max(A, dim)'],
      5   description: 'Compute the maximum value of a list of values.',
      6   examples: ['max(2, 3, 4, 1)', 'max([2, 3, 4, 1])', 'max([2, 5; 4, 3])', 'max([2, 5; 4, 3], 1)', 'max([2, 5; 4, 3], 2)', 'max(2.7, 7.1, -4.5, 2.0, 4.1)', 'min(2.7, 7.1, -4.5, 2.0, 4.1)'],
      7   seealso: ['mean', 'median', 'min', 'prod', 'std', 'sum', 'variance']
      8 };