@cortex-js/compute-engine 0.10.0 → 0.11.0

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 (84) hide show
  1. package/dist/compute-engine.esm.js +2672 -3024
  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 +9 -9
  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 +1 -1
  12. package/dist/types/compute-engine/boxed-expression/box.d.ts +1 -1
  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 +2 -2
  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 +32 -38
  21. package/dist/types/compute-engine/boxed-expression/boxed-symbol.d.ts +3 -2
  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 +2 -2
  24. package/dist/types/compute-engine/boxed-expression/serialize.d.ts +1 -1
  25. package/dist/types/compute-engine/boxed-expression/utils.d.ts +1 -1
  26. package/dist/types/compute-engine/boxed-expression/validate.d.ts +1 -1
  27. package/dist/types/compute-engine/compute-engine.d.ts +16 -19
  28. package/dist/types/compute-engine/cost-function.d.ts +1 -1
  29. package/dist/types/compute-engine/domain-utils.d.ts +2 -2
  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 +11 -11
  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 +30 -30
  44. package/dist/types/compute-engine/latex-syntax/serialize-number.d.ts +1 -1
  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 +2 -2
  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 +1 -1
  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/relational-operator.d.ts +2 -2
  61. package/dist/types/compute-engine/library/sets.d.ts +2 -2
  62. package/dist/types/compute-engine/library/trigonometry.d.ts +2 -2
  63. package/dist/types/compute-engine/library/utils.d.ts +3 -0
  64. package/dist/types/compute-engine/numerics/numeric-bignum.d.ts +1 -1
  65. package/dist/types/compute-engine/numerics/numeric-complex.d.ts +1 -1
  66. package/dist/types/compute-engine/numerics/numeric.d.ts +1 -1
  67. package/dist/types/compute-engine/numerics/primes.d.ts +1 -1
  68. package/dist/types/compute-engine/numerics/rationals.d.ts +1 -1
  69. package/dist/types/compute-engine/public.d.ts +90 -79
  70. package/dist/types/compute-engine/rules.d.ts +1 -1
  71. package/dist/types/compute-engine/simplify-rules.d.ts +1 -1
  72. package/dist/types/compute-engine/solve.d.ts +1 -1
  73. package/dist/types/compute-engine/symbolic/expand.d.ts +1 -1
  74. package/dist/types/compute-engine/symbolic/flatten.d.ts +1 -1
  75. package/dist/types/compute-engine/symbolic/negate.d.ts +1 -1
  76. package/dist/types/compute-engine/symbolic/polynomials.d.ts +3 -3
  77. package/dist/types/compute-engine/symbolic/product.d.ts +1 -1
  78. package/dist/types/compute-engine/symbolic/sum.d.ts +1 -1
  79. package/dist/types/compute-engine/symbolic/utils.d.ts +1 -1
  80. package/dist/types/compute-engine.d.ts +2 -2
  81. package/dist/types/math-json/math-json-format.d.ts +7 -7
  82. package/dist/types/math-json/utils.d.ts +1 -1
  83. package/dist/types/math-json.d.ts +2 -2
  84. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- /* 0.10.0 */
1
+ /* 0.11.0 */
2
2
  import { Expression } from '../../math-json/math-json-format';
3
3
  import type { IComputeEngine } from '../public';
4
4
  /**
@@ -8,24 +8,24 @@ import type { IComputeEngine } from '../public';
8
8
  * `\` for LaTeX commands, or a LaTeX character which includes digits,
9
9
  * letters and punctuation.
10
10
  */
11
- export declare type LatexToken = string | '<{>' | '<}>' | '<space>' | '<$>' | '<$$>';
11
+ export type LatexToken = string | '<{>' | '<}>' | '<space>' | '<$>' | '<$$>';
12
12
  /** A LatexString is a regular string of LaTeX, for example:
13
13
  * `\frac{\pi}{2}`
14
14
  */
15
- export declare type LatexString = string;
15
+ export type LatexString = string;
16
16
  /**
17
17
  * Open and close delimiters that can be used with {@link MatchfixEntry}
18
18
  * record to define new LaTeX dictionary entries.
19
19
  */
20
- export declare type Delimiter = ')' | '(' | ']' | '[' | '{' /** \lbrace */ | '}' /** \rbrace */ | '<' /** \langle */ | '>' /** \rangle */ | '|' | '||' | '\\lceil' | '\\rceil' | '\\lfloor' | '\\rfloor';
21
- export declare type LibraryCategory = 'algebra' | 'arithmetic' | 'calculus' | 'collections' | 'control-structures' | 'combinatorics' | 'core' | 'dimensions' | 'domains' | 'linear-algebra' | 'logic' | 'numeric' | 'other' | 'physics' | 'polynomials' | 'relop' | 'sets' | 'statistics' | 'styling' | 'symbols' | 'trigonometry' | 'units';
20
+ export type Delimiter = ')' | '(' | ']' | '[' | '{' /** \lbrace */ | '}' /** \rbrace */ | '<' /** \langle */ | '>' /** \rangle */ | '|' | '||' | '\\lceil' | '\\rceil' | '\\lfloor' | '\\rfloor';
21
+ export type LibraryCategory = 'algebra' | 'arithmetic' | 'calculus' | 'collections' | 'control-structures' | 'combinatorics' | 'core' | 'data-structures' | 'dimensions' | 'domains' | 'linear-algebra' | 'logic' | 'numeric' | 'other' | 'physics' | 'polynomials' | 'relop' | 'sets' | 'statistics' | 'styling' | 'symbols' | 'trigonometry' | 'units';
22
22
  /**
23
23
  * This indicates a condition under which parsing should stop:
24
24
  * - an operator of a precedence higher than specified has been encountered
25
25
  * - the last token has been reached
26
26
  * - or if a function is provided, the function returns true;
27
27
  */
28
- export declare type Terminator = {
28
+ export type Terminator = {
29
29
  minPrec: number;
30
30
  condition?: (parser: Parser) => boolean;
31
31
  };
@@ -50,20 +50,20 @@ export declare type Terminator = {
50
50
  * otherwise.
51
51
  *
52
52
  */
53
- export declare type EnvironmentParseHandler = (parser: Parser, reqArgs: Expression[], optArgs: Expression[]) => Expression | null;
54
- export declare type SymbolParseHandler = (parser: Parser) => Expression | null;
55
- export declare type FunctionParseHandler = (parser: Parser) => Expression | null;
56
- export declare type PostfixParseHandler = (parser: Parser, lhs: Expression) => Expression | null;
57
- export declare type PrefixParseHandler = (parser: Parser, until: Terminator) => Expression | null;
58
- export declare type InfixParseHandler = (parser: Parser, until: Terminator, lhs: Expression) => Expression | null;
59
- export declare type MatchfixParseHandler = (parser: Parser, body: Expression) => Expression | null;
60
- export declare type ParseHandler = SymbolParseHandler | FunctionParseHandler | EnvironmentParseHandler | PostfixParseHandler | PrefixParseHandler | InfixParseHandler | MatchfixParseHandler;
61
- export declare type LatexArgumentType = '{expression}' /** A required math mode expression */ | '[expression]' /** An optional math mode expression */ | '{text}' /** A required expression in text mode */ | '[text]' /** An optional expression in text mode */ | '{unit}' /** A required unit expression, e.g. `3em` */ | '[unit]' /** An optional unit expression, e.g. `3em` */ | '{glue}' /** A required glue expression, e.g. `25 mu plus 3em ` */ | '[glue]' /** An optional glue expression, e.g. `25 mu plus 3em ` */ | '{string}' /** A required text string, terminated by a non-literal token */ | '[string]' /** An optional text string, terminated by a non-literal token */ | '{color}' /** A required color expression, e.g. `red` or `#00ff00` */ | '[color]'; /** An optional color expression, e.g. `red` or `#00ff00` */
53
+ export type EnvironmentParseHandler = (parser: Parser, reqArgs: Expression[], optArgs: Expression[]) => Expression | null;
54
+ export type SymbolParseHandler = (parser: Parser) => Expression | null;
55
+ export type FunctionParseHandler = (parser: Parser) => Expression | null;
56
+ export type PostfixParseHandler = (parser: Parser, lhs: Expression) => Expression | null;
57
+ export type PrefixParseHandler = (parser: Parser, until: Terminator) => Expression | null;
58
+ export type InfixParseHandler = (parser: Parser, until: Terminator, lhs: Expression) => Expression | null;
59
+ export type MatchfixParseHandler = (parser: Parser, body: Expression) => Expression | null;
60
+ export type ParseHandler = SymbolParseHandler | FunctionParseHandler | EnvironmentParseHandler | PostfixParseHandler | PrefixParseHandler | InfixParseHandler | MatchfixParseHandler;
61
+ export type LatexArgumentType = '{expression}' /** A required math mode expression */ | '[expression]' /** An optional math mode expression */ | '{text}' /** A required expression in text mode */ | '[text]' /** An optional expression in text mode */ | '{unit}' /** A required unit expression, e.g. `3em` */ | '[unit]' /** An optional unit expression, e.g. `3em` */ | '{glue}' /** A required glue expression, e.g. `25 mu plus 3em ` */ | '[glue]' /** An optional glue expression, e.g. `25 mu plus 3em ` */ | '{string}' /** A required text string, terminated by a non-literal token */ | '[string]' /** An optional text string, terminated by a non-literal token */ | '{color}' /** A required color expression, e.g. `red` or `#00ff00` */ | '[color]'; /** An optional color expression, e.g. `red` or `#00ff00` */
62
62
  /**
63
63
  * Maps a string of LaTeX tokens to a function or symbol and vice-versa.
64
64
  *
65
65
  */
66
- export declare type BaseEntry = {
66
+ export type BaseEntry = {
67
67
  /**
68
68
  * Map a MathJSON function or symbol name to this entry.
69
69
  *
@@ -94,7 +94,7 @@ export declare type BaseEntry = {
94
94
  */
95
95
  serialize?: LatexString | SerializeHandler;
96
96
  };
97
- export declare type MatchfixEntry = BaseEntry & {
97
+ export type MatchfixEntry = BaseEntry & {
98
98
  kind: 'matchfix';
99
99
  /**
100
100
  * If `kind` is `'matchfix'`: the `closeDelimiter` and `openDelimiter`
@@ -108,7 +108,7 @@ export declare type MatchfixEntry = BaseEntry & {
108
108
  */
109
109
  parse: MatchfixParseHandler;
110
110
  };
111
- export declare type InfixEntry = BaseEntry & {
111
+ export type InfixEntry = BaseEntry & {
112
112
  /**
113
113
  * Infix position, with an operand before and an operand after: `a ⊛ b`.
114
114
  *
@@ -131,7 +131,7 @@ export declare type InfixEntry = BaseEntry & {
131
131
  */
132
132
  parse: string | InfixParseHandler;
133
133
  };
134
- export declare type PostfixEntry = BaseEntry & {
134
+ export type PostfixEntry = BaseEntry & {
135
135
  /**
136
136
  * Postfix position, with an operand before: `a ⊛`
137
137
  *
@@ -141,7 +141,7 @@ export declare type PostfixEntry = BaseEntry & {
141
141
  precedence?: number;
142
142
  parse: PostfixParseHandler;
143
143
  };
144
- export declare type PrefixEntry = BaseEntry & {
144
+ export type PrefixEntry = BaseEntry & {
145
145
  /**
146
146
  * Prefix position, with an operand after: `⊛ a`
147
147
  *
@@ -155,17 +155,17 @@ export declare type PrefixEntry = BaseEntry & {
155
155
  * A LaTeX dictionary entry for an environment, that is a LaTeX
156
156
  * construct using `\begin{...}...\end{...}`.
157
157
  */
158
- export declare type EnvironmentEntry = BaseEntry & {
158
+ export type EnvironmentEntry = BaseEntry & {
159
159
  kind: 'environment';
160
160
  parse: EnvironmentParseHandler;
161
161
  };
162
- export declare type SymbolEntry = BaseEntry & {
162
+ export type SymbolEntry = BaseEntry & {
163
163
  kind: 'symbol';
164
164
  /** Used for appropriate wrapping (i.e. when to surround it with parens) */
165
165
  precedence?: number;
166
166
  parse: Expression | SymbolParseHandler;
167
167
  };
168
- export declare type FunctionEntry = BaseEntry & {
168
+ export type FunctionEntry = BaseEntry & {
169
169
  kind: 'function';
170
170
  /**
171
171
  * Indicate if this symbol can be followed by arguments.
@@ -197,11 +197,11 @@ export declare type FunctionEntry = BaseEntry & {
197
197
  /**
198
198
  * A simple LaTeX dictionary entry, for example for a command like `\pi`.
199
199
  */
200
- export declare type DefaultEntry = BaseEntry & {
200
+ export type DefaultEntry = BaseEntry & {
201
201
  precedence?: number;
202
202
  parse?: Expression | SymbolParseHandler;
203
203
  };
204
- export declare type LatexDictionaryEntry = DefaultEntry | MatchfixEntry | InfixEntry | PostfixEntry | PrefixEntry | SymbolEntry | FunctionEntry | EnvironmentEntry;
204
+ export type LatexDictionaryEntry = DefaultEntry | MatchfixEntry | InfixEntry | PostfixEntry | PrefixEntry | SymbolEntry | FunctionEntry | EnvironmentEntry;
205
205
  /** @internal */
206
206
  export declare function isSymbolEntry(entry: LatexDictionaryEntry): entry is SymbolEntry;
207
207
  /** @internal */
@@ -216,8 +216,8 @@ export declare function isPrefixEntry(entry: LatexDictionaryEntry): entry is Pre
216
216
  export declare function isPostfixEntry(entry: LatexDictionaryEntry): entry is PostfixEntry;
217
217
  /** @internal */
218
218
  export declare function isEnvironmentEntry(entry: LatexDictionaryEntry): entry is EnvironmentEntry;
219
- export declare type LatexDictionary = LatexDictionaryEntry[];
220
- export declare type ParseLatexOptions = {
219
+ export type LatexDictionary = LatexDictionaryEntry[];
220
+ export type ParseLatexOptions = {
221
221
  /**
222
222
  * This function is invoked when a number is followed by a symbol,
223
223
  * an open delimiter or a function.
@@ -291,7 +291,7 @@ export declare type ParseLatexOptions = {
291
291
  */
292
292
  preserveLatex: boolean;
293
293
  };
294
- export declare type SerializeLatexOptions = {
294
+ export type SerializeLatexOptions = {
295
295
  /**
296
296
  * LaTeX string used to render an invisible multiply, e.g. in '2x'.
297
297
  * Leave it empty to join the adjacent terms, or use `\cdot` to insert
@@ -328,7 +328,7 @@ export declare type SerializeLatexOptions = {
328
328
  powerStyle: (expr: Expression, level: number) => 'root' | 'solidus' | 'quotient';
329
329
  numericSetStyle: (expr: Expression, level: number) => 'compact' | 'regular' | 'interval' | 'set-builder';
330
330
  };
331
- export declare type NumberFormattingOptions = {
331
+ export type NumberFormattingOptions = {
332
332
  precision: number;
333
333
  positiveInfinity: LatexString;
334
334
  negativeInfinity: LatexString;
@@ -444,7 +444,7 @@ export interface Serializer {
444
444
  powerStyle: (expr: Expression, level: number) => 'root' | 'solidus' | 'quotient';
445
445
  numericSetStyle: (expr: Expression, level: number) => 'compact' | 'regular' | 'interval' | 'set-builder';
446
446
  }
447
- export declare type SerializeHandler = (serializer: Serializer, expr: Expression) => string;
447
+ export type SerializeHandler = (serializer: Serializer, expr: Expression) => string;
448
448
  export interface Parser {
449
449
  readonly options: Required<ParseLatexOptions>;
450
450
  readonly computeEngine?: IComputeEngine;
@@ -1,4 +1,4 @@
1
- /* 0.10.0 */
1
+ /* 0.11.0 */
2
2
  import { NumberFormattingOptions } from './public';
3
3
  export declare function serializeNumber(expr: Expression | null, options: NumberFormattingOptions): string;
4
4
  export declare function serializeEngineeringNotationNumber(value: number, options: NumberFormattingOptions): string;
@@ -1,4 +1,4 @@
1
- /* 0.10.0 */
1
+ /* 0.11.0 */
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.10.0 */
1
+ /* 0.11.0 */
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,10 +1,10 @@
1
- /* 0.10.0 */
1
+ /* 0.11.0 */
2
2
  * ## Reference
3
3
  * TeX source code:
4
4
  * {@link http://tug.org/texlive/devsrc/Build/source/texk/web2c/tex.web | Tex.web}
5
5
  *
6
6
  */
7
- export declare type Token = string;
7
+ export type Token = string;
8
8
  /**
9
9
  * Create Tokens from a stream of LaTeX
10
10
  *
@@ -1,4 +1,4 @@
1
- /* 0.10.0 */
1
+ /* 0.11.0 */
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.10.0 */
1
+ /* 0.11.0 */
2
2
  /**
3
3
  * Canonical form of 'Divide' (and 'Rational')
4
4
  * - remove denominator of 1
@@ -1,4 +1,4 @@
1
- /* 0.10.0 */
1
+ /* 0.11.0 */
2
2
  /** The canonical form of `Multiply`:
3
3
  * - remove `1`
4
4
  * - combine literal integers and rationals
@@ -1,4 +1,4 @@
1
- /* 0.10.0 */
1
+ /* 0.11.0 */
2
2
  /**
3
3
  *
4
4
  * Return `null` if there is no canonicalization necessary and the result is
@@ -1,2 +1,2 @@
1
- /* 0.10.0 */
2
- export declare const ARITHMETIC_LIBRARY: SymbolTable[];
1
+ /* 0.11.0 */
2
+ export declare const ARITHMETIC_LIBRARY: IDTable[];
@@ -1,2 +1,2 @@
1
- /* 0.10.0 */
2
- export declare const CALCULUS_LIBRARY: SymbolTable[];
1
+ /* 0.11.0 */
2
+ export declare const CALCULUS_LIBRARY: IDTable[];
@@ -1,2 +1,2 @@
1
- /* 0.10.0 */
2
- export declare const COLLECTIONS_LIBRARY: SymbolTable;
1
+ /* 0.11.0 */
2
+ export declare const COLLECTIONS_LIBRARY: IDTable;
@@ -1,2 +1,2 @@
1
- /* 0.10.0 */
2
- export declare const CORE_LIBRARY: SymbolTable[];
1
+ /* 0.11.0 */
2
+ export declare const CORE_LIBRARY: IDTable[];
@@ -1,4 +1,4 @@
1
- /* 0.10.0 */
1
+ /* 0.11.0 */
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.10.0 */
2
- import { IComputeEngine, SymbolTable } from '../public';
3
- export declare function getStandardLibrary(categories: LibraryCategory[] | LibraryCategory | 'all'): Readonly<SymbolTable>[];
1
+ /* 0.11.0 */
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<SymbolTable> | Readonly<SymbolTable>[];
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: SymbolTable): void;
17
+ export declare function setCurrentContextSymbolTable(engine: IComputeEngine, table: IDTable): void;
@@ -1,2 +1,2 @@
1
- /* 0.10.0 */
2
- export declare const LOGIC_LIBRARY: SymbolTable;
1
+ /* 0.11.0 */
2
+ export declare const LOGIC_LIBRARY: IDTable;
@@ -1,2 +1,2 @@
1
- /* 0.10.0 */
2
- export declare const POLYNOMIALS_LIBRARY: SymbolTable[];
1
+ /* 0.11.0 */
2
+ export declare const POLYNOMIALS_LIBRARY: IDTable[];
@@ -1,2 +1,2 @@
1
- /* 0.10.0 */
2
- export declare const RELOP_LIBRARY: SymbolTable;
1
+ /* 0.11.0 */
2
+ export declare const RELOP_LIBRARY: IDTable;
@@ -1,2 +1,2 @@
1
- /* 0.10.0 */
2
- export declare const SETS_LIBRARY: SymbolTable;
1
+ /* 0.11.0 */
2
+ export declare const SETS_LIBRARY: IDTable;
@@ -1,2 +1,2 @@
1
- /* 0.10.0 */
2
- export declare const TRIGONOMETRY_LIBRARY: SymbolTable[];
1
+ /* 0.11.0 */
2
+ export declare const TRIGONOMETRY_LIBRARY: IDTable[];
@@ -0,0 +1,3 @@
1
+ /* 0.11.0 */
2
+ export declare function isSymbolDefinition(def: BoxedSymbolDefinition | BoxedFunctionDefinition | SymbolDefinition | FunctionDefinition | undefined | null): def is BoxedSymbolDefinition;
3
+ export declare function isFunctionDefinition(def: BoxedSymbolDefinition | BoxedFunctionDefinition | SymbolDefinition | FunctionDefinition | undefined | null): def is BoxedFunctionDefinition;
@@ -1,4 +1,4 @@
1
- /* 0.10.0 */
1
+ /* 0.11.0 */
2
2
  import { IComputeEngine } from '../public';
3
3
  export declare function gcd(a: Decimal, b: Decimal): Decimal;
4
4
  export declare function lcm(a: Decimal, b: Decimal): Decimal;
@@ -1,3 +1,3 @@
1
- /* 0.10.0 */
1
+ /* 0.11.0 */
2
2
  export declare function gamma(c: Complex): Complex;
3
3
  export declare function lngamma(c: Complex): Complex;
@@ -1,4 +1,4 @@
1
- /* 0.10.0 */
1
+ /* 0.11.0 */
2
2
  import Decimal from 'decimal.js';
3
3
  import { BoxedExpression } from '../public';
4
4
  export declare const MACHINE_PRECISION_BITS = 53;
@@ -1,2 +1,2 @@
1
- /* 0.10.0 */
1
+ /* 0.11.0 */
2
2
  export declare function isPrime(n: number): boolean | undefined;
@@ -1,4 +1,4 @@
1
- /* 0.10.0 */
1
+ /* 0.11.0 */
2
2
  import Decimal from 'decimal.js';
3
3
  export declare function isRational(x: any | null): x is Rational;
4
4
  export declare function isMachineRational(x: any | null): x is [number, number];