@cortex-js/compute-engine 0.11.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/compute-engine.esm.js +1607 -1357
  2. package/dist/compute-engine.min.esm.js +2 -2
  3. package/dist/compute-engine.min.js +2 -2
  4. package/dist/math-json.esm.js +2 -2
  5. package/dist/math-json.min.esm.js +2 -2
  6. package/dist/math-json.min.js +2 -2
  7. package/dist/types/common/grapheme-splitter.d.ts +1 -1
  8. package/dist/types/common/signals.d.ts +1 -1
  9. package/dist/types/common/utils.d.ts +1 -1
  10. package/dist/types/compute-engine/assume.d.ts +1 -1
  11. package/dist/types/compute-engine/boxed-expression/abstract-boxed-expression.d.ts +3 -2
  12. package/dist/types/compute-engine/boxed-expression/box.d.ts +2 -2
  13. package/dist/types/compute-engine/boxed-expression/boxed-dictionary.d.ts +1 -1
  14. package/dist/types/compute-engine/boxed-expression/boxed-domain.d.ts +1 -1
  15. package/dist/types/compute-engine/boxed-expression/boxed-function-definition.d.ts +1 -1
  16. package/dist/types/compute-engine/boxed-expression/boxed-function.d.ts +1 -1
  17. package/dist/types/compute-engine/boxed-expression/boxed-number.d.ts +1 -1
  18. package/dist/types/compute-engine/boxed-expression/boxed-patterns.d.ts +1 -1
  19. package/dist/types/compute-engine/boxed-expression/boxed-string.d.ts +1 -1
  20. package/dist/types/compute-engine/boxed-expression/boxed-symbol-definition.d.ts +1 -1
  21. package/dist/types/compute-engine/boxed-expression/boxed-symbol.d.ts +1 -1
  22. package/dist/types/compute-engine/boxed-expression/expression-map.d.ts +1 -1
  23. package/dist/types/compute-engine/boxed-expression/order.d.ts +1 -1
  24. package/dist/types/compute-engine/boxed-expression/serialize.d.ts +1 -1
  25. package/dist/types/compute-engine/boxed-expression/utils.d.ts +8 -3
  26. package/dist/types/compute-engine/boxed-expression/validate.d.ts +4 -3
  27. package/dist/types/compute-engine/compute-engine.d.ts +15 -32
  28. package/dist/types/compute-engine/cost-function.d.ts +1 -1
  29. package/dist/types/compute-engine/domain-utils.d.ts +3 -3
  30. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-algebra.d.ts +1 -1
  31. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-arithmetic.d.ts +1 -1
  32. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-calculus.d.ts +1 -1
  33. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-core.d.ts +1 -1
  34. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-inequalities.d.ts +1 -1
  35. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-logic.d.ts +1 -1
  36. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-other.d.ts +1 -1
  37. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-sets.d.ts +1 -1
  38. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-symbols.d.ts +1 -1
  39. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-trigonometry.d.ts +1 -1
  40. package/dist/types/compute-engine/latex-syntax/dictionary/definitions.d.ts +1 -1
  41. package/dist/types/compute-engine/latex-syntax/latex-syntax.d.ts +1 -1
  42. package/dist/types/compute-engine/latex-syntax/parse.d.ts +1 -1
  43. package/dist/types/compute-engine/latex-syntax/public.d.ts +2 -2
  44. package/dist/types/compute-engine/latex-syntax/serialize-number.d.ts +1 -2
  45. package/dist/types/compute-engine/latex-syntax/serializer-style.d.ts +1 -1
  46. package/dist/types/compute-engine/latex-syntax/serializer.d.ts +1 -1
  47. package/dist/types/compute-engine/latex-syntax/tokenizer.d.ts +1 -1
  48. package/dist/types/compute-engine/library/arithmetic-add.d.ts +1 -1
  49. package/dist/types/compute-engine/library/arithmetic-divide.d.ts +1 -1
  50. package/dist/types/compute-engine/library/arithmetic-multiply.d.ts +1 -1
  51. package/dist/types/compute-engine/library/arithmetic-power.d.ts +2 -4
  52. package/dist/types/compute-engine/library/arithmetic.d.ts +2 -2
  53. package/dist/types/compute-engine/library/calculus.d.ts +2 -2
  54. package/dist/types/compute-engine/library/collections.d.ts +2 -2
  55. package/dist/types/compute-engine/library/core.d.ts +2 -2
  56. package/dist/types/compute-engine/library/domains.d.ts +1 -1
  57. package/dist/types/compute-engine/library/library.d.ts +5 -5
  58. package/dist/types/compute-engine/library/logic.d.ts +2 -2
  59. package/dist/types/compute-engine/library/polynomials.d.ts +2 -2
  60. package/dist/types/compute-engine/library/random-expression.d.ts +2 -0
  61. package/dist/types/compute-engine/library/relational-operator.d.ts +2 -2
  62. package/dist/types/compute-engine/library/sets.d.ts +2 -2
  63. package/dist/types/compute-engine/library/trigonometry.d.ts +2 -2
  64. package/dist/types/compute-engine/library/utils.d.ts +1 -1
  65. package/dist/types/compute-engine/numerics/numeric-bigint.d.ts +12 -0
  66. package/dist/types/compute-engine/numerics/numeric-bignum.d.ts +1 -9
  67. package/dist/types/compute-engine/numerics/numeric-complex.d.ts +1 -1
  68. package/dist/types/compute-engine/numerics/numeric.d.ts +1 -1
  69. package/dist/types/compute-engine/numerics/primes.d.ts +1 -1
  70. package/dist/types/compute-engine/numerics/rationals.d.ts +10 -12
  71. package/dist/types/compute-engine/public.d.ts +31 -47
  72. package/dist/types/compute-engine/rules.d.ts +1 -1
  73. package/dist/types/compute-engine/simplify-rules.d.ts +1 -1
  74. package/dist/types/compute-engine/solve.d.ts +1 -1
  75. package/dist/types/compute-engine/symbolic/expand.d.ts +1 -1
  76. package/dist/types/compute-engine/symbolic/flatten.d.ts +3 -2
  77. package/dist/types/compute-engine/symbolic/negate.d.ts +4 -6
  78. package/dist/types/compute-engine/symbolic/polynomials.d.ts +1 -1
  79. package/dist/types/compute-engine/symbolic/product.d.ts +1 -1
  80. package/dist/types/compute-engine/symbolic/sum.d.ts +3 -2
  81. package/dist/types/compute-engine/symbolic/utils.d.ts +1 -1
  82. package/dist/types/compute-engine.d.ts +2 -3
  83. package/dist/types/math-json/math-json-format.d.ts +1 -1
  84. package/dist/types/math-json/utils.d.ts +2 -1
  85. package/dist/types/math-json.d.ts +2 -3
  86. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- /** MathJSON 0.11.0 */
1
+ /** MathJSON 0.12.1 */
2
2
  function isSymbolObject(expr) {
3
3
  return expr !== null && typeof expr === 'object' && 'sym' in expr;
4
4
  }
@@ -182,6 +182,6 @@ function mapArgs(expr, fn) {
182
182
  }
183
183
 
184
184
  // This is the root of the `math-json` package (i.e. `math-json.js` and
185
- const version = '0.11.0';
185
+ const version = '0.12.1';
186
186
 
187
187
  export { applyRecursively, dictionary as getDictionary, stringValue as getStringValue, head, headName, isDictionaryObject, isFunctionObject, isStringObject, isSymbolObject, mapArgs, nops, op, symbol, version };
@@ -1,2 +1,2 @@
1
- /** MathJSON 0.11.0 */
2
- function n(n){return null!==n&&"object"==typeof n&&"sym"in n}function t(n){return null!==n&&"object"==typeof n&&"str"in n}function r(n){return null!==n&&"object"==typeof n&&"fn"in n}function u(n){return null!==n&&"object"==typeof n&&"dict"in n}function l(n){return null==n?null:"object"==typeof n&&"str"in n?n.str:"string"!=typeof n||n.length<2||"'"!==n[0]||"'"!==n[n.length-1]?null:n.substring(1,n.length-1)}function e(n){return null==n?null:Array.isArray(n)?n[0]:r(n)?n.fn[0]:null}function i(n){const t=e(n);return"string"==typeof t?t:""}function o(n){return null==n?null:Array.isArray(n)?n.slice(1):r(n)?n.fn.slice(1):null}function f(n,t){return null==n?null:Array.isArray(n)?n[t]??null:r(n)?n.fn[t]??null:null}function c(n){return f(n,2)}function s(n){return null==n?0:Array.isArray(n)?Math.max(0,n.length-1):r(n)?Math.max(0,n.fn.length-1):0}function y(t){if(null==t)return null;if("string"==typeof t){if(/^[+\-\.0-9]/.test(t))return null;if(t.length>=2&&"'"===t[0]&&"'"===t[t.length-1])return null}const r=n(t)?t.sym:t;return"string"!=typeof r?null:r}function a(n){const t=e(n);if("KeyValuePair"===t||"Tuple"===t||"Pair"===t){const t=l(function(n){return f(n,1)}(n));return t?[t,c(n)??"Nothing"]:null}return null}function g(n){if(null===n)return null;if("object"==typeof n&&"dict"in n)return n.dict;const t=a(n);if(t)return{[t[0]]:t[1]};if("Dictionary"===e(n)){const t={};for(let r=1;r<s(n);r++){const u=a(f(n,r));u&&(t[u[0]]=u[1])}return t}return null}function p(n,t){const r=e(n);if(null!==r)return[t(r),...(o(n)??[]).map(t)];const u=g(n);if(null!==u){const n=Object.keys(u),r={};for(const l of n)r[l]=t(u[l]);return{dict:r}}return t(n)}function h(n,t){let u=null;if(Array.isArray(n)&&(u=n),r(n)&&(u=n.fn),null===u)return[];let l=1;const e=[];for(;l<u.length;)e.push(t(u[l])),l+=1;return e}const A="0.11.0";export{p as applyRecursively,g as getDictionary,l as getStringValue,e as head,i as headName,u as isDictionaryObject,r as isFunctionObject,t as isStringObject,n as isSymbolObject,h as mapArgs,s as nops,f as op,y as symbol,A as version};
1
+ /** MathJSON 0.12.1 */
2
+ function n(n){return null!==n&&"object"==typeof n&&"sym"in n}function t(n){return null!==n&&"object"==typeof n&&"str"in n}function r(n){return null!==n&&"object"==typeof n&&"fn"in n}function u(n){return null!==n&&"object"==typeof n&&"dict"in n}function l(n){return null==n?null:"object"==typeof n&&"str"in n?n.str:"string"!=typeof n||n.length<2||"'"!==n[0]||"'"!==n[n.length-1]?null:n.substring(1,n.length-1)}function e(n){return null==n?null:Array.isArray(n)?n[0]:r(n)?n.fn[0]:null}function i(n){const t=e(n);return"string"==typeof t?t:""}function o(n){return null==n?null:Array.isArray(n)?n.slice(1):r(n)?n.fn.slice(1):null}function f(n,t){return null==n?null:Array.isArray(n)?n[t]??null:r(n)?n.fn[t]??null:null}function c(n){return f(n,2)}function s(n){return null==n?0:Array.isArray(n)?Math.max(0,n.length-1):r(n)?Math.max(0,n.fn.length-1):0}function y(t){if(null==t)return null;if("string"==typeof t){if(/^[+\-\.0-9]/.test(t))return null;if(t.length>=2&&"'"===t[0]&&"'"===t[t.length-1])return null}const r=n(t)?t.sym:t;return"string"!=typeof r?null:r}function a(n){const t=e(n);if("KeyValuePair"===t||"Tuple"===t||"Pair"===t){const t=l(function(n){return f(n,1)}(n));return t?[t,c(n)??"Nothing"]:null}return null}function g(n){if(null===n)return null;if("object"==typeof n&&"dict"in n)return n.dict;const t=a(n);if(t)return{[t[0]]:t[1]};if("Dictionary"===e(n)){const t={};for(let r=1;r<s(n);r++){const u=a(f(n,r));u&&(t[u[0]]=u[1])}return t}return null}function p(n,t){const r=e(n);if(null!==r)return[t(r),...(o(n)??[]).map(t)];const u=g(n);if(null!==u){const n=Object.keys(u),r={};for(const l of n)r[l]=t(u[l]);return{dict:r}}return t(n)}function h(n,t){let u=null;if(Array.isArray(n)&&(u=n),r(n)&&(u=n.fn),null===u)return[];let l=1;const e=[];for(;l<u.length;)e.push(t(u[l])),l+=1;return e}const A="0.12.1";export{p as applyRecursively,g as getDictionary,l as getStringValue,e as head,i as headName,u as isDictionaryObject,r as isFunctionObject,t as isStringObject,n as isSymbolObject,h as mapArgs,s as nops,f as op,y as symbol,A as version};
@@ -1,2 +1,2 @@
1
- /** MathJSON 0.11.0 */
2
- var global,factory;global=this,factory=function(n){function t(n){return null!==n&&"object"==typeof n&&"sym"in n}function r(n){return null!==n&&"object"==typeof n&&"fn"in n}function l(n){return null==n?null:"object"==typeof n&&"str"in n?n.str:"string"!=typeof n||n.length<2||"'"!==n[0]||"'"!==n[n.length-1]?null:n.substring(1,n.length-1)}function e(n){return null==n?null:Array.isArray(n)?n[0]:r(n)?n.fn[0]:null}function u(n){return null==n?null:Array.isArray(n)?n.slice(1):r(n)?n.fn.slice(1):null}function o(n,t){var l,e;return null==n?null:Array.isArray(n)?null!==(l=n[t])&&void 0!==l?l:null:r(n)&&null!==(e=n.fn[t])&&void 0!==e?e:null}function i(n){return o(n,2)}function f(n){return null==n?0:Array.isArray(n)?Math.max(0,n.length-1):r(n)?Math.max(0,n.fn.length-1):0}function c(n){var t;const r=e(n);if("KeyValuePair"===r||"Tuple"===r||"Pair"===r){const r=l(function(n){return o(n,1)}(n));return r?[r,null!==(t=i(n))&&void 0!==t?t:"Nothing"]:null}return null}function s(n){if(null===n)return null;if("object"==typeof n&&"dict"in n)return n.dict;const t=c(n);if(t)return{[t[0]]:t[1]};if("Dictionary"===e(n)){const t={};for(let r=1;r<f(n);r++){const l=c(o(n,r));l&&(t[l[0]]=l[1])}return t}return null}n.applyRecursively=function(n,t){var r;const l=e(n);if(null!==l)return[t(l),...(null!==(r=u(n))&&void 0!==r?r:[]).map(t)];const o=s(n);if(null!==o){const n=Object.keys(o),r={};for(const l of n)r[l]=t(o[l]);return{dict:r}}return t(n)},n.getDictionary=s,n.getStringValue=l,n.head=e,n.headName=function(n){const t=e(n);return"string"==typeof t?t:""},n.isDictionaryObject=function(n){return null!==n&&"object"==typeof n&&"dict"in n},n.isFunctionObject=r,n.isStringObject=function(n){return null!==n&&"object"==typeof n&&"str"in n},n.isSymbolObject=t,n.mapArgs=function(n,t){let l=null;if(Array.isArray(n)&&(l=n),r(n)&&(l=n.fn),null===l)return[];let e=1;const u=[];for(;e<l.length;)u.push(t(l[e])),e+=1;return u},n.nops=f,n.op=o,n.symbol=function(n){if(null==n)return null;if("string"==typeof n){if(/^[+\-\.0-9]/.test(n))return null;if(n.length>=2&&"'"===n[0]&&"'"===n[n.length-1])return null}const r=t(n)?n.sym:n;return"string"!=typeof r?null:r},n.version="0.11.0",Object.defineProperty(n,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?factory(exports):"function"==typeof define&&define.amd?define(["exports"],factory):factory((global="undefined"!=typeof globalThis?globalThis:global||self).MathJson={});
1
+ /** MathJSON 0.12.1 */
2
+ var global,factory;global=this,factory=function(n){function t(n){return null!==n&&"object"==typeof n&&"sym"in n}function r(n){return null!==n&&"object"==typeof n&&"fn"in n}function l(n){return null==n?null:"object"==typeof n&&"str"in n?n.str:"string"!=typeof n||n.length<2||"'"!==n[0]||"'"!==n[n.length-1]?null:n.substring(1,n.length-1)}function e(n){return null==n?null:Array.isArray(n)?n[0]:r(n)?n.fn[0]:null}function u(n){return null==n?null:Array.isArray(n)?n.slice(1):r(n)?n.fn.slice(1):null}function o(n,t){var l,e;return null==n?null:Array.isArray(n)?null!==(l=n[t])&&void 0!==l?l:null:r(n)&&null!==(e=n.fn[t])&&void 0!==e?e:null}function i(n){return o(n,2)}function f(n){return null==n?0:Array.isArray(n)?Math.max(0,n.length-1):r(n)?Math.max(0,n.fn.length-1):0}function c(n){var t;const r=e(n);if("KeyValuePair"===r||"Tuple"===r||"Pair"===r){const r=l(function(n){return o(n,1)}(n));return r?[r,null!==(t=i(n))&&void 0!==t?t:"Nothing"]:null}return null}function s(n){if(null===n)return null;if("object"==typeof n&&"dict"in n)return n.dict;const t=c(n);if(t)return{[t[0]]:t[1]};if("Dictionary"===e(n)){const t={};for(let r=1;r<f(n);r++){const l=c(o(n,r));l&&(t[l[0]]=l[1])}return t}return null}n.applyRecursively=function(n,t){var r;const l=e(n);if(null!==l)return[t(l),...(null!==(r=u(n))&&void 0!==r?r:[]).map(t)];const o=s(n);if(null!==o){const n=Object.keys(o),r={};for(const l of n)r[l]=t(o[l]);return{dict:r}}return t(n)},n.getDictionary=s,n.getStringValue=l,n.head=e,n.headName=function(n){const t=e(n);return"string"==typeof t?t:""},n.isDictionaryObject=function(n){return null!==n&&"object"==typeof n&&"dict"in n},n.isFunctionObject=r,n.isStringObject=function(n){return null!==n&&"object"==typeof n&&"str"in n},n.isSymbolObject=t,n.mapArgs=function(n,t){let l=null;if(Array.isArray(n)&&(l=n),r(n)&&(l=n.fn),null===l)return[];let e=1;const u=[];for(;e<l.length;)u.push(t(l[e])),e+=1;return u},n.nops=f,n.op=o,n.symbol=function(n){if(null==n)return null;if("string"==typeof n){if(/^[+\-\.0-9]/.test(n))return null;if(n.length>=2&&"'"===n[0]&&"'"===n[n.length-1])return null}const r=t(n)?n.sym:n;return"string"!=typeof r?null:r},n.version="0.12.1",Object.defineProperty(n,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?factory(exports):"function"==typeof define&&define.amd?define(["exports"],factory):factory((global="undefined"!=typeof globalThis?globalThis:global||self).MathJson={});
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  /**
3
3
  * Return a string or an array of graphemes.
4
4
  *
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export type SignalCode = RuntimeSignalCode | ('invalid-name' | 'expected-predicate' | 'expected-symbol' | 'operator-requires-one-operand' | 'postfix-operator-requires-one-operand' | 'prefix-operator-requires-one-operand' | 'unbalanced-symbols' | 'expected-argument' | 'unexpected-command' | 'cyclic-definition' | 'invalid-supersets' | 'expected-supersets' | 'unknown-domain' | 'duplicate-wikidata' | 'invalid-dictionary-entry' | 'syntax-error');
3
3
  export type SignalMessage = SignalCode | [SignalCode, ...any[]];
4
4
  export type SignalOrigin = {
@@ -1 +1 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  /**
3
3
  * Add an assumption, in the form of a predicate, for example:
4
4
  *
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { Complex } from 'complex.js';
3
3
  import { Expression } from '../../math-json/math-json-format';
4
4
  import { BoxedExpression, BoxedFunctionDefinition, BoxedRuleSet, BoxedSymbolDefinition, BoxedDomain, EvaluateOptions, IComputeEngine, LatexString, Metadata, NOptions, PatternMatchOptions, SemiBoxedExpression, SimplifyOptions, Substitution, RuntimeScope, DomainCompatibility, DomainLiteral, BoxedBaseDefinition, Rational, BoxedSubstitution } from '../public';
@@ -40,7 +40,8 @@ export declare abstract class AbstractBoxedExpression implements BoxedExpression
40
40
  get string(): string | null;
41
41
  getSubexpressions(head: string): BoxedExpression[];
42
42
  get subexpressions(): BoxedExpression[];
43
- get symbols(): BoxedExpression[];
43
+ get symbols(): string[];
44
+ get freeVars(): string[];
44
45
  get errors(): BoxedExpression[];
45
46
  get ops(): null | BoxedExpression[];
46
47
  get nops(): number;
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { Decimal } from 'decimal.js';
3
3
  import { IComputeEngine, SemiBoxedExpression, BoxedExpression, Metadata, Rational } from '../public';
4
4
  import { MathJsonNumber } from '../../math-json/math-json-format';
@@ -54,7 +54,7 @@ import { MathJsonNumber } from '../../math-json/math-json-format';
54
54
  * Note: `boxNumber()` should only be called from `ce.number()` in order to
55
55
  * benefit from number expression caching.
56
56
  */
57
- export declare function boxNumber(ce: IComputeEngine, num: MathJsonNumber | number | string | Complex | Decimal | Rational, options?: {
57
+ export declare function boxNumber(ce: IComputeEngine, num: MathJsonNumber | number | string | Complex | Decimal | Rational | [Decimal, Decimal], options?: {
58
58
  metadata?: Metadata;
59
59
  canonical?: boolean;
60
60
  }): BoxedExpression | null;
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { BoxedExpression, IComputeEngine, EvaluateOptions, NOptions, BoxedRuleSet, SemiBoxedExpression, SimplifyOptions, ReplaceOptions, Substitution, Metadata, PatternMatchOptions, BoxedDomain, BoxedSubstitution } from '../public';
3
3
  import { AbstractBoxedExpression } from './abstract-boxed-expression';
4
4
  /**
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { BoxedDomain, BoxedExpression, BoxedSubstitution, DomainCompatibility, DomainConstructor, DomainExpression, DomainLiteral, IComputeEngine, Metadata, PatternMatchOptions } from '../public';
3
3
  import { AbstractBoxedExpression } from './abstract-boxed-expression';
4
4
  /**
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare function makeFunctionDefinition(engine: IComputeEngine, name: string, def: FunctionDefinition | BoxedFunctionDefinition): BoxedFunctionDefinition;
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { Expression } from '../../math-json/math-json-format';
3
3
  import { BoxedExpression, BoxedFunctionDefinition, IComputeEngine, EvaluateOptions, NOptions, BoxedRuleSet, SemiBoxedExpression, SimplifyOptions, Substitution, ReplaceOptions, Metadata, PatternMatchOptions, BoxedDomain, RuntimeScope, BoxedSubstitution } from '../public';
4
4
  /**
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { Complex } from 'complex.js';
3
3
  import { Expression } from '../../math-json/math-json-format';
4
4
  import { BoxedExpression, BoxedDomain, IComputeEngine, Metadata, NOptions, PatternMatchOptions, Rational, SimplifyOptions, BoxedSubstitution } from '../public';
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { AbstractBoxedExpression } from './abstract-boxed-expression';
3
3
  import { BoxedExpression, BoxedSubstitution, BoxedDomain, IComputeEngine, LatexString, Metadata, Pattern, PatternMatchOptions, SemiBoxedExpression, Substitution } from '../public';
4
4
  export declare class BoxedPattern extends AbstractBoxedExpression implements Pattern {
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { AbstractBoxedExpression } from './abstract-boxed-expression';
3
3
  import { BoxedExpression, BoxedDomain, IComputeEngine, Metadata, PatternMatchOptions, BoxedSubstitution } from '../public';
4
4
  /**
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  /**
3
3
  * THEORY OF OPERATIONS
4
4
  *
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { AbstractBoxedExpression } from './abstract-boxed-expression';
3
3
  import { BoxedExpression, BoxedRuleSet, BoxedSymbolDefinition, IComputeEngine, EvaluateOptions, NOptions, ReplaceOptions, SimplifyOptions, Substitution, Metadata, PatternMatchOptions, BoxedDomain, RuntimeScope, BoxedFunctionDefinition, BoxedBaseDefinition, DomainExpression, BoxedSubstitution } from '../public';
4
4
  /**
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare class ExpressionMap<U> implements ExpressionMapInterface<U> {
3
3
  readonly _items: Map<BoxedExpression, U>;
4
4
  constructor(source?: ExpressionMapInterface<U> | readonly (readonly [BoxedExpression, U])[]);
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export type Order = 'lex' | 'dexlex' | 'grevlex' | 'elim';
3
3
  export declare const DEFAULT_COMPLEXITY = 100000;
4
4
  /**
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import Decimal from 'decimal.js';
3
3
  import { Expression } from '../../math-json/math-json-format';
4
4
  import { BoxedExpression, IComputeEngine, Metadata, Rational } from '../public';
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { Expression } from '../../math-json/math-json-format';
3
3
  import { BoxedExpression, IComputeEngine } from '../public';
4
4
  export declare function isLatexString(s: unknown): s is string;
@@ -15,9 +15,12 @@ export declare function getImaginaryCoef(expr: BoxedExpression): number | null;
15
15
  /**
16
16
  * Return the free symbols in the expression, recursively.
17
17
  * A variable, or free symbol, is a symbol that is not bound to a value.
18
+ * Note: do not use `isFree`: it has a side effect of creating a definition
19
+ * if one does not exist, and we want to avoid that. For example, `assume()`
20
+ * relies on `expr.freeVars` *not* creating a definition.
18
21
  */
19
- export declare function getVars(expr: BoxedExpression): string[];
20
- export declare function getSymbols(expr: BoxedExpression, set: Set<string>): Set<string>;
22
+ export declare function getFreeVars(expr: BoxedExpression, set: Set<string>): void;
23
+ export declare function getSymbols(expr: BoxedExpression, set: Set<string>): void;
21
24
  export declare function getSubexpressions(expr: BoxedExpression, head: string): BoxedExpression[];
22
25
  /**
23
26
  * For any numeric result, if `bignumPreferred()` is true, calculate using
@@ -52,3 +55,5 @@ export declare function getListLike(expr: BoxedExpression): BoxedExpression[];
52
55
  * truncate bignums to machine numbers
53
56
  */
54
57
  export declare function bignumValue(ce: IComputeEngine, expr: Expression | null | undefined): Decimal | null;
58
+ export declare function bigintValue(ce: IComputeEngine, expr: Expression | null | undefined): bigint | null;
59
+ export declare function asBigint(expr: BoxedExpression): bigint | null;
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare function validateArgumentCount(ce: IComputeEngine, ops: BoxedExpression[], count: number): BoxedExpression[];
3
3
  /**
4
4
  * Validation of arguments is normally done by checking the signature of the
@@ -9,10 +9,11 @@ export declare function validateArgumentCount(ce: IComputeEngine, ops: BoxedExpr
9
9
  * value), we do a simple numeric check of all arguments, and verify we have
10
10
  * the number of expected arguments.
11
11
  */
12
- export declare function validateNumericArgs(ce: IComputeEngine, ops: SemiBoxedExpression[], count?: number): BoxedExpression[];
12
+ export declare function validateNumericArgs(ce: IComputeEngine, ops: BoxedExpression[], count?: number): BoxedExpression[];
13
13
  /** Return `null` if the `ops` match the sig. Otherwise, return an array
14
14
  * of expressions indicating the mismatched arguments.
15
15
  *
16
16
  */
17
17
  export declare function validateSignature(sig: BoxedDomain, ops: BoxedExpression[], codomain?: BoxedExpression): BoxedExpression[] | null;
18
- export declare function validateArgument(ce: IComputeEngine, arg: BoxedExpression | undefined, expect: DomainExpression<BoxedExpression> | undefined): BoxedExpression;
18
+ export declare function validateArgument(ce: IComputeEngine, arg: BoxedExpression | undefined, dom: BoxedDomain | DomainLiteral | undefined): BoxedExpression;
19
+ export declare function validateArguments(ce: IComputeEngine, args: BoxedExpression[], doms: (BoxedDomain | DomainLiteral)[]): BoxedExpression[];
@@ -1,9 +1,8 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { Complex } from 'complex.js';
3
3
  import { Expression, MathJsonNumber } from '../math-json/math-json-format';
4
- import { SignalMessage, WarningSignal } from '../common/signals';
5
4
  import type { LibraryCategory, LatexDictionary, LatexDictionaryEntry, LatexString, NumberFormattingOptions, ParseLatexOptions, SerializeLatexOptions } from './latex-syntax/public';
6
- import { AssumeResult, BoxedExpression, BoxedFunctionDefinition, BoxedSymbolDefinition, IComputeEngine, IDTable, ExpressionMapInterface, NumericMode as NumericMode, Pattern, RuntimeScope, Scope, SemiBoxedExpression, SymbolDefinition, BoxedRuleSet, Rule, JsonSerializationOptions, ComputeEngineStats, Metadata, BoxedDomain, DomainExpression, FunctionDefinition, Rational, BoxedSubstitution } from './public';
5
+ import { AssumeResult, BoxedExpression, BoxedFunctionDefinition, BoxedSymbolDefinition, IComputeEngine, IdTable, ExpressionMapInterface, NumericMode, Pattern, RuntimeScope, Scope, SemiBoxedExpression, SymbolDefinition, BoxedRuleSet, Rule, JsonSerializationOptions, ComputeEngineStats, Metadata, BoxedDomain, DomainExpression, FunctionDefinition, Rational, BoxedSubstitution, Substitution } from './public';
7
6
  /**
8
7
  *
9
8
  * To use the CortexJS Compute Engine, create a `ComputeEngine` instance.
@@ -122,7 +121,7 @@ export declare class ComputeEngine implements IComputeEngine {
122
121
  * manipulate them.
123
122
  *
124
123
  */
125
- static getStandardLibrary(categories?: LibraryCategory[] | LibraryCategory | 'all'): Readonly<IDTable>[];
124
+ static getStandardLibrary(categories?: LibraryCategory[] | LibraryCategory | 'all'): Readonly<IdTable>[];
126
125
  /**
127
126
  * Construct a new `ComputeEngine` instance.
128
127
  *
@@ -153,7 +152,7 @@ export declare class ComputeEngine implements IComputeEngine {
153
152
  constructor(options?: {
154
153
  numericMode?: NumericMode;
155
154
  numericPrecision?: number;
156
- ids?: Readonly<IDTable>[];
155
+ ids?: Readonly<IdTable>[];
157
156
  latexDictionary?: readonly LatexDictionaryEntry[];
158
157
  tolerance?: number;
159
158
  defaultDomain?: string;
@@ -212,7 +211,7 @@ export declare class ComputeEngine implements IComputeEngine {
212
211
  get tolerance(): number;
213
212
  set tolerance(val: number);
214
213
  /** @internal */
215
- bignum(a: Decimal.Value): Decimal;
214
+ bignum(a: Decimal.Value | bigint): Decimal;
216
215
  /** @internal */
217
216
  complex(a: number | Complex, b?: number): Complex;
218
217
  /** Replace a number that is close to 0 with the exact integer 0.
@@ -255,16 +254,12 @@ export declare class ComputeEngine implements IComputeEngine {
255
254
  * etc... for this scope
256
255
  *
257
256
  */
258
- pushScope(ids?: Readonly<IDTable> | Readonly<IDTable>[], scope?: Partial<Scope>): void;
257
+ pushScope(ids?: Readonly<IdTable> | Readonly<IdTable>[], scope?: Partial<Scope>): void;
259
258
  /** Remove the topmost scope from the scope stack.
260
259
  */
261
260
  popScope(): void;
262
- set(identifiers: {
263
- [identifier: string]: SemiBoxedExpression | null;
264
- }): void;
265
- let(identifiers: {
266
- [identifier: string]: SymbolDefinition | FunctionDefinition;
267
- }): void;
261
+ set(identifiers: Substitution<SemiBoxedExpression | null | undefined>): void;
262
+ let(identifiers: IdTable): void;
268
263
  get assumptions(): ExpressionMapInterface<boolean>;
269
264
  /**
270
265
  * Return false if the execution should stop.
@@ -278,24 +273,12 @@ export declare class ComputeEngine implements IComputeEngine {
278
273
  shouldContinueExecution(): boolean;
279
274
  /** @internal */
280
275
  checkContinueExecution(): void;
281
- assert(condition: boolean, expr: BoxedExpression, msg: string, code?: SignalMessage): void;
282
- /**
283
- * Call this function if an unexpected condition occurs during execution of a
284
- * function in the engine.
285
- *
286
- * An `ErrorSignal` is a problem that cannot be recovered from.
287
- *
288
- * A `WarningSignal` indicates a minor problem that does not prevent the
289
- * execution to continue.
290
- *
291
- */
292
- signal(expr: BoxedExpression, msg: string, code?: SignalMessage): void;
293
- signal(sig: WarningSignal): void;
294
276
  /** @internal */
295
277
  cache<T>(cacheName: string, build: () => T, purge: (T: any) => T | undefined): T;
296
278
  box(expr: Decimal | Complex | [num: number, denom: number] | SemiBoxedExpression, options?: {
297
279
  canonical?: boolean;
298
280
  }): BoxedExpression;
281
+ canonical(xs: SemiBoxedExpression[]): BoxedExpression[];
299
282
  fn(head: string, ops: BoxedExpression[], metadata?: Metadata): BoxedExpression;
300
283
  /** @internal */
301
284
  _fn(head: string | BoxedExpression, ops: BoxedExpression[], metadata?: Metadata): BoxedExpression;
@@ -303,12 +286,12 @@ export declare class ComputeEngine implements IComputeEngine {
303
286
  error(message: string | [string, ...SemiBoxedExpression[]], where?: SemiBoxedExpression): BoxedExpression;
304
287
  hold(expr: SemiBoxedExpression): BoxedExpression;
305
288
  add(ops: BoxedExpression[], metadata?: Metadata): BoxedExpression;
306
- negate(expr: BoxedExpression, metadata?: Metadata): BoxedExpression;
289
+ neg(expr: BoxedExpression, metadata?: Metadata): BoxedExpression;
307
290
  mul(ops: BoxedExpression[], metadata?: Metadata): BoxedExpression;
308
- divide(num: BoxedExpression, denom: BoxedExpression, metadata?: Metadata): BoxedExpression;
291
+ div(num: BoxedExpression, denom: BoxedExpression, metadata?: Metadata): BoxedExpression;
309
292
  sqrt(base: BoxedExpression, metadata?: Metadata): BoxedExpression;
310
- power(base: BoxedExpression, exponent: number | Rational | BoxedExpression, metadata?: Metadata): BoxedExpression;
311
- inverse(expr: BoxedExpression, metadata?: Metadata): BoxedExpression;
293
+ pow(base: BoxedExpression, exponent: number | Rational | BoxedExpression, metadata?: Metadata): BoxedExpression;
294
+ inv(expr: BoxedExpression, metadata?: Metadata): BoxedExpression;
312
295
  pair(first: BoxedExpression, second: BoxedExpression, metadata?: Metadata): BoxedExpression;
313
296
  tuple(elements: BoxedExpression[], metadata?: Metadata): BoxedExpression;
314
297
  string(s: string, metadata?: Metadata): BoxedExpression;
@@ -317,7 +300,7 @@ export declare class ComputeEngine implements IComputeEngine {
317
300
  canonical?: boolean;
318
301
  }): BoxedExpression;
319
302
  domain(domain: BoxedExpression | DomainExpression | BoxedDomain, metadata?: Metadata): BoxedDomain;
320
- number(value: number | string | MathJsonNumber | Decimal | Complex | Rational, options?: {
303
+ number(value: number | bigint | string | MathJsonNumber | Decimal | Complex | Rational, options?: {
321
304
  canonical?: boolean;
322
305
  metadata?: Metadata;
323
306
  }): BoxedExpression;
@@ -349,7 +332,7 @@ export declare class ComputeEngine implements IComputeEngine {
349
332
  */
350
333
  ask(pattern: LatexString | SemiBoxedExpression): BoxedSubstitution[];
351
334
  infer(symbol: BoxedExpression | string, _domain: BoxedDomain | DomainExpression): AssumeResult;
352
- assume(symbol: LatexString | SemiBoxedExpression, domainValue: BoxedDomain | DomainExpression | Expression | BoxedExpression): AssumeResult;
335
+ assume(symbol: LatexString | SemiBoxedExpression, domainValue: BoxedDomain | Expression | BoxedExpression): AssumeResult;
353
336
  assume(predicate: LatexString | SemiBoxedExpression): AssumeResult;
354
337
  forget(symbol: undefined | string | string[]): void;
355
338
  }
@@ -1,3 +1,3 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare function costFunction(expr: BoxedExpression): number;
3
3
  export declare const DEFAULT_COST_FUNCTION: typeof costFunction;
@@ -1,11 +1,11 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { Decimal } from 'decimal.js';
3
- import { BoxedExpression } from './public';
3
+ import { BoxedExpression, Rational } from './public';
4
4
  /** Quickly determine the numeric domain of a number or constant
5
5
  * For the symbols, this is a hard-coded optimization that doesn't rely on the
6
6
  * dictionaries. The regular path is in `internalDomain()`
7
7
  */
8
- export declare function inferNumericDomain(value: number | Decimal | Complex | [numer: number, denom: number] | [numer: Decimal, denom: Decimal]): string;
8
+ export declare function inferNumericDomain(value: number | Decimal | Complex | Rational): string;
9
9
  /**
10
10
  * Simple description of a numeric domain as a base domain, a min and
11
11
  * max value, possibly open ends, and some excluded values.
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare const DEFINITIONS_ALGEBRA: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare const DEFINITIONS_ARITHMETIC: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare const DEFINITIONS_CALCULUS: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare const DEFINITIONS_CORE: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare const DEFINITIONS_INEQUALITIES: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare const DEFINITIONS_LOGIC: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare const DEFINITIONS_OTHERS: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare const DEFINITIONS_SETS: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare const DEFINITIONS_SYMBOLS: LatexDictionary;
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare const DEFINITIONS_TRIGONOMETRY: LatexDictionary;
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { WarningSignal } from '../../../common/signals';
3
3
  export type CommonEntry = {
4
4
  name?: string;
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { Serializer } from './serializer';
3
3
  import { Expression } from '../../math-json/math-json-format';
4
4
  import { WarningSignalHandler } from '../../common/signals';
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { IndexedLatexDictionary, InfixEntry, PostfixEntry, PrefixEntry, SymbolEntry } from './dictionary/definitions';
3
3
  import { IComputeEngine } from '../public';
4
4
  import { Expression } from '../../math-json/math-json-format';
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { Expression } from '../../math-json/math-json-format';
3
3
  import type { IComputeEngine } from '../public';
4
4
  /**
@@ -365,7 +365,7 @@ export type NumberFormattingOptions = {
365
365
  beginRepeatingDigits: LatexString;
366
366
  endRepeatingDigits: LatexString;
367
367
  imaginaryUnit: LatexString;
368
- avoidExponentsInRange: [negativeExponent: number, positiveExponent: number];
368
+ avoidExponentsInRange: undefined | null | [negativeExponent: number, positiveExponent: number];
369
369
  };
370
370
  /**
371
371
  * To customize the parsing and serializing of LaTeX syntax, create a `LatexSyntax`
@@ -1,7 +1,6 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { NumberFormattingOptions } from './public';
3
3
  export declare function serializeNumber(expr: Expression | null, options: NumberFormattingOptions): string;
4
- export declare function serializeEngineeringNotationNumber(value: number, options: NumberFormattingOptions): string;
5
4
  /**
6
5
  * `value` is a base-10 number, possibly a floating point number with an
7
6
  * exponent, i.e. "0.31415e1"
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare function getApplyFunctionStyle(_expr: Expression, _level: number): 'paren' | 'leftright' | 'big' | 'none';
3
3
  export declare function getGroupStyle(_expr: Expression, _level: number): 'paren' | 'leftright' | 'big' | 'none';
4
4
  export declare function getRootStyle(_expr: Expression | null, level: number): 'radical' | 'quotient' | 'solidus';
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  import { WarningSignalHandler } from '../../common/signals';
3
3
  import { NumberFormattingOptions, LatexString, SerializeLatexOptions, FunctionEntry } from './public';
4
4
  import { IndexedLatexDictionary, SymbolEntry } from './dictionary/definitions';
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  * ## Reference
3
3
  * TeX source code:
4
4
  * {@link http://tug.org/texlive/devsrc/Build/source/texk/web2c/tex.web | Tex.web}
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  /** The canonical form of `Add`:
3
3
  * - removes `0`
4
4
  * - capture complex numbers (a + ib or ai +b)
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  /**
3
3
  * Canonical form of 'Divide' (and 'Rational')
4
4
  * - remove denominator of 1
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  /** The canonical form of `Multiply`:
3
3
  * - remove `1`
4
4
  * - combine literal integers and rationals
@@ -1,10 +1,8 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  /**
3
3
  *
4
- * Return `null` if there is no canonicalization necessary and the result is
5
- * simply `ce._fn('Power', [base, exponent])`
6
4
  */
7
- export declare function canonicalPower(ce: IComputeEngine, base: BoxedExpression | undefined, exponent: BoxedExpression | undefined, metadata?: Metadata): BoxedExpression | null;
5
+ export declare function canonicalPower(ce: IComputeEngine, base: BoxedExpression, exponent: BoxedExpression, metadata?: Metadata): BoxedExpression;
8
6
  export declare function square(ce: IComputeEngine, base: BoxedExpression): BoxedExpression;
9
7
  export declare function processPower(ce: IComputeEngine, base: BoxedExpression, exponent: BoxedExpression, mode: 'simplify' | 'evaluate' | 'N'): BoxedExpression | undefined;
10
8
  export declare function processSqrt(ce: IComputeEngine, base: BoxedExpression, mode: 'simplify' | 'evaluate' | 'N'): BoxedExpression | undefined;
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
2
- export declare const ARITHMETIC_LIBRARY: IDTable[];
1
+ /* 0.12.1 */
2
+ export declare const ARITHMETIC_LIBRARY: IdTable[];
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
2
- export declare const CALCULUS_LIBRARY: IDTable[];
1
+ /* 0.12.1 */
2
+ export declare const CALCULUS_LIBRARY: IdTable[];
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
2
- export declare const COLLECTIONS_LIBRARY: IDTable;
1
+ /* 0.12.1 */
2
+ export declare const COLLECTIONS_LIBRARY: IdTable;
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
2
- export declare const CORE_LIBRARY: IDTable[];
1
+ /* 0.12.1 */
2
+ export declare const CORE_LIBRARY: IdTable[];
@@ -1,4 +1,4 @@
1
- /* 0.11.0 */
1
+ /* 0.12.1 */
2
2
  export declare const DOMAIN_CONSTRUCTORS: string[];
3
3
  export declare const DOMAIN_ALIAS: {
4
4
  NumericFunction: (string | string[])[];
@@ -1,8 +1,8 @@
1
- /* 0.11.0 */
2
- import { IComputeEngine, IDTable } from '../public';
3
- export declare function getStandardLibrary(categories: LibraryCategory[] | LibraryCategory | 'all'): Readonly<IDTable>[];
1
+ /* 0.12.1 */
2
+ import { IComputeEngine, IdTable } from '../public';
3
+ export declare function getStandardLibrary(categories: LibraryCategory[] | LibraryCategory | 'all'): Readonly<IdTable>[];
4
4
  export declare const LIBRARIES: {
5
- [category in LibraryCategory]?: Readonly<IDTable> | Readonly<IDTable>[];
5
+ [category in LibraryCategory]?: Readonly<IdTable> | Readonly<IdTable>[];
6
6
  };
7
7
  /**
8
8
  * Set the symbol table of the current context (`engine.context`) to `table`
@@ -14,4 +14,4 @@ export declare const LIBRARIES: {
14
14
  * or function name that has not yet been added to the symbol table.
15
15
  *
16
16
  */
17
- export declare function setCurrentContextSymbolTable(engine: IComputeEngine, table: IDTable): void;
17
+ export declare function setCurrentContextSymbolTable(engine: IComputeEngine, table: IdTable): void;
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
2
- export declare const LOGIC_LIBRARY: IDTable;
1
+ /* 0.12.1 */
2
+ export declare const LOGIC_LIBRARY: IdTable;
@@ -1,2 +1,2 @@
1
- /* 0.11.0 */
2
- export declare const POLYNOMIALS_LIBRARY: IDTable[];
1
+ /* 0.12.1 */
2
+ export declare const POLYNOMIALS_LIBRARY: IdTable[];