simple-squiggle

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

config.js (982B)


      1 "use strict";
      2 
      3 Object.defineProperty(exports, "__esModule", {
      4   value: true
      5 });
      6 exports.DEFAULT_CONFIG = void 0;
      7 var DEFAULT_CONFIG = {
      8   // minimum relative difference between two compared values,
      9   // used by all comparison functions
     10   epsilon: 1e-12,
     11   // type of default matrix output. Choose 'matrix' (default) or 'array'
     12   matrix: 'Matrix',
     13   // type of default number output. Choose 'number' (default) 'BigNumber', or 'Fraction
     14   number: 'number',
     15   // number of significant digits in BigNumbers
     16   precision: 64,
     17   // predictable output type of functions. When true, output type depends only
     18   // on the input types. When false (default), output type can vary depending
     19   // on input values. For example `math.sqrt(-4)` returns `complex('2i')` when
     20   // predictable is false, and returns `NaN` when true.
     21   predictable: false,
     22   // random seed for seeded pseudo random number generation
     23   // null = randomly seed
     24   randomSeed: null
     25 };
     26 exports.DEFAULT_CONFIG = DEFAULT_CONFIG;