@cortex-js/compute-engine 0.7.0 → 0.8.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 (79) hide show
  1. package/dist/compute-engine.esm.js +746 -671
  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/compute-engine/assume.d.ts +1 -1
  10. package/dist/types/compute-engine/boxed-expression/abstract-boxed-expression.d.ts +65 -62
  11. package/dist/types/compute-engine/boxed-expression/box.d.ts +1 -1
  12. package/dist/types/compute-engine/boxed-expression/boxed-dictionary.d.ts +1 -1
  13. package/dist/types/compute-engine/boxed-expression/boxed-domain.d.ts +1 -1
  14. package/dist/types/compute-engine/boxed-expression/boxed-function-definition.d.ts +1 -1
  15. package/dist/types/compute-engine/boxed-expression/boxed-function.d.ts +38 -31
  16. package/dist/types/compute-engine/boxed-expression/boxed-number.d.ts +4 -2
  17. package/dist/types/compute-engine/boxed-expression/boxed-patterns.d.ts +1 -1
  18. package/dist/types/compute-engine/boxed-expression/boxed-string.d.ts +1 -1
  19. package/dist/types/compute-engine/boxed-expression/boxed-symbol-definition.d.ts +6 -6
  20. package/dist/types/compute-engine/boxed-expression/boxed-symbol.d.ts +6 -6
  21. package/dist/types/compute-engine/boxed-expression/expression-map.d.ts +1 -1
  22. package/dist/types/compute-engine/boxed-expression/order.d.ts +1 -1
  23. package/dist/types/compute-engine/boxed-expression/serialize.d.ts +1 -1
  24. package/dist/types/compute-engine/boxed-expression/utils.d.ts +3 -3
  25. package/dist/types/compute-engine/compute-engine.d.ts +2 -3
  26. package/dist/types/compute-engine/cost-function.d.ts +1 -1
  27. package/dist/types/compute-engine/domain-utils.d.ts +1 -1
  28. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-algebra.d.ts +1 -1
  29. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-arithmetic.d.ts +1 -1
  30. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-calculus.d.ts +1 -1
  31. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-core.d.ts +1 -1
  32. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-inequalities.d.ts +1 -1
  33. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-logic.d.ts +1 -1
  34. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-other.d.ts +1 -1
  35. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-sets.d.ts +1 -1
  36. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-symbols.d.ts +1 -1
  37. package/dist/types/compute-engine/latex-syntax/dictionary/definitions-trigonometry.d.ts +1 -1
  38. package/dist/types/compute-engine/latex-syntax/dictionary/definitions.d.ts +1 -1
  39. package/dist/types/compute-engine/latex-syntax/latex-syntax.d.ts +1 -1
  40. package/dist/types/compute-engine/latex-syntax/parse.d.ts +1 -1
  41. package/dist/types/compute-engine/latex-syntax/public.d.ts +1 -1
  42. package/dist/types/compute-engine/latex-syntax/serialize-number.d.ts +1 -1
  43. package/dist/types/compute-engine/latex-syntax/serializer-style.d.ts +1 -1
  44. package/dist/types/compute-engine/latex-syntax/serializer.d.ts +1 -1
  45. package/dist/types/compute-engine/latex-syntax/tokenizer.d.ts +1 -1
  46. package/dist/types/compute-engine/library/arithmetic-add.d.ts +1 -1
  47. package/dist/types/compute-engine/library/arithmetic-divide.d.ts +1 -1
  48. package/dist/types/compute-engine/library/arithmetic-multiply.d.ts +1 -1
  49. package/dist/types/compute-engine/library/arithmetic-power.d.ts +1 -1
  50. package/dist/types/compute-engine/library/arithmetic.d.ts +1 -1
  51. package/dist/types/compute-engine/library/calculus.d.ts +1 -1
  52. package/dist/types/compute-engine/library/collections.d.ts +1 -1
  53. package/dist/types/compute-engine/library/core.d.ts +1 -1
  54. package/dist/types/compute-engine/library/domains.d.ts +1 -1
  55. package/dist/types/compute-engine/library/library.d.ts +1 -1
  56. package/dist/types/compute-engine/library/logic.d.ts +1 -1
  57. package/dist/types/compute-engine/library/polynomials.d.ts +1 -1
  58. package/dist/types/compute-engine/library/relational-operator.d.ts +1 -1
  59. package/dist/types/compute-engine/library/sets.d.ts +1 -1
  60. package/dist/types/compute-engine/library/trigonometry.d.ts +1 -1
  61. package/dist/types/compute-engine/numerics/numeric-complex.d.ts +1 -1
  62. package/dist/types/compute-engine/numerics/numeric-decimal.d.ts +1 -1
  63. package/dist/types/compute-engine/numerics/numeric.d.ts +1 -1
  64. package/dist/types/compute-engine/numerics/primes.d.ts +1 -1
  65. package/dist/types/compute-engine/public.d.ts +514 -351
  66. package/dist/types/compute-engine/rules.d.ts +1 -1
  67. package/dist/types/compute-engine/simplify-rules.d.ts +1 -1
  68. package/dist/types/compute-engine/symbolic/expand.d.ts +1 -1
  69. package/dist/types/compute-engine/symbolic/flatten.d.ts +1 -1
  70. package/dist/types/compute-engine/symbolic/negate.d.ts +1 -1
  71. package/dist/types/compute-engine/symbolic/polynomials.d.ts +1 -1
  72. package/dist/types/compute-engine/symbolic/product.d.ts +1 -1
  73. package/dist/types/compute-engine/symbolic/sum.d.ts +1 -1
  74. package/dist/types/compute-engine/symbolic/utils.d.ts +1 -1
  75. package/dist/types/compute-engine.d.ts +2 -2
  76. package/dist/types/math-json/math-json-format.d.ts +1 -1
  77. package/dist/types/math-json/utils.d.ts +1 -1
  78. package/dist/types/math-json.d.ts +2 -2
  79. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
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.7.0 */
1
+ /* 0.8.0 */
2
2
  import { Expression } from '../../math-json/math-json-format';
3
3
  import type { IComputeEngine } from '../public';
4
4
  /**
@@ -1,4 +1,4 @@
1
- /* 0.7.0 */
1
+ /* 0.8.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.7.0 */
1
+ /* 0.8.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.7.0 */
1
+ /* 0.8.0 */
2
2
  import { NumberFormattingOptions, LatexString, SerializeLatexOptions, FunctionEntry } from './public';
3
3
  import { IndexedLatexDictionary, SymbolEntry } from './dictionary/definitions';
4
4
  import { WarningSignalHandler } from '../../common/signals';
@@ -1,4 +1,4 @@
1
- /* 0.7.0 */
1
+ /* 0.8.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}
@@ -1,4 +1,4 @@
1
- /* 0.7.0 */
1
+ /* 0.8.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.7.0 */
1
+ /* 0.8.0 */
2
2
  /**
3
3
  * Canonical form of 'Divide' (and 'Rational')
4
4
  * - remove denominator of 1
@@ -1,4 +1,4 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
2
2
  /** The canonical form of `Multiply`:
3
3
  * - remove `1`
4
4
  * - combine literal small integers and rationals
@@ -1,4 +1,4 @@
1
- /* 0.7.0 */
1
+ /* 0.8.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.7.0 */
1
+ /* 0.8.0 */
2
2
  export declare const ARITHMETIC_LIBRARY: SymbolTable[];
@@ -1,2 +1,2 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
2
2
  export declare const CALCULUS_LIBRARY: SymbolTable[];
@@ -1,2 +1,2 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
2
2
  export declare const COLLECTIONS_LIBRARY: SymbolTable;
@@ -1,2 +1,2 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
2
2
  export declare const CORE_LIBRARY: SymbolTable[];
@@ -1,4 +1,4 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
2
2
  export declare const DOMAIN_CONSTRUCTORS: string[];
3
3
  export declare const DOMAIN_ALIAS: {
4
4
  NumericFunction: (string | string[])[];
@@ -1,4 +1,4 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
2
2
  import { IComputeEngine, SymbolTable } from '../public';
3
3
  export declare function getStandardLibrary(categories: LibraryCategory[] | LibraryCategory | 'all'): Readonly<SymbolTable>[];
4
4
  export declare const LIBRARIES: {
@@ -1,2 +1,2 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
2
2
  export declare const LOGIC_LIBRARY: SymbolTable;
@@ -1,2 +1,2 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
2
2
  export declare const POLYNOMIALS_LIBRARY: SymbolTable[];
@@ -1,2 +1,2 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
2
2
  export declare const RELOP_LIBRARY: SymbolTable;
@@ -1,2 +1,2 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
2
2
  export declare const SETS_LIBRARY: SymbolTable;
@@ -1,2 +1,2 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
2
2
  export declare const TRIGONOMETRY_LIBRARY: SymbolTable[];
@@ -1,3 +1,3 @@
1
- /* 0.7.0 */
1
+ /* 0.8.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.7.0 */
1
+ /* 0.8.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,4 +1,4 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
2
2
  export declare const MACHINE_PRECISION: number;
3
3
  export declare const MACHINE_TOLERANCE_BITS = 7;
4
4
  export declare const MACHINE_TOLERANCE: number;
@@ -1,2 +1,2 @@
1
- /* 0.7.0 */
1
+ /* 0.8.0 */
2
2
  export declare function isPrime(n: number): boolean | undefined;