nerdamer 2.0.0-rc.1 → 2.0.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 (236) hide show
  1. package/BREAKING_CHANGES.md +244 -0
  2. package/README.md +168 -229
  3. package/dist/bundle.js +1 -1
  4. package/dist/bundle.js.LICENSE.txt +6 -6
  5. package/output/algebra/adapters.d.ts +3 -33
  6. package/output/algebra/adapters.js +7 -105
  7. package/output/algebra/algorithms/arith.js +10 -9
  8. package/output/algebra/algorithms/groebnerBase.d.ts +24 -20
  9. package/output/algebra/algorithms/groebnerBase.js +486 -723
  10. package/output/algebra/dispatch.d.ts +1 -0
  11. package/output/algebra/dispatch.js +25 -0
  12. package/output/algebra/factor/factor.d.ts +15 -0
  13. package/output/algebra/factor/factor.js +99 -12
  14. package/output/algebra/gcd/gcd.d.ts +8 -7
  15. package/output/algebra/gcd/gcd.js +32 -78
  16. package/output/algebra/groebner.d.ts +2 -2
  17. package/output/algebra/groebner.js +6 -12
  18. package/output/algebra/partfrac.d.ts +3 -3
  19. package/output/algebra/partfrac.js +28 -61
  20. package/output/algebra/polynomial/ModularSparsePolynomial.d.ts +131 -0
  21. package/output/algebra/polynomial/ModularSparsePolynomial.js +378 -0
  22. package/output/algebra/polynomial/ModularSparsePolynomialFactor.d.ts +40 -0
  23. package/output/algebra/polynomial/ModularSparsePolynomialFactor.js +661 -0
  24. package/output/algebra/polynomial/SparsePolynomialFactor.d.ts +64 -0
  25. package/output/algebra/polynomial/SparsePolynomialFactor.js +492 -0
  26. package/output/algebra/polynomial/SparsePolynomialGcd.d.ts +29 -0
  27. package/output/algebra/polynomial/SparsePolynomialGcd.js +259 -0
  28. package/output/algebra/polynomial/SparsePolynomialMultivariateFactor.d.ts +82 -0
  29. package/output/algebra/polynomial/SparsePolynomialMultivariateFactor.js +604 -0
  30. package/output/algebra/polynomial/modularGcd.d.ts +40 -0
  31. package/output/algebra/polynomial/modularGcd.js +365 -0
  32. package/output/algebra/polynomialize.js +4 -2
  33. package/output/algebra/simplify/funcsimp.js +1 -1
  34. package/output/algebra/simplify/ratsimp.js +1 -1
  35. package/output/algebra/simplify/simplify.js +11 -2
  36. package/output/algebra/utils.d.ts +1 -1
  37. package/output/algebra/utils.js +3 -3
  38. package/output/api/advanced.d.ts +2 -1
  39. package/output/api/advanced.js +3 -3
  40. package/output/api/algebra.d.ts +21 -4
  41. package/output/api/algebra.js +22 -3
  42. package/output/api/assumptions.d.ts +1 -1
  43. package/output/api/assumptions.js +2 -1
  44. package/output/api/calculus.d.ts +2 -1
  45. package/output/api/calculus.js +2 -1
  46. package/output/api/core.d.ts +28 -7
  47. package/output/api/core.js +28 -2
  48. package/output/api/languages/deu.d.ts +3 -0
  49. package/output/api/languages/deu.js +266 -0
  50. package/output/api/languages/fra.d.ts +3 -0
  51. package/output/api/languages/fra.js +266 -0
  52. package/output/api/languages/ita.d.ts +3 -0
  53. package/output/api/languages/ita.js +266 -0
  54. package/output/api/languages/nld.d.ts +3 -0
  55. package/output/api/languages/nld.js +266 -0
  56. package/output/api/languages/por.d.ts +3 -0
  57. package/output/api/languages/por.js +266 -0
  58. package/output/api/languages/spa.d.ts +3 -0
  59. package/output/api/languages/spa.js +266 -0
  60. package/output/api/parser.d.ts +10 -2
  61. package/output/api/parser.js +2 -0
  62. package/output/api/solve.d.ts +1 -1
  63. package/output/api/solve.js +2 -1
  64. package/output/api/structures.d.ts +1 -1
  65. package/output/api/structures.js +2 -1
  66. package/output/calculus/adapters.d.ts +8 -0
  67. package/output/calculus/adapters.js +41 -0
  68. package/output/calculus/derivative/diff.js +6 -3
  69. package/output/calculus/dispatch.d.ts +1 -0
  70. package/output/calculus/dispatch.js +25 -0
  71. package/output/calculus/integrate/integrate.js +4 -4
  72. package/output/calculus/integrate/integrationTable.js +16 -16
  73. package/output/calculus/laplace/ilaplace.js +1 -1
  74. package/output/calculus/laplace/ilaplaceTable.js +18 -17
  75. package/output/calculus/laplace/laplaceTable.js +3 -2
  76. package/output/calculus/limit/limit.js +1 -1
  77. package/output/core/classes/assumption/Assumption.js +14 -10
  78. package/output/core/classes/assumption/assume.d.ts +6 -0
  79. package/output/core/classes/assumption/assume.js +9 -0
  80. package/output/core/classes/assumption/dispatch.d.ts +1 -0
  81. package/output/core/classes/assumption/dispatch.js +11 -0
  82. package/output/core/classes/collection/Collection.js +11 -2
  83. package/output/core/classes/complex/Complex.d.ts +10 -0
  84. package/output/core/classes/complex/Complex.js +19 -1
  85. package/output/core/classes/decimalSet/DecimalSet.js +5 -4
  86. package/output/core/classes/dictionary/Dictionary.js +4 -1
  87. package/output/core/classes/expression/CoeffObject.d.ts +1 -1
  88. package/output/core/classes/expression/CoeffObject.js +1 -2
  89. package/output/core/classes/expression/Expression.d.ts +35 -26
  90. package/output/core/classes/expression/Expression.js +77 -50
  91. package/output/core/classes/expression/analysis.d.ts +1 -1
  92. package/output/core/classes/expression/analysis.js +7 -7
  93. package/output/core/classes/expression/format.d.ts +9 -0
  94. package/output/core/classes/expression/format.js +130 -7
  95. package/output/core/classes/expression/utils.d.ts +9 -0
  96. package/output/core/classes/expression/utils.js +52 -6
  97. package/output/core/classes/matrix/Matrix.d.ts +2 -3
  98. package/output/core/classes/matrix/Matrix.js +26 -23
  99. package/output/core/classes/matrix/dispatch.d.ts +1 -0
  100. package/output/core/classes/matrix/dispatch.js +19 -0
  101. package/output/core/classes/matrix/functions.d.ts +2 -0
  102. package/output/core/classes/matrix/functions.js +5 -0
  103. package/output/core/classes/parser/Parser.d.ts +31 -5
  104. package/output/core/classes/parser/Parser.js +357 -444
  105. package/output/core/classes/parser/constants.d.ts +2 -0
  106. package/output/core/classes/parser/constants.js +4 -2
  107. package/output/core/classes/parser/controlFlowSignals.d.ts +38 -0
  108. package/output/core/classes/parser/controlFlowSignals.js +60 -0
  109. package/output/core/classes/parser/operations/add.js +14 -16
  110. package/output/core/classes/parser/operations/compare.js +13 -0
  111. package/output/core/classes/parser/operations/functions.d.ts +3 -4
  112. package/output/core/classes/parser/operations/functions.js +48 -102
  113. package/output/core/classes/parser/operations/multiply.js +22 -15
  114. package/output/core/classes/parser/operations/power.js +11 -11
  115. package/output/core/classes/parser/operations/subtract.js +2 -1
  116. package/output/core/classes/parser/preprocess.d.ts +0 -7
  117. package/output/core/classes/parser/preprocess.js +33 -39
  118. package/output/core/classes/parser/scripting/controlFlow.d.ts +4 -102
  119. package/output/core/classes/parser/scripting/controlFlow.js +134 -186
  120. package/output/core/classes/parser/scripting/deferred.d.ts +4 -0
  121. package/output/core/classes/parser/scripting/deferred.js +65 -0
  122. package/output/core/classes/parser/scripting/dispatch.d.ts +1 -0
  123. package/output/core/classes/parser/scripting/dispatch.js +62 -0
  124. package/output/core/classes/parser/scripting/evaluate.d.ts +13 -0
  125. package/output/core/classes/parser/scripting/evaluate.js +17 -1
  126. package/output/core/classes/parser/scripting/scope.d.ts +1 -28
  127. package/output/core/classes/parser/scripting/scope.js +36 -40
  128. package/output/core/classes/parser/types.d.ts +5 -5
  129. package/output/core/classes/parser/wrappers/IndexedReference.d.ts +4 -3
  130. package/output/core/classes/parser/wrappers/IndexedReference.js +8 -0
  131. package/output/core/classes/parser/wrappers/KeyValuePair.d.ts +2 -2
  132. package/output/core/classes/polynomial/Polynomial.d.ts +5 -1
  133. package/output/core/classes/polynomial/Polynomial.js +53 -7
  134. package/output/core/classes/polynomial/SparsePolynomial.d.ts +221 -0
  135. package/output/core/classes/polynomial/SparsePolynomial.js +824 -0
  136. package/output/core/classes/polynomial/SparsePolynomialAdapter.d.ts +56 -0
  137. package/output/core/classes/polynomial/SparsePolynomialAdapter.js +241 -0
  138. package/output/core/classes/polynomial/Term.js +2 -2
  139. package/output/core/{adapters.d.ts → classes/polynomial/adapters.d.ts} +2 -2
  140. package/output/core/classes/polynomial/adapters.js +33 -0
  141. package/output/core/classes/polynomial/dispatch.d.ts +1 -0
  142. package/output/core/classes/polynomial/dispatch.js +14 -0
  143. package/output/core/classes/polynomial/functions.d.ts +8 -0
  144. package/output/core/classes/polynomial/functions.js +71 -8
  145. package/output/core/classes/polynomial/utils.js +2 -1
  146. package/output/core/classes/rational/Rational.d.ts +8 -11
  147. package/output/core/classes/rational/Rational.js +70 -20
  148. package/output/core/classes/seq/SEQ.js +4 -4
  149. package/output/core/classes/valuesSet/ValuesSet.d.ts +9 -1
  150. package/output/core/classes/valuesSet/ValuesSet.js +22 -4
  151. package/output/core/classes/vector/Vector.d.ts +2 -3
  152. package/output/core/classes/vector/Vector.js +11 -15
  153. package/output/core/classes/vector/dispatch.d.ts +1 -0
  154. package/output/core/classes/vector/dispatch.js +11 -0
  155. package/output/core/common/classes/MathematicalAggregate.js +11 -2
  156. package/output/core/common/classes/StructuredEntity.d.ts +0 -17
  157. package/output/core/common/classes/StructuredEntity.js +3 -64
  158. package/output/core/common/common.d.ts +0 -1
  159. package/output/core/common/common.js +29 -234
  160. package/output/core/converters/BaseConverter.js +3 -2
  161. package/output/core/converters/Converter.js +9 -5
  162. package/output/core/converters/Pattern.js +1 -1
  163. package/output/core/dispatch.d.ts +18 -0
  164. package/output/core/dispatch.js +3 -281
  165. package/output/core/errors.d.ts +259 -474
  166. package/output/core/errors.js +270 -542
  167. package/output/core/fullFunctions.d.ts +7 -0
  168. package/output/core/fullFunctions.js +31 -0
  169. package/output/core/functions/bigint/bigint.d.ts +13 -1
  170. package/output/core/functions/bigint/bigint.js +56 -4
  171. package/output/core/functions/bigint/primeFactor.d.ts +2 -0
  172. package/output/core/functions/bigint/primeFactor.js +13 -13
  173. package/output/core/functions/build/definitions.js +6 -0
  174. package/output/core/functions/complex.d.ts +2 -2
  175. package/output/core/functions/complex.dispatch.d.ts +1 -0
  176. package/output/core/functions/complex.dispatch.js +16 -0
  177. package/output/core/functions/complex.js +7 -7
  178. package/output/core/functions/decimal.js +2 -1
  179. package/output/core/functions/expand/expand.js +2 -2
  180. package/output/core/functions/numeric.d.ts +1 -1
  181. package/output/core/functions/string.js +2 -1
  182. package/output/core/functions/subst.js +21 -13
  183. package/output/core/parserFunctions.d.ts +7 -0
  184. package/output/core/parserFunctions.js +25 -0
  185. package/output/index.d.ts +50 -30
  186. package/output/index.js +147 -19
  187. package/output/math/defint/defint.d.ts +18 -0
  188. package/output/math/defint/defint.js +60 -0
  189. package/output/math/defint/defintDecimal.js +6 -5
  190. package/output/math/defint/defintNative.js +7 -18
  191. package/output/math/dispatch.d.ts +1 -0
  192. package/output/math/dispatch.js +101 -0
  193. package/output/math/geometry.d.ts +4 -0
  194. package/output/math/geometry.js +23 -0
  195. package/output/math/math.d.ts +59 -19
  196. package/output/math/math.js +244 -100
  197. package/output/math/trig.js +4 -4
  198. package/output/math/utils.d.ts +6 -0
  199. package/output/math/utils.js +39 -0
  200. package/output/solve/classes/PolynomialSolver.d.ts +33 -14
  201. package/output/solve/classes/PolynomialSolver.js +267 -67
  202. package/output/solve/classes/SolutionSet.d.ts +20 -1
  203. package/output/solve/classes/SolutionSet.js +82 -5
  204. package/output/solve/dispatch.d.ts +1 -0
  205. package/output/solve/dispatch.js +13 -0
  206. package/output/solve/linsolve.d.ts +2 -0
  207. package/output/solve/linsolve.js +13 -5
  208. package/output/solve/solve.d.ts +10 -0
  209. package/output/solve/solve.js +128 -20
  210. package/output/solve/solveSystem.d.ts +1 -1
  211. package/output/solve/solveSystem.js +8 -32
  212. package/output/solve/utils.d.ts +2 -1
  213. package/output/solve/utils.js +18 -22
  214. package/output/utils/array.d.ts +1 -1
  215. package/output/utils/debug.js +2 -1
  216. package/package.json +22 -38
  217. package/dist/parser.js +0 -2
  218. package/dist/parser.js.LICENSE.txt +0 -7
  219. package/docs-data/parser-functions.json +0 -1960
  220. package/output/algebra/algorithms/factor.d.ts +0 -3
  221. package/output/algebra/algorithms/factor.js +0 -5
  222. package/output/algebra/algorithms/factorMultivariate.d.ts +0 -23
  223. package/output/algebra/algorithms/factorMultivariate.js +0 -2393
  224. package/output/algebra/algorithms/factorUnivariate.d.ts +0 -72
  225. package/output/algebra/algorithms/factorUnivariate.js +0 -1072
  226. package/output/algebra/algorithms/gcd.d.ts +0 -22
  227. package/output/algebra/algorithms/gcd.js +0 -690
  228. package/output/algebra/algorithms/multiPoly/MultiPoly.d.ts +0 -137
  229. package/output/algebra/algorithms/multiPoly/MultiPoly.js +0 -346
  230. package/output/algebra/algorithms/poly.d.ts +0 -228
  231. package/output/algebra/algorithms/poly.js +0 -1299
  232. package/output/algebra/algorithms/rational.d.ts +0 -17
  233. package/output/algebra/algorithms/rational.js +0 -115
  234. package/output/core/adapters.js +0 -40
  235. package/output/core/classes/parser/operations/comma.d.ts +0 -7
  236. package/output/core/classes/parser/operations/comma.js +0 -11
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ErrorMessages = exports.AssignmentError = exports.ZeroToZeroPowerError = exports.MissingReferenceError = exports.NotImplementedError = exports.DimensionError = exports.NaNError = exports.MathError = exports.ParserSyntaxError = exports.UnsupportedOperationError = exports.PolynomialError = exports.UndefinedError = exports.ParserError = exports.OperatorError = exports.DivisionByZeroError = exports.UnexpectedInputError = exports.UnexpectedDataType = exports.UnexpectedTokenError = void 0;
3
+ exports.ErrorMessages = exports.EnglishErrorMessages = exports.AssignmentError = exports.ZeroToZeroPowerError = exports.MissingReferenceError = exports.NotImplementedError = exports.DimensionError = exports.NaNError = exports.MathError = exports.ParserSyntaxError = exports.UnsupportedOperationError = exports.PolynomialError = exports.UndefinedError = exports.NullError = exports.ParserError = exports.OperatorError = exports.DivisionByZeroError = exports.UnexpectedInputError = exports.UnexpectedDataType = exports.UnexpectedTokenError = void 0;
4
+ exports.registerLanguage = registerLanguage;
4
5
  exports.message = message;
5
6
  const string_1 = require("./functions/string");
6
7
  const Settings_1 = require("./Settings");
@@ -28,6 +29,10 @@ exports.OperatorError = OperatorError;
28
29
  class ParserError extends Error {
29
30
  }
30
31
  exports.ParserError = ParserError;
32
+ /** Thrown when evaluation requires a value but a construct produces no value. */
33
+ class NullError extends Error {
34
+ }
35
+ exports.NullError = NullError;
31
36
  /** Used when a mathematical operation has no defined value in the handled domain. */
32
37
  class UndefinedError extends Error {
33
38
  }
@@ -73,549 +78,272 @@ class AssignmentError extends Error {
73
78
  }
74
79
  exports.AssignmentError = AssignmentError;
75
80
  /** Internal localized message templates used when constructing Nerdamer errors. */
81
+ exports.EnglishErrorMessages = {
82
+ // General
83
+ notImplemented: 'This method has not yet been implemented.',
84
+ noInverse: 'Unable to calculate inverse!',
85
+ undefinedValue: 'The requested value is undefined!',
86
+ nullValue: 'Value expected but received null.',
87
+ univariateInputOnly: 'The input for this function must be univariate!',
88
+ differentSignsAtEndPointsRequired: 'Function must have opposite signs at endpoints a and b!',
89
+ integerRequired: 'This function requires the coefficient to be an integer!',
90
+ plainVariableExpected: 'Expected plain variable! Received {{input}}.',
91
+ missingReference: 'The reference "{{ref}}" does not exist on this pattern!!',
92
+ undefinedDivision: 'Division not defined expression of this type! {{type}}',
93
+ restrictedVariableName: 'Cannot assign the requested value to the reserved name "{{name}}"!',
94
+ noVariableInExpression: 'No variable found in expression!',
95
+ quadraticExpressionExpected: 'Expression must be quadratic!',
96
+ wrongInput: 'Wrong input! Expected {{expected}} but received {{received}}.',
97
+ unsupportedFunction: 'Unsupported function {{function}}',
98
+ functionMinArgs: '{{function}} requires a minimum of {{min}} arguments but {{actual}} provided!',
99
+ functionMaxArgs: '{{function}} allows a maximum of {{max}} arguments but {{actual}} provided!',
100
+ invalidFunctionDeclaration: 'Invalid function declaration {{declaration}}.',
101
+ indexOutOfBounds: 'Index {{index}} out of bounds for {{type}} of length {{length}}',
102
+ matrixRowIndexOutOfBounds: 'Row index {{index}} out of bounds for Matrix with {{length}} rows',
103
+ matrixColumnIndexOutOfBounds: 'Column index {{index}} out of bounds for Matrix with {{length}} columns',
104
+ dictionaryKeyNotFound: 'Key "{{key}}" not found in Dictionary. Available keys: {{keys}}',
105
+ rangeValuesFinite: 'Range values must be finite.',
106
+ rangeStepNonzero: 'Step cannot be zero',
107
+ rangeStepNoAdvance: 'Step does not advance range at current precision',
108
+ sparseVariableCountInvalid: 'SparsePolynomial variableCount must be a non-negative safe integer.',
109
+ sparseExponentVectorLengthMismatch: 'SparsePolynomial exponent vector length must equal variableCount.',
110
+ sparseExponentsNonNegativeBigInt: 'SparsePolynomial exponents must be non-negative bigints.',
111
+ sparseVariableIndexOutOfRing: 'SparsePolynomial variable index is outside the polynomial ring.',
112
+ sparseAdditionRingMismatch: 'SparsePolynomial addition requires the same polynomial ring.',
113
+ sparseCoefficientExponentNonNegative: 'SparsePolynomial coefficient exponent must be non-negative.',
114
+ sparseZeroMonomialDivision: 'SparsePolynomial cannot divide by a zero monomial.',
115
+ sparseZeroScalarDivision: 'SparsePolynomial cannot divide by zero.',
116
+ sparseScalarDivisionExact: 'SparsePolynomial scalar division must be exact for every coefficient.',
117
+ sparseDivisionRingMismatch: 'SparsePolynomial division requires the same polynomial ring.',
118
+ sparseZeroPolynomialDivision: 'SparsePolynomial cannot divide by the zero polynomial.',
119
+ sparseMonomialOrderUnsupported: 'SparsePolynomial monomial order is not supported.',
120
+ sparseMultiplicationRingMismatch: 'SparsePolynomial multiplication requires the same polynomial ring.',
121
+ sparseExponentNonNegative: 'SparsePolynomial exponent must be non-negative.',
122
+ sparseSubtractionRingMismatch: 'SparsePolynomial subtraction requires the same polynomial ring.',
123
+ invalidDecimal: 'Invalid Decimal: "{{value}}"',
124
+ invalidInterval: 'Invalid interval: ({{start}}, {{end}})',
125
+ invalidAssumption: 'Invalid assumption: "{{input}}"',
126
+ assumptionIdentifierExpected: 'Expected identifier',
127
+ assumptionOperatorMissing: 'Missing operator',
128
+ assumptionValueMissing: 'Missing value',
129
+ assumptionOperatorUnsupported: 'Unsupported operator "{{operator}}"',
130
+ matrixStringKeyUnsupported: 'Matrix does not support string key access',
131
+ matrixTraceUnavailable: 'Unable to calculate trace for the matrix',
132
+ defintMaxEvals: 'defint: maxEvals exceeded ({{max}}).',
133
+ defintNonFiniteValue: 'defint: non-finite f(x) at x={{x}}',
134
+ defintEndpointSingularity: 'defint: endpoint singularity could not be regularized near x={{x}}',
135
+ defintSingularity: 'defint: singular/non-finite encountered near [{{a}}, {{b}}]',
136
+ defintInfiniteBounds: 'defint: infinite bounds require allowInfinite: true',
137
+ defintUnsupportedInfiniteBounds: 'defint: unsupported infinite bound configuration',
138
+ symbolicAccessNamedTargetRequired: 'Symbolic indexed access requires a named Vector or Matrix target.',
139
+ symbolicVectorIndexCount: 'Symbolic Vector access requires exactly one index.',
140
+ symbolicMatrixRowNonScalar: 'Symbolic Matrix row access is not scalar and cannot be deferred as an Expression.',
141
+ symbolicMatrixCellIndexCount: 'Symbolic Matrix cell access requires exactly two indices.',
142
+ symbolicAccessMaxIndices: 'Symbolic indexed access supports at most two unresolved indices.',
143
+ symbolicAccessIndexScalar: 'Symbolic accessor indices must evaluate to scalar expressions.',
144
+ symbolicAccessTargetType: 'Symbolic indexed access target must resolve to a Vector or Matrix.',
145
+ expectedOperatorOrFunction: 'Expected operator or function name but "{{value}}" found!',
146
+ missingOpeningBracket: 'Missing opening bracket for "{{bracket}}":{{position}}',
147
+ missingClosingBracket: 'Missing closing bracket for "{{bracket}}":{{position}}',
148
+ prefixOperatorExpected: 'Prefix operator expected but {{operator}} encountered.',
149
+ groebnerBasisSizeBudgetExceeded: 'Groebner budget exceeded: basis size > {{max}}',
150
+ groebnerPairsBudgetExceeded: 'Groebner budget exceeded: pairsPopped > {{max}}',
151
+ unsupportedParserEntity: 'Unsupported parser entity',
152
+ factorialNegativeUndefined: 'Factorial is undefined for negative integers.',
153
+ erfConvergenceFailed: 'erf not converging. Exiting!',
154
+ defintInfiniteBoundsDecimal: 'defint: infinite bounds require allowInfinite:true',
155
+ seqStartsAtInteger: "startsAt must be an integer",
156
+ seqPolynomialOrMaxPower: "Sequence is not a polynomial or exceeds maxPower",
157
+ seqInsufficientData: "Insufficient data points for detected degree",
158
+ arithPowNegativeExponent: "pow: negative exponent",
159
+ arithPowNNonnegativeInteger: "powN: exponent must be a nonnegative integer",
160
+ arithBigIntSqrtNegative: "bigIntSqrt: negative input",
161
+ arithNthRootPositiveInteger: "intNthRootExact: n must be a positive integer",
162
+ arithDivisorsPositive: "getDivisors: n must be positive",
163
+ arithModNormNonzeroModulus: "modNorm: modulus must be nonzero",
164
+ arithModSymmetricNonzeroModulus: "modSymmetric: modulus must be nonzero",
165
+ arithModInvZeroNoninvertible: "modInv: non-invertible (0)",
166
+ arithModInvNoninvertible: "modInv: non-invertible",
167
+ integerSqrtNonnegative: "Integer square root requires a non-negative value.",
168
+ modularExponentiationPositiveModulus: "Modular exponentiation requires a positive modulus.",
169
+ modularExponentiationNonnegativeExponent: "Modular exponentiation requires a non-negative exponent.",
170
+ maxBigIntRequiresArgument: "maxBigInt() requires at least one argument",
171
+ minBigIntEmpty: "Min of empty list is not defined for BigInt.",
172
+ binomBigIntNonnegativeN: "binomBigInt: n must be non-negative",
173
+ invalidDecimalValue: "Invalid decimal value: {{value}}",
174
+ subtractionNotDefined: "Subtraction not defined for {{leftType}}-{{rightType}} | {{left}}-{{right}}",
175
+ sparseAdapterVariablesUnique: "Sparse polynomial adapter variables must be unique.",
176
+ sparseAdapterVariablesIncludeEvery: "Sparse polynomial adapter variables must include every polynomial variable.",
177
+ sparseExpressionConversionNameCount: "Sparse polynomial expression conversion requires one name per ring variable.",
178
+ converterMissingArgumentScope: "Missing argument scope for function {{function}}",
179
+ converterMissingPrefixOperand: "Missing operand for prefix operator {{operator}}",
180
+ converterMissingOperandMetadata: "Missing operand or metadata for operator {{operator}}",
181
+ converterMissingLeftOperand: "Missing left operand for operator {{operator}}",
182
+ converterTexConversionFailed: "Unable to convert source expression to TeX",
183
+ unknownOperator: "Unknown operator {{operator}}",
184
+ polynomialMaximumIterations: "Maximum iterations reached",
185
+ polyRequires: "{{operation}} requires {{requirement}}.",
186
+ polyVariablesUnique: "{{operation}} variables must be unique.",
187
+ polyVariablesRingOrder: "{{operation}} variables must follow polynomial-ring order.",
188
+ polyVariablesIncludeActive: "{{operation}} variables must include every active variable.",
189
+ polyInputsSelectedOnly: "{{operation}} inputs may use only the selected variables.",
190
+ polyCannotFactorZeroPolynomial: "{{operation}} cannot factor the zero polynomial.",
191
+ polyCannotFactorZero: "{{operation}} cannot factor zero.",
192
+ polyModulusGreaterThanOne: "ModularSparsePolynomial modulus must be greater than one.",
193
+ polyVariableCountMatch: "ModularSparsePolynomial variableCount must match the supplied sparse polynomial.",
194
+ polyInterpolationCannotDepend: "ModularSparsePolynomial interpolation samples cannot depend on the interpolated variable.",
195
+ polyInterpolationInvertibleDifferences: "ModularSparsePolynomial interpolation points must have invertible pairwise differences.",
196
+ polyCoefficientExponentNonnegative: "ModularSparsePolynomial coefficient exponent must be non-negative.",
197
+ polyCannotDivideZero: "ModularSparsePolynomial cannot divide by the zero polynomial.",
198
+ polyDivisorLeadingCoefficientInvertible: "ModularSparsePolynomial divisor leading coefficient is not invertible.",
199
+ polyLeadingCoefficientInvertible: "ModularSparsePolynomial leading coefficient is not invertible.",
200
+ polyExponentNonnegative: "ModularSparsePolynomial exponent must be non-negative.",
201
+ polyDegreeMatrixLimit: "Modular factorization degree exceeds the supported matrix dimension.",
202
+ polyExtendedGcdTwoZeroUndefined: "Modular extended GCD is undefined for two zero polynomials.",
203
+ polyHenselPrimeExceedsTailDegree: "Multivariate Hensel lifting prime must exceed every tail-variable degree.",
204
+ polyHenselTargetNotSmaller: "Hensel lifting target modulus cannot be smaller than the base prime.",
205
+ polyHenselTargetRepeatedSquaring: "Hensel lifting target modulus must be obtained by repeated squaring of the base prime.",
206
+ polyHenselFactorsReconstructModuloBase: "Hensel lifting factors do not reconstruct the integer polynomial modulo the base prime.",
207
+ polyZassenhausFactorsReconstructModuloLift: "Zassenhaus recombination factors do not reconstruct the input modulo the lift modulus.",
208
+ polyWangCannotSpecializeZero: "Wang evaluation search cannot specialize zero.",
209
+ polyModularContentExactDivision: "Modular polynomial content must divide the polynomial exactly.",
210
+ factorizationNoFactors: "Nonconstant factorization returned no factors.",
211
+ polyCrtModuliInvertible: "Polynomial CRT moduli must be invertible.",
212
+ polyIntegerFactorPrimeZero: "Integer factorization cannot choose a prime for zero.",
213
+ polySquareFreeNonExactDivision: "Square-free factorization encountered a non-exact polynomial division.",
214
+ polyZassenhausLostRemaining: "Zassenhaus recombination lost the remaining polynomial.",
215
+ polyZassenhausReconstructionFailed: "Zassenhaus recombination factors do not reconstruct the integer polynomial.",
216
+ polyIntegerFactorLostLeading: "Integer factorization lost the leading term.",
217
+ parserMalformedSymbolicAccessor: "Malformed internal symbolic accessor.",
218
+ parserMalformedSymbolicAccessorIndex: "Malformed internal symbolic accessor index.",
219
+ unknownOperatorAction: "Unknown operator action {{action}}",
220
+ parserBracketTokenMissingCharacter: "Bracket token is missing its character.",
221
+ polyWangLeadingEvaluationInteger: "Wang leading-coefficient evaluation did not produce an integer.",
222
+ polyWangSpecializedLeadingInteger: "Wang specialized factor did not have an integer leading coefficient.",
223
+ polyMultivariateContentDivisionFailed: "Multivariate factorization could not divide a square-free block by its main-variable content.",
224
+ polyMultivariateContentVariableMissing: "Multivariate main-variable content did not retain an active coefficient variable.",
225
+ polyMultivariateReconstructionFailed: "Complete multivariate factorization does not reconstruct the input polynomial.",
226
+ polyBerlekampNoninvertiblePivot: "Berlekamp elimination encountered a noninvertible pivot.",
227
+ polyHenselZeroFactorGroup: "Hensel lifting cannot lift a zero factor group.",
228
+ polyHenselCannotLiftZero: "Hensel lifting cannot lift the zero polynomial.",
229
+ polyHenselModulusExceeded: "Hensel lifting exceeded the requested prime-power modulus.",
230
+ polyHenselLeadingLost: "Hensel lifting lost the target leading coefficient.",
231
+ polyHenselReconstructionFailed: "Hensel-lifted factors do not reconstruct the target polynomial.",
232
+ polyBerlekampNonExactSplit: "Berlekamp splitting produced a non-exact factor division.",
233
+ polyBerlekampIncompleteSplit: "Berlekamp factorization did not fully split the polynomial.",
234
+ polyBerlekampReconstructionFailed: "Berlekamp factors do not reconstruct the input polynomial.",
235
+ expressionKeyValueUnsupported: "The function 'keyValue' is not implemented for type {{type}}.",
236
+ solveLinearNonlinearDegree: "Nonlinear term detected in equation {{equation}}: degree {{degree}} term found. solveLinearSystem only handles linear systems.",
237
+ solveLinearNonPolynomialVariable: "Nonlinear term detected in equation {{equation}}: variable \"{{variable}}\" appears in a non-polynomial position. solveLinearSystem only handles linear systems.",
238
+ polyReqPrimeModulus: "a prime modulus",
239
+ polyReqUnivariatePolynomial: "a univariate polynomial",
240
+ polyReqSquareFreeInput: "square-free input",
241
+ polyReqSamePolynomialRing: "the same polynomial ring",
242
+ polyReqAtLeastOneVariable: "at least one variable",
243
+ polyReqAtLeastTwoSelectedVariables: "at least two selected variables",
244
+ polyReqOneEvaluationPerTailVariable: "one evaluation value per tail variable",
245
+ polyReqMatchingFactorLeadingLists: "matching factor and leading-coefficient lists",
246
+ polyReqPairwiseCoprimeModularFactors: "pairwise coprime modular factors",
247
+ polyReqPrimeBaseModulus: "a prime base modulus",
248
+ polyReqAtLeastOneModularFactor: "at least one modular factor",
249
+ polyReqUnivariateIntegerPolynomial: "a univariate integer polynomial",
250
+ polyReqFactorsSameRingAndPrime: "factors from the same integer polynomial ring and base prime",
251
+ polyReqUnivariateFactors: "univariate factors",
252
+ polyReqMonicModularFactors: "monic modular factors",
253
+ polyReqPrimitiveIntegerPolynomial: "a primitive integer polynomial",
254
+ polyReqPositiveLeadingCoefficient: "a positive leading coefficient",
255
+ polyReqLiftedModularFactors: "lifted modular factors",
256
+ polyReqLiftedFactorsSameRing: "lifted factors from one polynomial ring",
257
+ polyReqUnivariateLiftedFactors: "univariate lifted factors",
258
+ polyReqMonicLiftedFactors: "monic lifted factors",
259
+ polyReqLargerHenselModulus: "a larger Hensel lifting modulus",
260
+ polyReqPrimitivePolynomial: "a primitive polynomial",
261
+ polyReqPositiveLexLeadingSign: "positive lexicographic leading sign",
262
+ polyReqSquareFreeMainVariable: "square-free input in the main variable",
263
+ polyReqExactlyTwoSelectedVariables: "exactly two selected variables",
264
+ polyReqExactlyTwoVariables: "exactly two variables",
265
+ polyReqOneValuePerNonMainVariable: "one value for every non-main selected variable",
266
+ polyReqOneValuePerTailVariable: "one value for every tail variable",
267
+ polyReqPositiveDegreeMainVariable: "positive degree in the main variable",
268
+ polyReqAllOtherVariablesDormant: "all other variables to be dormant",
269
+ polyReqPositiveModuli: "positive moduli",
270
+ polyReqCoprimeModuli: "coprime moduli",
271
+ polyReqAtLeastOneSample: "at least one sample",
272
+ polyReqInvertibleLeadingCoefficient: "an invertible leading coefficient",
273
+ polyReqIntegerLeadingCoefficientInvertible: "the integer leading coefficient to be invertible modulo the base prime",
274
+ infinityMinusInfinityUndefined: 'Infinity-Infinity is undefined!',
275
+ // Assumptions
276
+ inconsistentAssumptions: 'Assumptions are inconsistent (empty intersection)!',
277
+ // Parser
278
+ unsupportedType: 'The provided type ({{type}}) is not supported for this function!',
279
+ unsupportedOperation: 'This operation is currently not supported!',
280
+ buildFunctionUnsupportedFunction: 'buildFunction cannot compile the function "{{function}}" to JavaScript number arithmetic!',
281
+ buildFunctionComplexUnsupported: 'buildFunction cannot compile expressions containing the imaginary unit to JavaScript number arithmetic!',
282
+ nonMatchingDimensions: "This operation cannot be completed because the dimensions don't match!",
283
+ malformedExpression: 'Unable to parse malformed expression!',
284
+ unsupportedCharacter: 'Unsupported character "{{character}}" at position {{position}}.',
285
+ missingCommentDelimiter: 'Missing closing comment delimiter "{{delimiter}}".',
286
+ divisionByZero: 'Division by zero is not defined!',
287
+ zeroToZeroPower: '0^0 is undefined!',
288
+ infinityToPowerZero: 'Infinity^0 is not defined!',
289
+ infinityTimesZero: '0*Infinity is not defined!',
290
+ infinityToInfinity: 'Infinity^Infinity is not defined!',
291
+ valueToInfinityUndefined: '{{value}}^Infinity is not defined!',
292
+ atan2Undefined: 'atan2 is undefined for 0, 0!',
293
+ tanUndefined: 'tan is undefined for multiples of pi/2!',
294
+ loopIterationLimitExceeded: 'Loop exceeded the maximum of {{max}} iterations.',
295
+ breakOutsideLoop: 'break can only be used inside a loop.',
296
+ continueOutsideLoop: 'continue can only be used inside a loop.',
297
+ letRequiresBindingsAndBody: 'let requires one or more name/value pairs followed by a body expression.',
298
+ secUndefined: 'sec is undefined for odd multiples of pi/2!',
299
+ cscUndefined: 'csc is undefined for multiples of pi!',
300
+ cotUndefined: 'cot is undefined for multiples of pi!',
301
+ cothUndefined: 'coth is undefined for 0!',
302
+ cschUndefined: 'csch is undefined for 0!',
303
+ atanhUndefined: 'atanh is undefined for 0!',
304
+ cannotCreateArrayFromNaN: 'Cannot create array from NaN!',
305
+ expressionExpected: 'Expression expected!. Received {{type}}!',
306
+ // TeX Converter.
307
+ unrecognizedMode: '"{{mode}}" is is not a valid mode!',
308
+ // Polynomials
309
+ notAPolynomial: 'The expression is not a valid polynomial!',
310
+ multidegreeMismatch: 'The number of variables must match the multidegree of the polynomial!',
311
+ // Matrix
312
+ cannotCreateMatrix: 'Unable to create Matrix. Row dimensions do not match!',
313
+ cannotMultiplyMatrix: 'Cannot multiply matrix!',
314
+ squareMatrixRequired: 'The matrix must be square!',
315
+ rowsMustMatch: 'The rows of the matrices must match!',
316
+ columnsMustMatch: 'The columns of the matrices must match!',
317
+ singularMatrix: 'The provided matrix is singular!',
318
+ matrixExpected: 'Matrix expected! Received {{type}}.',
319
+ // Vector
320
+ mismatchedDimensions: 'The dimensions must match for the function "{{function}}"!',
321
+ incorrectCrossDimension: 'The cross product is only defined for vectors of dimension 3!',
322
+ vectorExpected: 'Expected Vector! Received {{type}}.',
323
+ // Polynomial
324
+ univariatePolynomialOnly: 'This function is only supported for univariate polynomials!',
325
+ unknownVariable: 'Unknown variable! "{{variable}}"',
326
+ // Solve
327
+ convergenceFailed: 'Failed to converge! {{iters}} iterations were tried.',
328
+ endPointIsRoot: 'End point is root.',
329
+ zeroDerivative: 'The derivative is zero at x = {{x}}. Cannot continue.',
330
+ tooManyUnknowns: 'Too many unknowns!',
331
+ solveSystemInfiniteSolutions: 'This system does not have a finite isolated solution set!',
332
+ solveSystemPolynomialOnly: 'solveSystem currently supports only linear or polynomial systems!',
333
+ solveSystemNonRationalUnsupported: 'This nonlinear polynomial system requires non-rational or non-symbolic solving, which is not yet supported!',
334
+ // Set function
335
+ setJSFunctionExpectsFunction: 'The function parameter when setting a JS function must be of type function!',
336
+ functionRequiresMinAndMaxArgs: 'You must provide a min and max arg when setting the function!',
337
+ };
76
338
  exports.ErrorMessages = {
77
- eng: {
78
- // General
79
- notImplemented: 'This method has not yet been implemented.',
80
- noInverse: 'Unable to calculate inverse!',
81
- undefinedValue: 'The requested value is undefined!',
82
- univariateInputOnly: 'The input for this function must be univariate!',
83
- differentSignsAtEndPointsRequired: 'Function must have opposite signs at endpoints a and b!',
84
- integerRequired: 'This function requires the coefficient to be an integer!',
85
- plainVariableExpected: 'Expected plain variable! Received {{input}}.',
86
- missingReference: 'The reference "{{ref}}" does not exist on this pattern!!',
87
- undefinedDivision: 'Division not defined expression of this type! {{type}}',
88
- restrictedVariableName: 'Cannot assign the requested value to the reserved name "{{name}}"!',
89
- noVariableInExpression: 'No variable found in expression!',
90
- quadraticExpressionExpected: 'Expression must be quadratic!',
91
- wrongInput: 'Wrong input! Expected {{expected}} but received {{received}}.',
92
- infinityMinusInfinityUndefined: 'Infinity-Infinity is undefined!',
93
- // Assumptions
94
- inconsistentAssumptions: 'Assumptions are inconsistent (empty intersection)!',
95
- // Parser
96
- unsupportedType: 'The provided type ({{type}}) is not supported for this function!',
97
- unsupportedOperation: 'This operation is currently not supported!',
98
- buildFunctionUnsupportedFunction: 'buildFunction cannot compile the function "{{function}}" to JavaScript number arithmetic!',
99
- buildFunctionComplexUnsupported: 'buildFunction cannot compile expressions containing the imaginary unit to JavaScript number arithmetic!',
100
- nonMatchingDimensions: "This operation cannot be completed because the dimensions don't match!",
101
- malformedExpression: 'Unable to parse malformed expression!',
102
- divisionByZero: 'Division by zero is not defined!',
103
- zeroToZeroPower: '0^0 is undefined!',
104
- infinityToPowerZero: 'Infinity^0 is not defined!',
105
- infinityTimesZero: '0*Infinity is not defined!',
106
- infinityToInfinity: 'Infinity^Infinity is not defined!',
107
- valueToInfinityUndefined: '{{value}}^Infinity is not defined!',
108
- atan2Undefined: 'atan2 is undefined for 0, 0!',
109
- tanUndefined: 'tan is undefined for multiples of pi/2!',
110
- loopIterationLimitExceeded: 'Loop exceeded the maximum of {{max}} iterations.',
111
- breakOutsideLoop: 'break can only be used inside a loop.',
112
- continueOutsideLoop: 'continue can only be used inside a loop.',
113
- letRequiresBindingsAndBody: 'let requires one or more name/value pairs followed by a body expression.',
114
- secUndefined: 'sec is undefined for odd multiples of pi/2!',
115
- cscUndefined: 'csc is undefined for multiples of pi!',
116
- cotUndefined: 'cot is undefined for multiples of pi!',
117
- cothUndefined: 'coth is undefined for 0!',
118
- cschUndefined: 'csch is undefined for 0!',
119
- atanhUndefined: 'atanh is undefined for 0!',
120
- cannotCreateArrayFromNaN: 'Cannot create array from NaN!',
121
- expressionExpected: 'Expression expected!. Received {{type}}!',
122
- // TeX Converter.
123
- unrecognizedMode: '"{{mode}}" is is not a valid mode!',
124
- // Polynomials
125
- notAPolynomial: 'The expression is not a valid polynomial!',
126
- multidegreeMismatch: 'The number of variables must match the multidegree of the polynomial!',
127
- // Matrix
128
- cannotCreateMatrix: 'Unable to create Matrix. Row dimensions do not match!',
129
- cannotMultiplyMatrix: 'Cannot multiply matrix!',
130
- squareMatrixRequired: 'The matrix must be square!',
131
- rowsMustMatch: 'The rows of the matrices must match!',
132
- columnsMustMatch: 'The columns of the matrices must match!',
133
- singularMatrix: 'The provided matrix is singular!',
134
- matrixExpected: 'Matrix expected! Received {{type}}.',
135
- // Vector
136
- mismatchedDimensions: 'The dimensions must match for the function "{{function}}"!',
137
- incorrectCrossDimension: 'The cross product is only defined for vectors of dimension 3!',
138
- vectorExpected: 'Expected Vector! Received {{type}}.',
139
- // Polynomial
140
- univariatePolynomialOnly: 'This function is only supported for univariate polynomials!',
141
- unknownVariable: 'Unknown variable! "{{variable}}"',
142
- // Solve
143
- convergenceFailed: 'Failed to converge! {{iters}} iterations were tried.',
144
- endPointIsRoot: 'End point is root.',
145
- zeroDerivative: 'The derivative is zero at x = {{x}}. Cannot continue.',
146
- tooManyUnknowns: 'Too many unknowns!',
147
- solveSystemInfiniteSolutions: 'This system does not have a finite isolated solution set!',
148
- solveSystemPolynomialOnly: 'solveSystem currently supports only linear or polynomial systems!',
149
- solveSystemNonRationalUnsupported: 'This nonlinear polynomial system requires non-rational or non-symbolic solving, which is not yet supported!',
150
- // Set function
151
- setJSFunctionExpectsFunction: 'The function parameter when setting a JS function must be of type function!',
152
- functionRequiresMinAndMaxArgs: 'You must provide a min and max arg when setting the function!',
153
- },
154
- spa: {
155
- // General
156
- notImplemented: 'Este método aún no se ha implementado.',
157
- noInverse: 'Incapaz de calcular inversa!',
158
- undefinedValue: '¡El valor solicitado no está definido!',
159
- univariateInputOnly: '¡La entrada para esta función debe ser univariada!',
160
- differentSignsAtEndPointsRequired: '¡La función debe tener signos opuestos en los puntos extremos a y b!',
161
- integerRequired: '¡Esta función requiere que el coeficiente sea un número entero!',
162
- plainVariableExpected: '¡Se esperaba una variable simple! Se recibió {{input}}.',
163
- missingReference: '¡La referencia "{{ref}}" no existe en este patrón!',
164
- undefinedDivision: '¡División no definida expresión de este tipo! {{type}}',
165
- restrictedVariableName: '¡No se puede asignar el valor solicitado al nombre reservado "{{name}}"!',
166
- noVariableInExpression: '¡No se encontró ninguna variable en la expresión!',
167
- quadraticExpressionExpected: '¡La expresión debe ser cuadrática!',
168
- wrongInput: '¡Entrada incorrecta! Se esperaba {{expected}}, pero se recibió {{received}}.',
169
- infinityMinusInfinityUndefined: '¡Infinito menos infinito es indefinido!',
170
- // Assumptions
171
- inconsistentAssumptions: '¡Las suposiciones son inconsistentes (intersección vacía)!',
172
- // Parser
173
- unsupportedType: '¡El tipo ({{type}}) proporcionado no es compatible con esta función!',
174
- unsupportedOperation: '¡Esta operación no está soportada actualmente!',
175
- buildFunctionUnsupportedFunction: '¡buildFunction no puede compilar la función "{{function}}" a aritmética numérica de JavaScript!',
176
- buildFunctionComplexUnsupported: '¡buildFunction no puede compilar expresiones que contienen la unidad imaginaria a aritmética numérica de JavaScript!',
177
- nonMatchingDimensions: '¡Esta operación no se puede completar porque las dimensiones no coinciden!',
178
- malformedExpression: '¡No se puede analizar la expresión malformada!',
179
- divisionByZero: '¡La división por cero no está definida!',
180
- zeroToZeroPower: '¡0^0 no está definido!',
181
- infinityToPowerZero: '¡Infinito^0 no está definido!',
182
- infinityTimesZero: '¡0*Infinito no está definido!',
183
- infinityToInfinity: '¡Infinito^Infinito no está definido!',
184
- valueToInfinityUndefined: '{{value}}^Infinito no está definido!',
185
- atan2Undefined: '¡atan2 no está definida para 0, 0!',
186
- tanUndefined: '¡tan no está definida para múltiplos de pi / 2!',
187
- loopIterationLimitExceeded: 'El bucle superó el máximo de {{max}} iteraciones.',
188
- breakOutsideLoop: 'break solo se puede usar dentro de un bucle.',
189
- continueOutsideLoop: 'continue solo se puede usar dentro de un bucle.',
190
- letRequiresBindingsAndBody: 'let requiere uno o más pares nombre/valor seguidos de una expresión de cuerpo.',
191
- secUndefined: '¡sec no está definida para múltiplos impares de pi/2!',
192
- cscUndefined: '¡csc no está definida para múltiplos de pi!',
193
- cotUndefined: '¡cot no está definida para múltiplos de pi!',
194
- cothUndefined: '¡coth no está definida para 0!',
195
- cschUndefined: '¡csch no está definida para 0!',
196
- atanhUndefined: '¡Atanh no está definida para 0!',
197
- cannotCreateArrayFromNaN: '¡No se puede crear una matriz de NaN!',
198
- expressionExpected: '¡Se esperaba Expression! ¡Se recibió {{type}}!',
199
- // TeX Converter
200
- unrecognizedMode: '¡{{mode}} no es un modo válido!',
201
- // Polynomials
202
- notAPolynomial: '¡La expresión no es un polinomio válido!',
203
- multidegreeMismatch: '¡El número de variables debe coincidir con el multigrado del polinomio!',
204
- unknownVariable: '¡Variable desconocida! "{{variable}}"',
205
- // Matrix
206
- cannotCreateMatrix: 'No se puede crear la matriz. ¡Las dimensiones de las filas no coinciden!',
207
- cannotMultiplyMatrix: '¡No se puede multiplicar la matriz!',
208
- squareMatrixRequired: '¡La matriz debe ser cuadrada!',
209
- rowsMustMatch: '¡Las filas de las matrices deben coincidir!',
210
- columnsMustMatch: '¡Las columnas de las matrices deben coincidir!',
211
- singularMatrix: '¡La matriz proporcionada es singular!',
212
- matrixExpected: '¡Matriz esperada! Se recibió {{type}}.',
213
- // Vector
214
- mismatchedDimensions: '¡Las dimensiones deben coincidir para la función "{{function}}"!',
215
- incorrectCrossDimension: '¡El producto vectorial sólo está definido para vectores de dimensión 3!',
216
- vectorExpected: '¡Vector esperado! Recibido. {{type}}.',
217
- // Polynomial
218
- univariatePolynomialOnly: '¡Esta función solo es compatible con polinomios univariados!',
219
- // Solve
220
- convergenceFailed: '¡No se logró la convergencia! Se intentaron {{iters}} iteraciones.',
221
- endPointIsRoot: 'El punto final es la raíz.',
222
- zeroDerivative: 'La derivada es cero en x = {{x}}. No se puede continuar.',
223
- tooManyUnknowns: '¡Demasiadas incógnitas!',
224
- solveSystemInfiniteSolutions: '¡Este sistema no tiene un conjunto finito de soluciones aisladas!',
225
- solveSystemPolynomialOnly: '¡solveSystem actualmente solo admite sistemas lineales o polinómicos!',
226
- solveSystemNonRationalUnsupported: '¡Este sistema polinómico no lineal requiere resolución no racional o no simbólica, lo cual aún no está soportado!',
227
- // Set Function
228
- setJSFunctionExpectsFunction: '¡El parámetro de la función, al configurar una función JS, debe ser de tipo función!',
229
- functionRequiresMinAndMaxArgs: '¡Debes proporcionar los argumentos mínimo y máximo al configurar la función!',
230
- },
231
- fra: {
232
- // General
233
- notImplemented: "Cette méthode n'a pas encore été implémentée.",
234
- noInverse: "Impossible de calculer l'inverse !",
235
- undefinedValue: "La valeur demandée n'est pas définie !",
236
- univariateInputOnly: "L'entrée de cette fonction doit être univariée !",
237
- differentSignsAtEndPointsRequired: 'La fonction doit avoir des signes opposés aux extrémités a et b !',
238
- integerRequired: 'Cette fonction exige que le coefficient soit un entier !',
239
- plainVariableExpected: 'Une variable simple était attendue ! Reçu : {{input}}.',
240
- missingReference: "La référence « {{ref}} » n'existe pas dans ce modèle !",
241
- undefinedDivision: "La division n'est pas définie pour une expression de ce type ! {{type}}",
242
- restrictedVariableName: "Impossible d'affecter la valeur demandée au nom réservé « {{name}} » !",
243
- noVariableInExpression: "Aucune variable n'a été trouvée dans l'expression !",
244
- quadraticExpressionExpected: "L'expression doit être quadratique !",
245
- wrongInput: 'Entrée incorrecte ! {{expected}} était attendu, mais {{received}} a été reçu.',
246
- infinityMinusInfinityUndefined: "Infini moins infini n'est pas défini !",
247
- // Assumptions
248
- inconsistentAssumptions: 'Les hypothèses sont incohérentes (intersection vide) !',
249
- // Parser
250
- unsupportedType: "Le type fourni ({{type}}) n'est pas pris en charge par cette fonction !",
251
- unsupportedOperation: "Cette opération n'est actuellement pas prise en charge !",
252
- buildFunctionUnsupportedFunction: 'buildFunction ne peut pas compiler la fonction « {{function}} » en arithmétique numérique JavaScript !',
253
- buildFunctionComplexUnsupported: "buildFunction ne peut pas compiler les expressions contenant l'unité imaginaire en arithmétique numérique JavaScript !",
254
- nonMatchingDimensions: 'Cette opération ne peut pas être effectuée car les dimensions ne correspondent pas !',
255
- malformedExpression: "Impossible d'analyser l'expression mal formée !",
256
- divisionByZero: "La division par zéro n'est pas définie !",
257
- zeroToZeroPower: "0^0 n'est pas défini !",
258
- infinityToPowerZero: "Infini^0 n'est pas défini !",
259
- infinityTimesZero: "0*Infini n'est pas défini !",
260
- infinityToInfinity: "Infini^Infini n'est pas défini !",
261
- valueToInfinityUndefined: "{{value}}^Infini n'est pas défini !",
262
- atan2Undefined: "atan2 n'est pas définie pour 0, 0 !",
263
- tanUndefined: "tan n'est pas définie pour les multiples de pi/2 !",
264
- loopIterationLimitExceeded: 'La boucle a dépassé le maximum de {{max}} itérations.',
265
- breakOutsideLoop: "break ne peut être utilisé qu'à l'intérieur d'une boucle.",
266
- continueOutsideLoop: "continue ne peut être utilisé qu'à l'intérieur d'une boucle.",
267
- letRequiresBindingsAndBody: 'let exige une ou plusieurs paires nom/valeur suivies d’une expression de corps.',
268
- secUndefined: "sec n'est pas définie pour les multiples impairs de pi/2 !",
269
- cscUndefined: "csc n'est pas définie pour les multiples de pi !",
270
- cotUndefined: "cot n'est pas définie pour les multiples de pi !",
271
- cothUndefined: "coth n'est pas définie pour 0 !",
272
- cschUndefined: "csch n'est pas définie pour 0 !",
273
- atanhUndefined: "atanh n'est pas définie pour 0 !",
274
- cannotCreateArrayFromNaN: 'Impossible de créer un tableau à partir de NaN !',
275
- expressionExpected: 'Une expression était attendue ! Reçu : {{type}} !',
276
- // TeX Converter
277
- unrecognizedMode: '« {{mode}} » n’est pas un mode valide !',
278
- // Polynomials
279
- notAPolynomial: "L'expression n'est pas un polynôme valide !",
280
- multidegreeMismatch: 'Le nombre de variables doit correspondre au multidegré du polynôme !',
281
- unknownVariable: 'Variable inconnue ! « {{variable}} »',
282
- // Matrix
283
- cannotCreateMatrix: 'Impossible de créer la matrice. Les dimensions des lignes ne correspondent pas !',
284
- cannotMultiplyMatrix: 'Impossible de multiplier la matrice !',
285
- squareMatrixRequired: 'La matrice doit être carrée !',
286
- rowsMustMatch: 'Les lignes des matrices doivent correspondre !',
287
- columnsMustMatch: 'Les colonnes des matrices doivent correspondre !',
288
- singularMatrix: 'La matrice fournie est singulière !',
289
- matrixExpected: 'Une matrice était attendue ! Reçu : {{type}}.',
290
- // Vector
291
- mismatchedDimensions: 'Les dimensions doivent correspondre pour la fonction « {{function}} » !',
292
- incorrectCrossDimension: 'Le produit vectoriel est défini uniquement pour les vecteurs de dimension 3 !',
293
- vectorExpected: 'Un vecteur était attendu ! Reçu : {{type}}.',
294
- // Polynomial
295
- univariatePolynomialOnly: 'Cette fonction est prise en charge uniquement pour les polynômes univariés !',
296
- // Solve
297
- convergenceFailed: 'Échec de la convergence ! {{iters}} itérations ont été tentées.',
298
- endPointIsRoot: "Le point d'extrémité est une racine.",
299
- zeroDerivative: 'La dérivée est nulle en x = {{x}}. Impossible de continuer.',
300
- tooManyUnknowns: "Trop d'inconnues !",
301
- solveSystemInfiniteSolutions: "Ce système ne possède pas un ensemble fini de solutions isolées !",
302
- solveSystemPolynomialOnly: 'solveSystem prend actuellement en charge uniquement les systèmes linéaires ou polynomiaux !',
303
- solveSystemNonRationalUnsupported: 'Ce système polynomial non linéaire nécessite une résolution non rationnelle ou non symbolique, qui n’est pas encore prise en charge !',
304
- // Set Function
305
- setJSFunctionExpectsFunction: 'Le paramètre function lors de la définition d’une fonction JS doit être de type function !',
306
- functionRequiresMinAndMaxArgs: 'Vous devez fournir un nombre minimal et maximal d’arguments lors de la définition de la fonction !',
307
- },
308
- deu: {
309
- // General
310
- notImplemented: 'Diese Methode wurde noch nicht implementiert.',
311
- noInverse: 'Die Inverse konnte nicht berechnet werden!',
312
- undefinedValue: 'Der angeforderte Wert ist nicht definiert!',
313
- univariateInputOnly: 'Die Eingabe für diese Funktion muss univariat sein!',
314
- differentSignsAtEndPointsRequired: 'Die Funktion muss an den Endpunkten a und b unterschiedliche Vorzeichen haben!',
315
- integerRequired: 'Für diese Funktion muss der Koeffizient eine ganze Zahl sein!',
316
- plainVariableExpected: 'Eine einfache Variable wurde erwartet! Erhalten: {{input}}.',
317
- missingReference: 'Die Referenz „{{ref}}“ existiert in diesem Muster nicht!',
318
- undefinedDivision: 'Division ist für einen Ausdruck dieses Typs nicht definiert! {{type}}',
319
- restrictedVariableName: 'Der angeforderte Wert kann dem reservierten Namen „{{name}}“ nicht zugewiesen werden!',
320
- noVariableInExpression: 'Im Ausdruck wurde keine Variable gefunden!',
321
- quadraticExpressionExpected: 'Der Ausdruck muss quadratisch sein!',
322
- wrongInput: 'Falsche Eingabe! Erwartet wurde {{expected}}, erhalten wurde {{received}}.',
323
- infinityMinusInfinityUndefined: 'Unendlich minus Unendlich ist nicht definiert!',
324
- // Assumptions
325
- inconsistentAssumptions: 'Die Annahmen sind widersprüchlich (leere Schnittmenge)!',
326
- // Parser
327
- unsupportedType: 'Der angegebene Typ ({{type}}) wird von dieser Funktion nicht unterstützt!',
328
- unsupportedOperation: 'Diese Operation wird derzeit nicht unterstützt!',
329
- buildFunctionUnsupportedFunction: 'buildFunction kann die Funktion „{{function}}“ nicht in JavaScript-Zahlenarithmetik kompilieren!',
330
- buildFunctionComplexUnsupported: 'buildFunction kann Ausdrücke mit der imaginären Einheit nicht in JavaScript-Zahlenarithmetik kompilieren!',
331
- nonMatchingDimensions: 'Diese Operation kann nicht ausgeführt werden, weil die Dimensionen nicht übereinstimmen!',
332
- malformedExpression: 'Der fehlerhafte Ausdruck konnte nicht geparst werden!',
333
- divisionByZero: 'Division durch null ist nicht definiert!',
334
- zeroToZeroPower: '0^0 ist nicht definiert!',
335
- infinityToPowerZero: 'Unendlich^0 ist nicht definiert!',
336
- infinityTimesZero: '0*Unendlich ist nicht definiert!',
337
- infinityToInfinity: 'Unendlich^Unendlich ist nicht definiert!',
338
- valueToInfinityUndefined: '{{value}}^Unendlich ist nicht definiert!',
339
- atan2Undefined: 'atan2 ist für 0, 0 nicht definiert!',
340
- tanUndefined: 'tan ist für Vielfache von pi/2 nicht definiert!',
341
- loopIterationLimitExceeded: 'Die Schleife hat das Maximum von {{max}} Iterationen überschritten.',
342
- breakOutsideLoop: 'break kann nur innerhalb einer Schleife verwendet werden.',
343
- continueOutsideLoop: 'continue kann nur innerhalb einer Schleife verwendet werden.',
344
- letRequiresBindingsAndBody: 'let benötigt ein oder mehrere Name/Wert-Paare, gefolgt von einem Ausdrucksrumpf.',
345
- secUndefined: 'sec ist für ungerade Vielfache von pi/2 nicht definiert!',
346
- cscUndefined: 'csc ist für Vielfache von pi nicht definiert!',
347
- cotUndefined: 'cot ist für Vielfache von pi nicht definiert!',
348
- cothUndefined: 'coth ist für 0 nicht definiert!',
349
- cschUndefined: 'csch ist für 0 nicht definiert!',
350
- atanhUndefined: 'atanh ist für 0 nicht definiert!',
351
- cannotCreateArrayFromNaN: 'Aus NaN kann kein Array erstellt werden!',
352
- expressionExpected: 'Ein Ausdruck wurde erwartet! Erhalten: {{type}}!',
353
- // TeX Converter
354
- unrecognizedMode: '„{{mode}}“ ist kein gültiger Modus!',
355
- // Polynomials
356
- notAPolynomial: 'Der Ausdruck ist kein gültiges Polynom!',
357
- multidegreeMismatch: 'Die Anzahl der Variablen muss mit dem Multigrad des Polynoms übereinstimmen!',
358
- unknownVariable: 'Unbekannte Variable! „{{variable}}“',
359
- // Matrix
360
- cannotCreateMatrix: 'Die Matrix kann nicht erstellt werden. Die Zeilendimensionen stimmen nicht überein!',
361
- cannotMultiplyMatrix: 'Die Matrix kann nicht multipliziert werden!',
362
- squareMatrixRequired: 'Die Matrix muss quadratisch sein!',
363
- rowsMustMatch: 'Die Zeilen der Matrizen müssen übereinstimmen!',
364
- columnsMustMatch: 'Die Spalten der Matrizen müssen übereinstimmen!',
365
- singularMatrix: 'Die angegebene Matrix ist singulär!',
366
- matrixExpected: 'Eine Matrix wurde erwartet! Erhalten: {{type}}.',
367
- // Vector
368
- mismatchedDimensions: 'Die Dimensionen müssen für die Funktion „{{function}}“ übereinstimmen!',
369
- incorrectCrossDimension: 'Das Kreuzprodukt ist nur für Vektoren der Dimension 3 definiert!',
370
- vectorExpected: 'Ein Vektor wurde erwartet! Erhalten: {{type}}.',
371
- // Polynomial
372
- univariatePolynomialOnly: 'Diese Funktion wird nur für univariate Polynome unterstützt!',
373
- // Solve
374
- convergenceFailed: 'Keine Konvergenz! {{iters}} Iterationen wurden versucht.',
375
- endPointIsRoot: 'Der Endpunkt ist eine Nullstelle.',
376
- zeroDerivative: 'Die Ableitung ist bei x = {{x}} null. Fortsetzung nicht möglich.',
377
- tooManyUnknowns: 'Zu viele Unbekannte!',
378
- solveSystemInfiniteSolutions: 'Dieses System besitzt keine endliche Menge isolierter Lösungen!',
379
- solveSystemPolynomialOnly: 'solveSystem unterstützt derzeit nur lineare oder polynomielle Systeme!',
380
- solveSystemNonRationalUnsupported: 'Dieses nichtlineare polynomielle System erfordert eine nicht rationale oder nicht symbolische Lösung, die noch nicht unterstützt wird!',
381
- // Set Function
382
- setJSFunctionExpectsFunction: 'Der Funktionsparameter muss beim Festlegen einer JS-Funktion vom Typ function sein!',
383
- functionRequiresMinAndMaxArgs: 'Beim Festlegen der Funktion müssen minimale und maximale Argumentanzahl angegeben werden!',
384
- },
385
- por: {
386
- // General
387
- notImplemented: 'Este método ainda não foi implementado.',
388
- noInverse: 'Não foi possível calcular a inversa!',
389
- undefinedValue: 'O valor solicitado não está definido!',
390
- univariateInputOnly: 'A entrada desta função deve ser univariada!',
391
- differentSignsAtEndPointsRequired: 'A função deve ter sinais opostos nos pontos extremos a e b!',
392
- integerRequired: 'Esta função exige que o coeficiente seja um número inteiro!',
393
- plainVariableExpected: 'Era esperada uma variável simples! Recebido: {{input}}.',
394
- missingReference: 'A referência "{{ref}}" não existe neste padrão!',
395
- undefinedDivision: 'A divisão não está definida para uma expressão deste tipo! {{type}}',
396
- restrictedVariableName: 'Não é possível atribuir o valor solicitado ao nome reservado "{{name}}"!',
397
- noVariableInExpression: 'Nenhuma variável foi encontrada na expressão!',
398
- quadraticExpressionExpected: 'A expressão deve ser quadrática!',
399
- wrongInput: 'Entrada incorreta! Esperado {{expected}}, mas recebido {{received}}.',
400
- infinityMinusInfinityUndefined: 'Infinito menos infinito não está definido!',
401
- // Assumptions
402
- inconsistentAssumptions: 'As suposições são inconsistentes (interseção vazia)!',
403
- // Parser
404
- unsupportedType: 'O tipo fornecido ({{type}}) não é compatível com esta função!',
405
- unsupportedOperation: 'Esta operação não é suportada atualmente!',
406
- buildFunctionUnsupportedFunction: 'buildFunction não pode compilar a função "{{function}}" para aritmética numérica JavaScript!',
407
- buildFunctionComplexUnsupported: 'buildFunction não pode compilar expressões que contêm a unidade imaginária para aritmética numérica JavaScript!',
408
- nonMatchingDimensions: 'Esta operação não pode ser concluída porque as dimensões não correspondem!',
409
- malformedExpression: 'Não foi possível analisar a expressão malformada!',
410
- divisionByZero: 'A divisão por zero não está definida!',
411
- zeroToZeroPower: '0^0 não está definido!',
412
- infinityToPowerZero: 'Infinito^0 não está definido!',
413
- infinityTimesZero: '0*Infinito não está definido!',
414
- infinityToInfinity: 'Infinito^Infinito não está definido!',
415
- valueToInfinityUndefined: '{{value}}^Infinito não está definido!',
416
- atan2Undefined: 'atan2 não está definida para 0, 0!',
417
- tanUndefined: 'tan não está definida para múltiplos de pi/2!',
418
- loopIterationLimitExceeded: 'O laço excedeu o máximo de {{max}} iterações.',
419
- breakOutsideLoop: 'break só pode ser usado dentro de um laço.',
420
- continueOutsideLoop: 'continue só pode ser usado dentro de um laço.',
421
- letRequiresBindingsAndBody: 'let exige um ou mais pares nome/valor seguidos de uma expressão de corpo.',
422
- secUndefined: 'sec não está definida para múltiplos ímpares de pi/2!',
423
- cscUndefined: 'csc não está definida para múltiplos de pi!',
424
- cotUndefined: 'cot não está definida para múltiplos de pi!',
425
- cothUndefined: 'coth não está definida para 0!',
426
- cschUndefined: 'csch não está definida para 0!',
427
- atanhUndefined: 'atanh não está definida para 0!',
428
- cannotCreateArrayFromNaN: 'Não é possível criar um array a partir de NaN!',
429
- expressionExpected: 'Era esperada uma expressão! Recebido: {{type}}!',
430
- // TeX Converter
431
- unrecognizedMode: '"{{mode}}" não é um modo válido!',
432
- // Polynomials
433
- notAPolynomial: 'A expressão não é um polinômio válido!',
434
- multidegreeMismatch: 'O número de variáveis deve corresponder ao multigrau do polinômio!',
435
- unknownVariable: 'Variável desconhecida! "{{variable}}"',
436
- // Matrix
437
- cannotCreateMatrix: 'Não foi possível criar a matriz. As dimensões das linhas não correspondem!',
438
- cannotMultiplyMatrix: 'Não é possível multiplicar a matriz!',
439
- squareMatrixRequired: 'A matriz deve ser quadrada!',
440
- rowsMustMatch: 'As linhas das matrizes devem corresponder!',
441
- columnsMustMatch: 'As colunas das matrizes devem corresponder!',
442
- singularMatrix: 'A matriz fornecida é singular!',
443
- matrixExpected: 'Era esperada uma matriz! Recebido: {{type}}.',
444
- // Vector
445
- mismatchedDimensions: 'As dimensões devem corresponder para a função "{{function}}"!',
446
- incorrectCrossDimension: 'O produto vetorial só é definido para vetores de dimensão 3!',
447
- vectorExpected: 'Era esperado um vetor! Recebido: {{type}}.',
448
- // Polynomial
449
- univariatePolynomialOnly: 'Esta função é suportada apenas para polinômios univariados!',
450
- // Solve
451
- convergenceFailed: 'Falha na convergência! Foram tentadas {{iters}} iterações.',
452
- endPointIsRoot: 'O ponto extremo é uma raiz.',
453
- zeroDerivative: 'A derivada é zero em x = {{x}}. Não é possível continuar.',
454
- tooManyUnknowns: 'Muitas incógnitas!',
455
- solveSystemInfiniteSolutions: 'Este sistema não possui um conjunto finito de soluções isoladas!',
456
- solveSystemPolynomialOnly: 'solveSystem atualmente suporta apenas sistemas lineares ou polinomiais!',
457
- solveSystemNonRationalUnsupported: 'Este sistema polinomial não linear exige resolução não racional ou não simbólica, que ainda não é suportada!',
458
- // Set Function
459
- setJSFunctionExpectsFunction: 'O parâmetro da função, ao definir uma função JS, deve ser do tipo function!',
460
- functionRequiresMinAndMaxArgs: 'É necessário fornecer os números mínimo e máximo de argumentos ao definir a função!',
461
- },
462
- ita: {
463
- // General
464
- notImplemented: 'Questo metodo non è ancora stato implementato.',
465
- noInverse: 'Impossibile calcolare l’inversa!',
466
- undefinedValue: 'Il valore richiesto non è definito!',
467
- univariateInputOnly: 'L’input di questa funzione deve essere univariato!',
468
- differentSignsAtEndPointsRequired: 'La funzione deve avere segni opposti agli estremi a e b!',
469
- integerRequired: 'Questa funzione richiede che il coefficiente sia un numero intero!',
470
- plainVariableExpected: 'Era attesa una variabile semplice! Ricevuto: {{input}}.',
471
- missingReference: 'Il riferimento "{{ref}}" non esiste in questo modello!',
472
- undefinedDivision: 'La divisione non è definita per un’espressione di questo tipo! {{type}}',
473
- restrictedVariableName: 'Impossibile assegnare il valore richiesto al nome riservato "{{name}}"!',
474
- noVariableInExpression: 'Nessuna variabile trovata nell’espressione!',
475
- quadraticExpressionExpected: 'L’espressione deve essere quadratica!',
476
- wrongInput: 'Input errato! Atteso {{expected}}, ricevuto {{received}}.',
477
- infinityMinusInfinityUndefined: 'Infinito meno infinito non è definito!',
478
- // Assumptions
479
- inconsistentAssumptions: 'Le ipotesi sono incoerenti (intersezione vuota)!',
480
- // Parser
481
- unsupportedType: 'Il tipo fornito ({{type}}) non è supportato da questa funzione!',
482
- unsupportedOperation: 'Questa operazione non è attualmente supportata!',
483
- buildFunctionUnsupportedFunction: 'buildFunction non può compilare la funzione "{{function}}" nell’aritmetica numerica JavaScript!',
484
- buildFunctionComplexUnsupported: 'buildFunction non può compilare espressioni contenenti l’unità immaginaria nell’aritmetica numerica JavaScript!',
485
- nonMatchingDimensions: 'Questa operazione non può essere completata perché le dimensioni non corrispondono!',
486
- malformedExpression: 'Impossibile analizzare l’espressione non valida!',
487
- divisionByZero: 'La divisione per zero non è definita!',
488
- zeroToZeroPower: '0^0 non è definito!',
489
- infinityToPowerZero: 'Infinito^0 non è definito!',
490
- infinityTimesZero: '0*Infinito non è definito!',
491
- infinityToInfinity: 'Infinito^Infinito non è definito!',
492
- valueToInfinityUndefined: '{{value}}^Infinito non è definito!',
493
- atan2Undefined: 'atan2 non è definita per 0, 0!',
494
- tanUndefined: 'tan non è definita per multipli di pi/2!',
495
- loopIterationLimitExceeded: 'Il ciclo ha superato il massimo di {{max}} iterazioni.',
496
- breakOutsideLoop: 'break può essere usato solo all’interno di un ciclo.',
497
- continueOutsideLoop: 'continue può essere usato solo all’interno di un ciclo.',
498
- letRequiresBindingsAndBody: 'let richiede una o più coppie nome/valore seguite da un’espressione corpo.',
499
- secUndefined: 'sec non è definita per multipli dispari di pi/2!',
500
- cscUndefined: 'csc non è definita per multipli di pi!',
501
- cotUndefined: 'cot non è definita per multipli di pi!',
502
- cothUndefined: 'coth non è definita per 0!',
503
- cschUndefined: 'csch non è definita per 0!',
504
- atanhUndefined: 'atanh non è definita per 0!',
505
- cannotCreateArrayFromNaN: 'Impossibile creare un array da NaN!',
506
- expressionExpected: 'Era attesa un’espressione! Ricevuto: {{type}}!',
507
- // TeX Converter
508
- unrecognizedMode: '"{{mode}}" non è una modalità valida!',
509
- // Polynomials
510
- notAPolynomial: 'L’espressione non è un polinomio valido!',
511
- multidegreeMismatch: 'Il numero di variabili deve corrispondere al multigrado del polinomio!',
512
- unknownVariable: 'Variabile sconosciuta! "{{variable}}"',
513
- // Matrix
514
- cannotCreateMatrix: 'Impossibile creare la matrice. Le dimensioni delle righe non corrispondono!',
515
- cannotMultiplyMatrix: 'Impossibile moltiplicare la matrice!',
516
- squareMatrixRequired: 'La matrice deve essere quadrata!',
517
- rowsMustMatch: 'Le righe delle matrici devono corrispondere!',
518
- columnsMustMatch: 'Le colonne delle matrici devono corrispondere!',
519
- singularMatrix: 'La matrice fornita è singolare!',
520
- matrixExpected: 'Era attesa una matrice! Ricevuto: {{type}}.',
521
- // Vector
522
- mismatchedDimensions: 'Le dimensioni devono corrispondere per la funzione "{{function}}"!',
523
- incorrectCrossDimension: 'Il prodotto vettoriale è definito solo per vettori di dimensione 3!',
524
- vectorExpected: 'Era atteso un vettore! Ricevuto: {{type}}.',
525
- // Polynomial
526
- univariatePolynomialOnly: 'Questa funzione è supportata solo per polinomi univariati!',
527
- // Solve
528
- convergenceFailed: 'Convergenza non riuscita! Sono state tentate {{iters}} iterazioni.',
529
- endPointIsRoot: 'Il punto estremo è una radice.',
530
- zeroDerivative: 'La derivata è zero in x = {{x}}. Impossibile continuare.',
531
- tooManyUnknowns: 'Troppe incognite!',
532
- solveSystemInfiniteSolutions: 'Questo sistema non ha un insieme finito di soluzioni isolate!',
533
- solveSystemPolynomialOnly: 'solveSystem attualmente supporta solo sistemi lineari o polinomiali!',
534
- solveSystemNonRationalUnsupported: 'Questo sistema polinomiale non lineare richiede una risoluzione non razionale o non simbolica, che non è ancora supportata!',
535
- // Set Function
536
- setJSFunctionExpectsFunction: 'Il parametro della funzione, quando si imposta una funzione JS, deve essere di tipo function!',
537
- functionRequiresMinAndMaxArgs: 'È necessario fornire il numero minimo e massimo di argomenti quando si imposta la funzione!',
538
- },
539
- nld: {
540
- // General
541
- notImplemented: 'Deze methode is nog niet geïmplementeerd.',
542
- noInverse: 'Kan de inverse niet berekenen!',
543
- undefinedValue: 'De gevraagde waarde is niet gedefinieerd!',
544
- univariateInputOnly: 'De invoer voor deze functie moet univariaat zijn!',
545
- differentSignsAtEndPointsRequired: 'De functie moet tegengestelde tekens hebben bij de eindpunten a en b!',
546
- integerRequired: 'Deze functie vereist dat de coëfficiënt een geheel getal is!',
547
- plainVariableExpected: 'Er werd een eenvoudige variabele verwacht! Ontvangen: {{input}}.',
548
- missingReference: 'De verwijzing "{{ref}}" bestaat niet in dit patroon!',
549
- undefinedDivision: 'Deling is niet gedefinieerd voor een uitdrukking van dit type! {{type}}',
550
- restrictedVariableName: 'Kan de gevraagde waarde niet toewijzen aan de gereserveerde naam "{{name}}"!',
551
- noVariableInExpression: 'Geen variabele gevonden in de uitdrukking!',
552
- quadraticExpressionExpected: 'De uitdrukking moet kwadratisch zijn!',
553
- wrongInput: 'Onjuiste invoer! Verwacht: {{expected}}, ontvangen: {{received}}.',
554
- infinityMinusInfinityUndefined: 'Oneindig min oneindig is niet gedefinieerd!',
555
- // Assumptions
556
- inconsistentAssumptions: 'De aannames zijn inconsistent (lege doorsnede)!',
557
- // Parser
558
- unsupportedType: 'Het opgegeven type ({{type}}) wordt niet ondersteund voor deze functie!',
559
- unsupportedOperation: 'Deze bewerking wordt momenteel niet ondersteund!',
560
- buildFunctionUnsupportedFunction: 'buildFunction kan de functie "{{function}}" niet compileren naar JavaScript-rekenkunde met getallen!',
561
- buildFunctionComplexUnsupported: 'buildFunction kan uitdrukkingen met de imaginaire eenheid niet compileren naar JavaScript-rekenkunde met getallen!',
562
- nonMatchingDimensions: 'Deze bewerking kan niet worden voltooid omdat de dimensies niet overeenkomen!',
563
- malformedExpression: 'Kan de onjuist gevormde uitdrukking niet parseren!',
564
- divisionByZero: 'Delen door nul is niet gedefinieerd!',
565
- zeroToZeroPower: '0^0 is niet gedefinieerd!',
566
- infinityToPowerZero: 'Oneindig^0 is niet gedefinieerd!',
567
- infinityTimesZero: '0*Oneindig is niet gedefinieerd!',
568
- infinityToInfinity: 'Oneindig^Oneindig is niet gedefinieerd!',
569
- valueToInfinityUndefined: '{{value}}^Oneindig is niet gedefinieerd!',
570
- atan2Undefined: 'atan2 is niet gedefinieerd voor 0, 0!',
571
- tanUndefined: 'tan is niet gedefinieerd voor veelvouden van pi/2!',
572
- loopIterationLimitExceeded: 'De lus heeft het maximum van {{max}} iteraties overschreden.',
573
- breakOutsideLoop: 'break kan alleen binnen een lus worden gebruikt.',
574
- continueOutsideLoop: 'continue kan alleen binnen een lus worden gebruikt.',
575
- letRequiresBindingsAndBody: 'let vereist een of meer naam/waarde-paren gevolgd door een hoofdexpressie.',
576
- secUndefined: 'sec is niet gedefinieerd voor oneven veelvouden van pi/2!',
577
- cscUndefined: 'csc is niet gedefinieerd voor veelvouden van pi!',
578
- cotUndefined: 'cot is niet gedefinieerd voor veelvouden van pi!',
579
- cothUndefined: 'coth is niet gedefinieerd voor 0!',
580
- cschUndefined: 'csch is niet gedefinieerd voor 0!',
581
- atanhUndefined: 'atanh is niet gedefinieerd voor 0!',
582
- cannotCreateArrayFromNaN: 'Kan geen array maken van NaN!',
583
- expressionExpected: 'Er werd een uitdrukking verwacht! Ontvangen: {{type}}!',
584
- // TeX Converter
585
- unrecognizedMode: '"{{mode}}" is geen geldige modus!',
586
- // Polynomials
587
- notAPolynomial: 'De uitdrukking is geen geldig polynoom!',
588
- multidegreeMismatch: 'Het aantal variabelen moet overeenkomen met de multigraad van het polynoom!',
589
- unknownVariable: 'Onbekende variabele! "{{variable}}"',
590
- // Matrix
591
- cannotCreateMatrix: 'Kan de matrix niet maken. De rijafmetingen komen niet overeen!',
592
- cannotMultiplyMatrix: 'Kan de matrix niet vermenigvuldigen!',
593
- squareMatrixRequired: 'De matrix moet vierkant zijn!',
594
- rowsMustMatch: 'De rijen van de matrices moeten overeenkomen!',
595
- columnsMustMatch: 'De kolommen van de matrices moeten overeenkomen!',
596
- singularMatrix: 'De opgegeven matrix is singulier!',
597
- matrixExpected: 'Er werd een matrix verwacht! Ontvangen: {{type}}.',
598
- // Vector
599
- mismatchedDimensions: 'De dimensies moeten overeenkomen voor de functie "{{function}}"!',
600
- incorrectCrossDimension: 'Het kruisproduct is alleen gedefinieerd voor vectoren met dimensie 3!',
601
- vectorExpected: 'Er werd een vector verwacht! Ontvangen: {{type}}.',
602
- // Polynomial
603
- univariatePolynomialOnly: 'Deze functie wordt alleen ondersteund voor univariate polynomen!',
604
- // Solve
605
- convergenceFailed: 'Convergentie mislukt! Er zijn {{iters}} iteraties geprobeerd.',
606
- endPointIsRoot: 'Het eindpunt is een wortel.',
607
- zeroDerivative: 'De afgeleide is nul bij x = {{x}}. Kan niet doorgaan.',
608
- tooManyUnknowns: 'Te veel onbekenden!',
609
- solveSystemInfiniteSolutions: 'Dit stelsel heeft geen eindige verzameling geïsoleerde oplossingen!',
610
- solveSystemPolynomialOnly: 'solveSystem ondersteunt momenteel alleen lineaire of polynomiale stelsels!',
611
- solveSystemNonRationalUnsupported: 'Dit niet-lineaire polynomiale stelsel vereist een niet-rationele of niet-symbolische oplossing, die nog niet wordt ondersteund!',
612
- // Set Function
613
- setJSFunctionExpectsFunction: 'De functieparameter moet bij het instellen van een JS-functie van het type function zijn!',
614
- functionRequiresMinAndMaxArgs: 'U moet het minimale en maximale aantal argumenten opgeven bij het instellen van de functie!',
615
- },
339
+ eng: exports.EnglishErrorMessages,
616
340
  };
341
+ /** Registers one optional localized message catalog. */
342
+ function registerLanguage(language, catalog) {
343
+ exports.ErrorMessages[language] = catalog;
344
+ }
617
345
  /** Formats an internal localized error message with named template values. */
618
346
  function message(e, values) {
619
- const error = exports.ErrorMessages[Settings_1.Settings.LANGUAGE][e];
620
- return (0, string_1.format)(error, values || {});
347
+ const catalog = exports.ErrorMessages[Settings_1.Settings.LANGUAGE] ?? exports.ErrorMessages.eng;
348
+ return (0, string_1.format)(catalog[e], values || {});
621
349
  }