simple-squiggle

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

cbrt.js (675B)


      1 "use strict";
      2 
      3 Object.defineProperty(exports, "__esModule", {
      4   value: true
      5 });
      6 exports.cbrtDocs = void 0;
      7 var cbrtDocs = {
      8   name: 'cbrt',
      9   category: 'Arithmetic',
     10   syntax: ['cbrt(x)', 'cbrt(x, allRoots)'],
     11   description: 'Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned',
     12   examples: ['cbrt(64)', 'cube(4)', 'cbrt(-8)', 'cbrt(2 + 3i)', 'cbrt(8i)', 'cbrt(8i, true)', 'cbrt(27 m^3)'],
     13   seealso: ['square', 'sqrt', 'cube', 'multiply']
     14 };
     15 exports.cbrtDocs = cbrtDocs;