nerdamer 1.1.13 → 2.0.0-rc.2
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.
- package/BREAKING_CHANGES.md +244 -5
- package/LICENSE.md +184 -0
- package/README.md +232 -318
- package/dist/bundle.js +2 -0
- package/dist/bundle.js.LICENSE.txt +7 -0
- package/dist/parser.js +2 -0
- package/dist/parser.js.LICENSE.txt +7 -0
- package/docs-data/parser-functions.json +2248 -0
- package/index.d.ts +10 -426
- package/output/algebra/adapters.d.ts +3 -0
- package/output/algebra/adapters.js +11 -0
- package/output/algebra/algorithms/arith.d.ts +84 -0
- package/output/algebra/algorithms/arith.js +324 -0
- package/output/algebra/algorithms/groebnerBase.d.ts +161 -0
- package/output/algebra/algorithms/groebnerBase.js +929 -0
- package/output/algebra/dispatch.d.ts +1 -0
- package/output/algebra/dispatch.js +25 -0
- package/output/algebra/factor/factor.d.ts +77 -0
- package/output/algebra/factor/factor.js +245 -0
- package/output/algebra/gcd/gcd.d.ts +30 -0
- package/output/algebra/gcd/gcd.js +95 -0
- package/output/algebra/groebner.d.ts +21 -0
- package/output/algebra/groebner.js +36 -0
- package/output/algebra/partfrac.d.ts +19 -0
- package/output/algebra/partfrac.js +365 -0
- package/output/algebra/polynomial/ModularSparsePolynomial.d.ts +131 -0
- package/output/algebra/polynomial/ModularSparsePolynomial.js +378 -0
- package/output/algebra/polynomial/ModularSparsePolynomialFactor.d.ts +40 -0
- package/output/algebra/polynomial/ModularSparsePolynomialFactor.js +661 -0
- package/output/algebra/polynomial/SparsePolynomialFactor.d.ts +64 -0
- package/output/algebra/polynomial/SparsePolynomialFactor.js +492 -0
- package/output/algebra/polynomial/SparsePolynomialGcd.d.ts +29 -0
- package/output/algebra/polynomial/SparsePolynomialGcd.js +259 -0
- package/output/algebra/polynomial/SparsePolynomialMultivariateFactor.d.ts +82 -0
- package/output/algebra/polynomial/SparsePolynomialMultivariateFactor.js +604 -0
- package/output/algebra/polynomial/modularGcd.d.ts +40 -0
- package/output/algebra/polynomial/modularGcd.js +365 -0
- package/output/algebra/polynomialize.d.ts +20 -0
- package/output/algebra/polynomialize.js +26 -0
- package/output/algebra/simplify/complexsimp.d.ts +7 -0
- package/output/algebra/simplify/complexsimp.js +24 -0
- package/output/algebra/simplify/factorCommon.d.ts +13 -0
- package/output/algebra/simplify/factorCommon.js +136 -0
- package/output/algebra/simplify/funcsimp.d.ts +26 -0
- package/output/algebra/simplify/funcsimp.js +633 -0
- package/output/algebra/simplify/invtrigrewrite.d.ts +10 -0
- package/output/algebra/simplify/invtrigrewrite.js +96 -0
- package/output/algebra/simplify/ratsimp.d.ts +21 -0
- package/output/algebra/simplify/ratsimp.js +140 -0
- package/output/algebra/simplify/simplify.d.ts +25 -0
- package/output/algebra/simplify/simplify.js +237 -0
- package/output/algebra/simplify/trigreduce.d.ts +38 -0
- package/output/algebra/simplify/trigreduce.js +424 -0
- package/output/algebra/simplify/trigrewrite.d.ts +17 -0
- package/output/algebra/simplify/trigrewrite.js +156 -0
- package/output/algebra/simplify/trigsimp.d.ts +11 -0
- package/output/algebra/simplify/trigsimp.js +369 -0
- package/output/algebra/simplify/utils.d.ts +32 -0
- package/output/algebra/simplify/utils.js +56 -0
- package/output/algebra/utils.d.ts +32 -0
- package/output/algebra/utils.js +48 -0
- package/output/api/advanced.d.ts +8 -0
- package/output/api/advanced.js +18 -0
- package/output/api/algebra.d.ts +17 -0
- package/output/api/algebra.js +35 -0
- package/output/api/assumptions.d.ts +4 -0
- package/output/api/assumptions.js +11 -0
- package/output/api/calculus.d.ts +10 -0
- package/output/api/calculus.js +22 -0
- package/output/api/core.d.ts +17 -0
- package/output/api/core.js +41 -0
- package/output/api/debug.d.ts +16 -0
- package/output/api/debug.js +23 -0
- package/output/api/languages/deu.d.ts +3 -0
- package/output/api/languages/deu.js +266 -0
- package/output/api/languages/fra.d.ts +3 -0
- package/output/api/languages/fra.js +266 -0
- package/output/api/languages/ita.d.ts +3 -0
- package/output/api/languages/ita.js +266 -0
- package/output/api/languages/nld.d.ts +3 -0
- package/output/api/languages/nld.js +266 -0
- package/output/api/languages/por.d.ts +3 -0
- package/output/api/languages/por.js +266 -0
- package/output/api/languages/spa.d.ts +3 -0
- package/output/api/languages/spa.js +266 -0
- package/output/api/parser.d.ts +93 -0
- package/output/api/parser.js +18 -0
- package/output/api/solve.d.ts +10 -0
- package/output/api/solve.js +17 -0
- package/output/api/structures.d.ts +10 -0
- package/output/api/structures.js +23 -0
- package/output/calculus/adapters.d.ts +8 -0
- package/output/calculus/adapters.js +41 -0
- package/output/calculus/derivative/diff.d.ts +30 -0
- package/output/calculus/derivative/diff.js +241 -0
- package/output/calculus/dispatch.d.ts +1 -0
- package/output/calculus/dispatch.js +25 -0
- package/output/calculus/fresnel.d.ts +16 -0
- package/output/calculus/fresnel.js +39 -0
- package/output/calculus/integrate/byParts.d.ts +18 -0
- package/output/calculus/integrate/byParts.js +339 -0
- package/output/calculus/integrate/bySubstitution.d.ts +135 -0
- package/output/calculus/integrate/bySubstitution.js +411 -0
- package/output/calculus/integrate/integrate.d.ts +38 -0
- package/output/calculus/integrate/integrate.js +652 -0
- package/output/calculus/integrate/integrationTable.d.ts +2 -0
- package/output/calculus/integrate/integrationTable.js +914 -0
- package/output/calculus/integrate/utils.d.ts +28 -0
- package/output/calculus/integrate/utils.js +96 -0
- package/output/calculus/laplace/ilaplace.d.ts +31 -0
- package/output/calculus/laplace/ilaplace.js +192 -0
- package/output/calculus/laplace/ilaplaceTable.d.ts +2 -0
- package/output/calculus/laplace/ilaplaceTable.js +200 -0
- package/output/calculus/laplace/laplace.d.ts +22 -0
- package/output/calculus/laplace/laplace.js +109 -0
- package/output/calculus/laplace/laplaceTable.d.ts +2 -0
- package/output/calculus/laplace/laplaceTable.js +187 -0
- package/output/calculus/limit/limit.d.ts +35 -0
- package/output/calculus/limit/limit.js +1183 -0
- package/output/calculus/limit/limitsTable.d.ts +2 -0
- package/output/calculus/limit/limitsTable.js +7 -0
- package/output/core/Settings.d.ts +32 -0
- package/output/core/Settings.js +68 -0
- package/output/core/classes/assumption/Assumption.d.ts +218 -0
- package/output/core/classes/assumption/Assumption.js +609 -0
- package/output/core/classes/assumption/assertiveFunctions.d.ts +6 -0
- package/output/core/classes/assumption/assertiveFunctions.js +64 -0
- package/output/core/classes/assumption/assume.d.ts +90 -0
- package/output/core/classes/assumption/assume.js +145 -0
- package/output/core/classes/assumption/dispatch.d.ts +1 -0
- package/output/core/classes/assumption/dispatch.js +11 -0
- package/output/core/classes/collection/Collection.d.ts +107 -0
- package/output/core/classes/collection/Collection.js +240 -0
- package/output/core/classes/complex/Complex.d.ts +109 -0
- package/output/core/classes/complex/Complex.js +153 -0
- package/output/core/classes/decimalSet/DecimalSet.d.ts +226 -0
- package/output/core/classes/decimalSet/DecimalSet.js +454 -0
- package/output/core/classes/dictionary/Dictionary.d.ts +102 -0
- package/output/core/classes/dictionary/Dictionary.js +216 -0
- package/output/core/classes/equation/Equation.d.ts +256 -0
- package/output/core/classes/equation/Equation.js +350 -0
- package/output/core/classes/expression/CoeffObject.d.ts +100 -0
- package/output/core/classes/expression/CoeffObject.js +197 -0
- package/output/core/classes/expression/Expression.d.ts +1691 -0
- package/output/core/classes/expression/Expression.js +2381 -0
- package/output/core/classes/expression/analysis.d.ts +25 -0
- package/output/core/classes/expression/analysis.js +218 -0
- package/output/core/classes/expression/collect.d.ts +9 -0
- package/output/core/classes/expression/collect.js +49 -0
- package/output/core/classes/expression/format.d.ts +54 -0
- package/output/core/classes/expression/format.js +340 -0
- package/output/core/classes/expression/products.d.ts +23 -0
- package/output/core/classes/expression/products.js +115 -0
- package/output/core/classes/expression/shortcuts.d.ts +35 -0
- package/output/core/classes/expression/shortcuts.js +129 -0
- package/output/core/classes/expression/traversal.d.ts +31 -0
- package/output/core/classes/expression/traversal.js +216 -0
- package/output/core/classes/expression/trig.d.ts +25 -0
- package/output/core/classes/expression/trig.js +40 -0
- package/output/core/classes/expression/utils.d.ts +61 -0
- package/output/core/classes/expression/utils.js +235 -0
- package/output/core/classes/lookupTable/LookupTable.d.ts +12 -0
- package/output/core/classes/lookupTable/LookupTable.js +55 -0
- package/output/core/classes/matrix/Matrix.d.ts +227 -0
- package/output/core/classes/matrix/Matrix.js +901 -0
- package/output/core/classes/matrix/Sylvester.d.ts +11 -0
- package/output/core/classes/matrix/Sylvester.js +54 -0
- package/output/core/classes/matrix/dispatch.d.ts +1 -0
- package/output/core/classes/matrix/dispatch.js +19 -0
- package/output/core/classes/matrix/functions.d.ts +28 -0
- package/output/core/classes/matrix/functions.js +57 -0
- package/output/core/classes/matrix/utils.d.ts +9 -0
- package/output/core/classes/matrix/utils.js +22 -0
- package/output/core/classes/parser/Parser.d.ts +493 -0
- package/output/core/classes/parser/Parser.js +1863 -0
- package/output/core/classes/parser/Token.d.ts +58 -0
- package/output/core/classes/parser/Token.js +137 -0
- package/output/core/classes/parser/constants.d.ts +162 -0
- package/output/core/classes/parser/constants.js +229 -0
- package/output/core/classes/parser/controlFlowSignals.d.ts +38 -0
- package/output/core/classes/parser/controlFlowSignals.js +60 -0
- package/output/core/classes/parser/helpers.d.ts +21 -0
- package/output/core/classes/parser/helpers.js +42 -0
- package/output/core/classes/parser/operations/add.d.ts +15 -0
- package/output/core/classes/parser/operations/add.js +236 -0
- package/output/core/classes/parser/operations/comma.d.ts +7 -0
- package/output/core/classes/parser/operations/comma.js +11 -0
- package/output/core/classes/parser/operations/compare.d.ts +21 -0
- package/output/core/classes/parser/operations/compare.js +474 -0
- package/output/core/classes/parser/operations/divide.d.ts +2 -0
- package/output/core/classes/parser/operations/divide.js +72 -0
- package/output/core/classes/parser/operations/functions.d.ts +46 -0
- package/output/core/classes/parser/operations/functions.js +438 -0
- package/output/core/classes/parser/operations/multiply.d.ts +11 -0
- package/output/core/classes/parser/operations/multiply.js +328 -0
- package/output/core/classes/parser/operations/power.d.ts +48 -0
- package/output/core/classes/parser/operations/power.js +673 -0
- package/output/core/classes/parser/operations/subtract.d.ts +3 -0
- package/output/core/classes/parser/operations/subtract.js +36 -0
- package/output/core/classes/parser/preprocess.d.ts +7 -0
- package/output/core/classes/parser/preprocess.js +246 -0
- package/output/core/classes/parser/scripting/controlFlow.d.ts +23 -0
- package/output/core/classes/parser/scripting/controlFlow.js +279 -0
- package/output/core/classes/parser/scripting/deferred.d.ts +4 -0
- package/output/core/classes/parser/scripting/deferred.js +65 -0
- package/output/core/classes/parser/scripting/dispatch.d.ts +1 -0
- package/output/core/classes/parser/scripting/dispatch.js +62 -0
- package/output/core/classes/parser/scripting/evaluate.d.ts +23 -0
- package/output/core/classes/parser/scripting/evaluate.js +128 -0
- package/output/core/classes/parser/scripting/functions.d.ts +14 -0
- package/output/core/classes/parser/scripting/functions.js +59 -0
- package/output/core/classes/parser/scripting/scope.d.ts +8 -0
- package/output/core/classes/parser/scripting/scope.js +132 -0
- package/output/core/classes/parser/types.d.ts +130 -0
- package/output/core/classes/parser/types.js +2 -0
- package/output/core/classes/parser/wrappers/IndexedReference.d.ts +31 -0
- package/output/core/classes/parser/wrappers/IndexedReference.js +68 -0
- package/output/core/classes/parser/wrappers/KeyValuePair.d.ts +24 -0
- package/output/core/classes/parser/wrappers/KeyValuePair.js +51 -0
- package/output/core/classes/polynomial/Polynomial.d.ts +504 -0
- package/output/core/classes/polynomial/Polynomial.js +1195 -0
- package/output/core/classes/polynomial/SparsePolynomial.d.ts +221 -0
- package/output/core/classes/polynomial/SparsePolynomial.js +824 -0
- package/output/core/classes/polynomial/SparsePolynomialAdapter.d.ts +56 -0
- package/output/core/classes/polynomial/SparsePolynomialAdapter.js +241 -0
- package/output/core/classes/polynomial/Term.d.ts +222 -0
- package/output/core/classes/polynomial/Term.js +430 -0
- package/output/core/classes/polynomial/adapters.d.ts +18 -0
- package/output/core/classes/polynomial/adapters.js +33 -0
- package/output/core/classes/polynomial/dispatch.d.ts +1 -0
- package/output/core/classes/polynomial/dispatch.js +14 -0
- package/output/core/classes/polynomial/functions.d.ts +77 -0
- package/output/core/classes/polynomial/functions.js +189 -0
- package/output/core/classes/polynomial/utils.d.ts +62 -0
- package/output/core/classes/polynomial/utils.js +207 -0
- package/output/core/classes/rational/Rational.d.ts +501 -0
- package/output/core/classes/rational/Rational.js +829 -0
- package/output/core/classes/seq/SEQ.d.ts +13 -0
- package/output/core/classes/seq/SEQ.js +137 -0
- package/output/core/classes/valuesSet/ValuesSet.d.ts +187 -0
- package/output/core/classes/valuesSet/ValuesSet.js +399 -0
- package/output/core/classes/vector/Vector.d.ts +222 -0
- package/output/core/classes/vector/Vector.js +501 -0
- package/output/core/classes/vector/dispatch.d.ts +1 -0
- package/output/core/classes/vector/dispatch.js +11 -0
- package/output/core/classes/vector/functions.d.ts +28 -0
- package/output/core/classes/vector/functions.js +47 -0
- package/output/core/common/classes/MathematicalAggregate.d.ts +53 -0
- package/output/core/common/classes/MathematicalAggregate.js +149 -0
- package/output/core/common/classes/Scope.d.ts +62 -0
- package/output/core/common/classes/Scope.js +122 -0
- package/output/core/common/classes/StructuredEntity.d.ts +55 -0
- package/output/core/common/classes/StructuredEntity.js +151 -0
- package/output/core/common/common.d.ts +62 -0
- package/output/core/common/common.js +74 -0
- package/output/core/common/functions/functions.d.ts +14 -0
- package/output/core/common/functions/functions.js +33 -0
- package/output/core/common/functions/structuredEntityUtils.d.ts +27 -0
- package/output/core/common/functions/structuredEntityUtils.js +40 -0
- package/output/core/converters/BaseConverter.d.ts +97 -0
- package/output/core/converters/BaseConverter.js +405 -0
- package/output/core/converters/Converter.d.ts +111 -0
- package/output/core/converters/Converter.js +806 -0
- package/output/core/converters/Pattern.d.ts +71 -0
- package/output/core/converters/Pattern.js +302 -0
- package/output/core/dispatch.d.ts +52 -0
- package/output/core/dispatch.js +26 -0
- package/output/core/errors.d.ts +316 -0
- package/output/core/errors.js +349 -0
- package/output/core/fullFunctions.d.ts +7 -0
- package/output/core/fullFunctions.js +31 -0
- package/output/core/functions/bigint/bigint.d.ts +133 -0
- package/output/core/functions/bigint/bigint.js +444 -0
- package/output/core/functions/bigint/primeFactor.d.ts +51 -0
- package/output/core/functions/bigint/primeFactor.js +267 -0
- package/output/core/functions/bigint/primes.d.ts +1 -0
- package/output/core/functions/bigint/primes.js +11 -0
- package/output/core/functions/build/definitions.d.ts +12 -0
- package/output/core/functions/build/definitions.js +139 -0
- package/output/core/functions/build/index.d.ts +32 -0
- package/output/core/functions/build/index.js +136 -0
- package/output/core/functions/complex.d.ts +90 -0
- package/output/core/functions/complex.dispatch.d.ts +1 -0
- package/output/core/functions/complex.dispatch.js +16 -0
- package/output/core/functions/complex.js +482 -0
- package/output/core/functions/decimal.d.ts +24 -0
- package/output/core/functions/decimal.js +665 -0
- package/output/core/functions/expand/expand.d.ts +42 -0
- package/output/core/functions/expand/expand.js +376 -0
- package/output/core/functions/fresnelNumeric.d.ts +12 -0
- package/output/core/functions/fresnelNumeric.js +123 -0
- package/output/core/functions/numeric.d.ts +140 -0
- package/output/core/functions/numeric.js +790 -0
- package/output/core/functions/rationalNormalization.d.ts +11 -0
- package/output/core/functions/rationalNormalization.js +117 -0
- package/output/core/functions/setFunction.d.ts +19 -0
- package/output/core/functions/setFunction.js +75 -0
- package/output/core/functions/string.d.ts +26 -0
- package/output/core/functions/string.js +102 -0
- package/output/core/functions/subst.d.ts +90 -0
- package/output/core/functions/subst.js +506 -0
- package/output/core/functions/utils.d.ts +24 -0
- package/output/core/functions/utils.js +51 -0
- package/output/core/parserFunctions.d.ts +7 -0
- package/output/core/parserFunctions.js +25 -0
- package/output/core/types.d.ts +48 -0
- package/output/core/types.js +2 -0
- package/output/index.d.ts +359 -0
- package/output/index.js +739 -0
- package/output/math/defint/defint.d.ts +18 -0
- package/output/math/defint/defint.js +60 -0
- package/output/math/defint/defintDecimal.d.ts +37 -0
- package/output/math/defint/defintDecimal.js +321 -0
- package/output/math/defint/defintNative.d.ts +57 -0
- package/output/math/defint/defintNative.js +281 -0
- package/output/math/dispatch.d.ts +1 -0
- package/output/math/dispatch.js +101 -0
- package/output/math/geometry.d.ts +12 -0
- package/output/math/geometry.js +55 -0
- package/output/math/math.d.ts +695 -0
- package/output/math/math.js +1955 -0
- package/output/math/trig.d.ts +518 -0
- package/output/math/trig.js +1444 -0
- package/output/math/trunc.d.ts +19 -0
- package/output/math/trunc.js +36 -0
- package/output/math/utils.d.ts +66 -0
- package/output/math/utils.js +219 -0
- package/output/solve/classes/DecimalMatrix.d.ts +17 -0
- package/output/solve/classes/DecimalMatrix.js +86 -0
- package/output/solve/classes/FunctionSolver.d.ts +135 -0
- package/output/solve/classes/FunctionSolver.js +433 -0
- package/output/solve/classes/MultivariateSolver.d.ts +84 -0
- package/output/solve/classes/MultivariateSolver.js +240 -0
- package/output/solve/classes/PolynomialSolver.d.ts +104 -0
- package/output/solve/classes/PolynomialSolver.js +492 -0
- package/output/solve/classes/SolutionSet.d.ts +172 -0
- package/output/solve/classes/SolutionSet.js +434 -0
- package/output/solve/classes/Solver.d.ts +17 -0
- package/output/solve/classes/Solver.js +132 -0
- package/output/solve/classes/SymbolicSolver.d.ts +74 -0
- package/output/solve/classes/SymbolicSolver.js +601 -0
- package/output/solve/dispatch.d.ts +1 -0
- package/output/solve/dispatch.js +13 -0
- package/output/solve/linsolve.d.ts +53 -0
- package/output/solve/linsolve.js +233 -0
- package/output/solve/solve.d.ts +44 -0
- package/output/solve/solve.js +368 -0
- package/output/solve/solveSystem.d.ts +31 -0
- package/output/solve/solveSystem.js +266 -0
- package/output/solve/utils.d.ts +10 -0
- package/output/solve/utils.js +58 -0
- package/output/utils/array.d.ts +42 -0
- package/output/utils/array.js +98 -0
- package/output/utils/debug.d.ts +131 -0
- package/output/utils/debug.js +296 -0
- package/output/utils/decimal.d.ts +3 -0
- package/output/utils/decimal.js +16 -0
- package/output/utils/numeric.d.ts +14 -0
- package/output/utils/numeric.js +51 -0
- package/output/utils/object.d.ts +26 -0
- package/output/utils/object.js +56 -0
- package/package.json +178 -57
- package/.travis.yml +0 -3
- package/Algebra.js +0 -4568
- package/CODE_OF_CONDUCT.md +0 -46
- package/CONTRIBUTING.md +0 -14
- package/Calculus.js +0 -2675
- package/Extra.js +0 -622
- package/Solve.js +0 -1783
- package/all.js +0 -16
- package/all.min.js +0 -1
- package/gulpfile.js +0 -16
- package/index.html +0 -158
- package/license.txt +0 -19
- package/nerdamer.core.js +0 -12510
- package/spec/LaTeX.spec.js +0 -302
- package/spec/TeXConvert.spec.js +0 -8
- package/spec/algebra.spec.js +0 -287
- package/spec/basic_parser.spec.js +0 -134
- package/spec/build.spec.js +0 -131
- package/spec/calculus.spec.js +0 -183
- package/spec/core.spec.js +0 -2970
- package/spec/extra.spec.js +0 -54
- package/spec/solve.spec.js +0 -126
- package/spec/support/jasmine.json +0 -11
- package/spec/support/utils.js +0 -42
- package/spec/text.spec.js +0 -132
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const errors_1 = require("../../core/errors");
|
|
4
|
+
const Settings_1 = require("../../core/Settings");
|
|
5
|
+
const catalog = {
|
|
6
|
+
// General
|
|
7
|
+
notImplemented: 'Este método aún no se ha implementado.',
|
|
8
|
+
noInverse: 'Incapaz de calcular inversa!',
|
|
9
|
+
undefinedValue: '¡El valor solicitado no está definido!',
|
|
10
|
+
nullValue: 'Se esperaba un valor, pero se recibió null.',
|
|
11
|
+
univariateInputOnly: '¡La entrada para esta función debe ser univariada!',
|
|
12
|
+
differentSignsAtEndPointsRequired: '¡La función debe tener signos opuestos en los puntos extremos a y b!',
|
|
13
|
+
integerRequired: '¡Esta función requiere que el coeficiente sea un número entero!',
|
|
14
|
+
plainVariableExpected: '¡Se esperaba una variable simple! Se recibió {{input}}.',
|
|
15
|
+
missingReference: '¡La referencia "{{ref}}" no existe en este patrón!',
|
|
16
|
+
undefinedDivision: '¡División no definida expresión de este tipo! {{type}}',
|
|
17
|
+
restrictedVariableName: '¡No se puede asignar el valor solicitado al nombre reservado "{{name}}"!',
|
|
18
|
+
noVariableInExpression: '¡No se encontró ninguna variable en la expresión!',
|
|
19
|
+
quadraticExpressionExpected: '¡La expresión debe ser cuadrática!',
|
|
20
|
+
wrongInput: '¡Entrada incorrecta! Se esperaba {{expected}}, pero se recibió {{received}}.',
|
|
21
|
+
unsupportedFunction: 'Función no compatible "{{function}}".',
|
|
22
|
+
functionMinArgs: '{{function}} requiere al menos {{min}} argumentos, pero se recibieron {{actual}}.',
|
|
23
|
+
functionMaxArgs: '{{function}} permite como máximo {{max}} argumentos, pero se recibieron {{actual}}.',
|
|
24
|
+
invalidFunctionDeclaration: 'Declaración de función no válida "{{declaration}}".',
|
|
25
|
+
indexOutOfBounds: 'El índice {{index}} está fuera de los límites de {{type}} con longitud {{length}}.',
|
|
26
|
+
matrixRowIndexOutOfBounds: 'El índice de fila {{index}} está fuera de los límites de Matrix con {{length}} filas.',
|
|
27
|
+
matrixColumnIndexOutOfBounds: 'El índice de columna {{index}} está fuera de los límites de Matrix con {{length}} columnas.',
|
|
28
|
+
dictionaryKeyNotFound: 'La clave "{{key}}" no se encontró en Dictionary. Claves disponibles: {{keys}}.',
|
|
29
|
+
rangeValuesFinite: 'Los valores del rango deben ser finitos.',
|
|
30
|
+
rangeStepNonzero: 'El paso del rango no puede ser cero.',
|
|
31
|
+
rangeStepNoAdvance: 'El paso del rango no avanza con la precisión actual.',
|
|
32
|
+
sparseVariableCountInvalid: 'SparsePolynomial variableCount debe ser un entero seguro no negativo.',
|
|
33
|
+
sparseExponentVectorLengthMismatch: 'La longitud del vector de exponentes de SparsePolynomial debe ser igual a variableCount.',
|
|
34
|
+
sparseExponentsNonNegativeBigInt: 'Los exponentes de SparsePolynomial deben ser bigint no negativos.',
|
|
35
|
+
sparseVariableIndexOutOfRing: 'El índice de variable de SparsePolynomial está fuera del anillo polinómico.',
|
|
36
|
+
sparseAdditionRingMismatch: 'La suma de SparsePolynomial requiere el mismo anillo polinómico.',
|
|
37
|
+
sparseCoefficientExponentNonNegative: 'El exponente del coeficiente de SparsePolynomial debe ser no negativo.',
|
|
38
|
+
sparseZeroMonomialDivision: 'SparsePolynomial no puede dividirse por un monomio cero.',
|
|
39
|
+
sparseZeroScalarDivision: 'SparsePolynomial no puede dividirse por cero.',
|
|
40
|
+
sparseScalarDivisionExact: 'La división escalar de SparsePolynomial debe ser exacta para cada coeficiente.',
|
|
41
|
+
sparseDivisionRingMismatch: 'La división de SparsePolynomial requiere el mismo anillo polinómico.',
|
|
42
|
+
sparseZeroPolynomialDivision: 'SparsePolynomial no puede dividirse por el polinomio cero.',
|
|
43
|
+
sparseMonomialOrderUnsupported: 'El orden monomial de SparsePolynomial no es compatible.',
|
|
44
|
+
sparseMultiplicationRingMismatch: 'La multiplicación de SparsePolynomial requiere el mismo anillo polinómico.',
|
|
45
|
+
sparseExponentNonNegative: 'El exponente de SparsePolynomial debe ser no negativo.',
|
|
46
|
+
sparseSubtractionRingMismatch: 'La resta de SparsePolynomial requiere el mismo anillo polinómico.',
|
|
47
|
+
invalidDecimal: 'Decimal no válido: "{{value}}"',
|
|
48
|
+
invalidInterval: 'Intervalo no válido: ({{start}}, {{end}})',
|
|
49
|
+
invalidAssumption: 'Suposición no válida: "{{input}}"',
|
|
50
|
+
assumptionIdentifierExpected: 'Se esperaba un identificador',
|
|
51
|
+
assumptionOperatorMissing: 'Falta el operador',
|
|
52
|
+
assumptionValueMissing: 'Falta el valor',
|
|
53
|
+
assumptionOperatorUnsupported: 'Operador no compatible "{{operator}}"',
|
|
54
|
+
matrixStringKeyUnsupported: 'Matrix no admite acceso mediante clave de texto',
|
|
55
|
+
matrixTraceUnavailable: 'No se puede calcular la traza de la matriz',
|
|
56
|
+
defintMaxEvals: 'defint: se superó maxEvals ({{max}}).',
|
|
57
|
+
defintNonFiniteValue: 'defint: f(x) no es finita en x={{x}}',
|
|
58
|
+
defintEndpointSingularity: 'defint: no se pudo regularizar la singularidad del extremo cerca de x={{x}}',
|
|
59
|
+
defintSingularity: 'defint: se encontró una singularidad o valor no finito cerca de [{{a}}, {{b}}]',
|
|
60
|
+
defintInfiniteBounds: 'defint: los límites infinitos requieren allowInfinite: true',
|
|
61
|
+
defintUnsupportedInfiniteBounds: 'defint: configuración de límites infinitos no compatible',
|
|
62
|
+
symbolicAccessNamedTargetRequired: 'El acceso indexado simbólico requiere un objetivo Vector o Matrix con nombre.',
|
|
63
|
+
symbolicVectorIndexCount: 'El acceso simbólico a Vector requiere exactamente un índice.',
|
|
64
|
+
symbolicMatrixRowNonScalar: 'El acceso simbólico a una fila de Matrix no es escalar y no puede diferirse como Expression.',
|
|
65
|
+
symbolicMatrixCellIndexCount: 'El acceso simbólico a una celda de Matrix requiere exactamente dos índices.',
|
|
66
|
+
symbolicAccessMaxIndices: 'El acceso indexado simbólico admite como máximo dos índices sin resolver.',
|
|
67
|
+
symbolicAccessIndexScalar: 'Los índices del acceso simbólico deben evaluarse como expresiones escalares.',
|
|
68
|
+
symbolicAccessTargetType: 'El objetivo del acceso indexado simbólico debe resolverse como Vector o Matrix.',
|
|
69
|
+
expectedOperatorOrFunction: 'Se esperaba un operador o nombre de función, pero se encontró "{{value}}"!',
|
|
70
|
+
missingOpeningBracket: 'Falta el corchete de apertura para "{{bracket}}":{{position}}',
|
|
71
|
+
missingClosingBracket: 'Falta el corchete de cierre para "{{bracket}}":{{position}}',
|
|
72
|
+
prefixOperatorExpected: 'Se esperaba un operador prefijo, pero se encontró {{operator}}.',
|
|
73
|
+
groebnerBasisSizeBudgetExceeded: 'Se excedió el presupuesto de Groebner: tamaño de la base > {{max}}',
|
|
74
|
+
groebnerPairsBudgetExceeded: 'Se excedió el presupuesto de Groebner: pairsPopped > {{max}}',
|
|
75
|
+
unsupportedParserEntity: 'Entidad del parser no compatible',
|
|
76
|
+
factorialNegativeUndefined: 'El factorial no está definido para enteros negativos.',
|
|
77
|
+
erfConvergenceFailed: 'erf no converge. Saliendo!',
|
|
78
|
+
defintInfiniteBoundsDecimal: 'defint: los límites infinitos requieren allowInfinite:true',
|
|
79
|
+
seqStartsAtInteger: "startsAt debe ser un entero",
|
|
80
|
+
seqPolynomialOrMaxPower: "La secuencia no es un polinomio o supera maxPower",
|
|
81
|
+
seqInsufficientData: "No hay suficientes puntos de datos para el grado detectado",
|
|
82
|
+
arithPowNegativeExponent: "pow: exponente negativo",
|
|
83
|
+
arithPowNNonnegativeInteger: "powN: el exponente debe ser un entero no negativo",
|
|
84
|
+
arithBigIntSqrtNegative: "bigIntSqrt: entrada negativa",
|
|
85
|
+
arithNthRootPositiveInteger: "intNthRootExact: n debe ser un entero positivo",
|
|
86
|
+
arithDivisorsPositive: "getDivisors: n debe ser positivo",
|
|
87
|
+
arithModNormNonzeroModulus: "modNorm: el módulo debe ser distinto de cero",
|
|
88
|
+
arithModSymmetricNonzeroModulus: "modSymmetric: el módulo debe ser distinto de cero",
|
|
89
|
+
arithModInvZeroNoninvertible: "modInv: no invertible (0)",
|
|
90
|
+
arithModInvNoninvertible: "modInv: no invertible",
|
|
91
|
+
integerSqrtNonnegative: "La raíz cuadrada entera requiere un valor no negativo.",
|
|
92
|
+
modularExponentiationPositiveModulus: "La exponenciación modular requiere un módulo positivo.",
|
|
93
|
+
modularExponentiationNonnegativeExponent: "La exponenciación modular requiere un exponente no negativo.",
|
|
94
|
+
maxBigIntRequiresArgument: "maxBigInt() requiere al menos un argumento",
|
|
95
|
+
minBigIntEmpty: "El mínimo de una lista vacía no está definido para BigInt.",
|
|
96
|
+
binomBigIntNonnegativeN: "binomBigInt: n debe ser no negativo",
|
|
97
|
+
invalidDecimalValue: "Valor decimal no válido: {{value}}",
|
|
98
|
+
subtractionNotDefined: "La resta no está definida para {{leftType}}-{{rightType}} | {{left}}-{{right}}",
|
|
99
|
+
sparseAdapterVariablesUnique: "Las variables del adaptador de polinomios dispersos deben ser únicas.",
|
|
100
|
+
sparseAdapterVariablesIncludeEvery: "Las variables del adaptador de polinomios dispersos deben incluir todas las variables del polinomio.",
|
|
101
|
+
sparseExpressionConversionNameCount: "La conversión de expresiones a polinomios dispersos requiere un nombre por variable del anillo.",
|
|
102
|
+
converterMissingArgumentScope: "Falta el ámbito de argumentos para la función {{function}}",
|
|
103
|
+
converterMissingPrefixOperand: "Falta el operando para el operador prefijo {{operator}}",
|
|
104
|
+
converterMissingOperandMetadata: "Falta el operando o los metadatos para el operador {{operator}}",
|
|
105
|
+
converterMissingLeftOperand: "Falta el operando izquierdo para el operador {{operator}}",
|
|
106
|
+
converterTexConversionFailed: "No se puede convertir la expresión de origen a TeX",
|
|
107
|
+
unknownOperator: "Operador desconocido {{operator}}",
|
|
108
|
+
polynomialMaximumIterations: "Se alcanzó el número máximo de iteraciones",
|
|
109
|
+
polyRequires: "{{operation}} requiere {{requirement}}.",
|
|
110
|
+
polyVariablesUnique: "Las variables de {{operation}} deben ser únicas.",
|
|
111
|
+
polyVariablesRingOrder: "Las variables de {{operation}} deben seguir el orden del anillo de polinomios.",
|
|
112
|
+
polyVariablesIncludeActive: "Las variables de {{operation}} deben incluir todas las variables activas.",
|
|
113
|
+
polyInputsSelectedOnly: "Las entradas de {{operation}} solo pueden usar las variables seleccionadas.",
|
|
114
|
+
polyCannotFactorZeroPolynomial: "{{operation}} no puede factorizar el polinomio cero.",
|
|
115
|
+
polyCannotFactorZero: "{{operation}} no puede factorizar cero.",
|
|
116
|
+
polyModulusGreaterThanOne: "El módulo de ModularSparsePolynomial debe ser mayor que uno.",
|
|
117
|
+
polyVariableCountMatch: "variableCount de ModularSparsePolynomial debe coincidir con el polinomio disperso suministrado.",
|
|
118
|
+
polyInterpolationCannotDepend: "Las muestras de interpolación de ModularSparsePolynomial no pueden depender de la variable interpolada.",
|
|
119
|
+
polyInterpolationInvertibleDifferences: "Los puntos de interpolación de ModularSparsePolynomial deben tener diferencias invertibles por pares.",
|
|
120
|
+
polyCoefficientExponentNonnegative: "El exponente del coeficiente de ModularSparsePolynomial debe ser no negativo.",
|
|
121
|
+
polyCannotDivideZero: "ModularSparsePolynomial no puede dividir por el polinomio cero.",
|
|
122
|
+
polyDivisorLeadingCoefficientInvertible: "El coeficiente principal del divisor de ModularSparsePolynomial no es invertible.",
|
|
123
|
+
polyLeadingCoefficientInvertible: "El coeficiente principal de ModularSparsePolynomial no es invertible.",
|
|
124
|
+
polyExponentNonnegative: "El exponente de ModularSparsePolynomial debe ser no negativo.",
|
|
125
|
+
polyDegreeMatrixLimit: "El grado de la factorización modular supera la dimensión de matriz admitida.",
|
|
126
|
+
polyExtendedGcdTwoZeroUndefined: "El MCD extendido modular no está definido para dos polinomios cero.",
|
|
127
|
+
polyHenselPrimeExceedsTailDegree: "El primo del levantamiento de Hensel multivariante debe superar el grado de cada variable de cola.",
|
|
128
|
+
polyHenselTargetNotSmaller: "El módulo objetivo del levantamiento de Hensel no puede ser menor que el primo base.",
|
|
129
|
+
polyHenselTargetRepeatedSquaring: "El módulo objetivo del levantamiento de Hensel debe obtenerse mediante cuadrados sucesivos del primo base.",
|
|
130
|
+
polyHenselFactorsReconstructModuloBase: "Los factores del levantamiento de Hensel no reconstruyen el polinomio entero módulo el primo base.",
|
|
131
|
+
polyZassenhausFactorsReconstructModuloLift: "Los factores de recombinación de Zassenhaus no reconstruyen la entrada módulo el módulo de levantamiento.",
|
|
132
|
+
polyWangCannotSpecializeZero: "La búsqueda de evaluación de Wang no puede especializar cero.",
|
|
133
|
+
polyModularContentExactDivision: "El contenido del polinomio modular debe dividir exactamente al polinomio.",
|
|
134
|
+
factorizationNoFactors: "La factorización no constante no devolvió factores.",
|
|
135
|
+
polyCrtModuliInvertible: "Los módulos CRT del polinomio deben ser invertibles.",
|
|
136
|
+
polyIntegerFactorPrimeZero: "La factorización entera no puede elegir un primo para cero.",
|
|
137
|
+
polySquareFreeNonExactDivision: "La factorización libre de cuadrados encontró una división polinómica no exacta.",
|
|
138
|
+
polyZassenhausLostRemaining: "La recombinación de Zassenhaus perdió el polinomio restante.",
|
|
139
|
+
polyZassenhausReconstructionFailed: "Los factores de recombinación de Zassenhaus no reconstruyen el polinomio entero.",
|
|
140
|
+
polyIntegerFactorLostLeading: "La factorización entera perdió el término principal.",
|
|
141
|
+
parserMalformedSymbolicAccessor: "Accesor simbólico interno mal formado.",
|
|
142
|
+
parserMalformedSymbolicAccessorIndex: "Índice de accesor simbólico interno mal formado.",
|
|
143
|
+
unknownOperatorAction: "Acción de operador desconocida {{action}}",
|
|
144
|
+
parserBracketTokenMissingCharacter: "Al token de corchete le falta su carácter.",
|
|
145
|
+
polyWangLeadingEvaluationInteger: "La evaluación del coeficiente principal de Wang no produjo un entero.",
|
|
146
|
+
polyWangSpecializedLeadingInteger: "El factor especializado de Wang no tenía un coeficiente principal entero.",
|
|
147
|
+
polyMultivariateContentDivisionFailed: "La factorización multivariante no pudo dividir un bloque libre de cuadrados por su contenido en la variable principal.",
|
|
148
|
+
polyMultivariateContentVariableMissing: "El contenido de la variable principal multivariante no conservó una variable de coeficiente activa.",
|
|
149
|
+
polyMultivariateReconstructionFailed: "La factorización multivariante completa no reconstruye el polinomio de entrada.",
|
|
150
|
+
polyBerlekampNoninvertiblePivot: "La eliminación de Berlekamp encontró un pivote no invertible.",
|
|
151
|
+
polyHenselZeroFactorGroup: "El levantamiento de Hensel no puede levantar un grupo de factores cero.",
|
|
152
|
+
polyHenselCannotLiftZero: "El levantamiento de Hensel no puede levantar el polinomio cero.",
|
|
153
|
+
polyHenselModulusExceeded: "El levantamiento de Hensel superó el módulo de potencia prima solicitado.",
|
|
154
|
+
polyHenselLeadingLost: "El levantamiento de Hensel perdió el coeficiente principal objetivo.",
|
|
155
|
+
polyHenselReconstructionFailed: "Los factores levantados por Hensel no reconstruyen el polinomio objetivo.",
|
|
156
|
+
polyBerlekampNonExactSplit: "La separación de Berlekamp produjo una división de factores no exacta.",
|
|
157
|
+
polyBerlekampIncompleteSplit: "La factorización de Berlekamp no separó completamente el polinomio.",
|
|
158
|
+
polyBerlekampReconstructionFailed: "Los factores de Berlekamp no reconstruyen el polinomio de entrada.",
|
|
159
|
+
expressionKeyValueUnsupported: "La función 'keyValue' no está implementada para el tipo {{type}}.",
|
|
160
|
+
solveLinearNonlinearDegree: "Se detectó un término no lineal en la ecuación {{equation}}: se encontró un término de grado {{degree}}. solveLinearSystem solo maneja sistemas lineales.",
|
|
161
|
+
solveLinearNonPolynomialVariable: "Se detectó un término no lineal en la ecuación {{equation}}: la variable \"{{variable}}\" aparece en una posición no polinómica. solveLinearSystem solo maneja sistemas lineales.",
|
|
162
|
+
polyReqPrimeModulus: "un módulo primo",
|
|
163
|
+
polyReqUnivariatePolynomial: "un polinomio univariante",
|
|
164
|
+
polyReqSquareFreeInput: "una entrada libre de cuadrados",
|
|
165
|
+
polyReqSamePolynomialRing: "el mismo anillo de polinomios",
|
|
166
|
+
polyReqAtLeastOneVariable: "al menos una variable",
|
|
167
|
+
polyReqAtLeastTwoSelectedVariables: "al menos dos variables seleccionadas",
|
|
168
|
+
polyReqOneEvaluationPerTailVariable: "un valor de evaluación por variable de cola",
|
|
169
|
+
polyReqMatchingFactorLeadingLists: "listas coincidentes de factores y coeficientes principales",
|
|
170
|
+
polyReqPairwiseCoprimeModularFactors: "factores modulares coprimos por pares",
|
|
171
|
+
polyReqPrimeBaseModulus: "un módulo base primo",
|
|
172
|
+
polyReqAtLeastOneModularFactor: "al menos un factor modular",
|
|
173
|
+
polyReqUnivariateIntegerPolynomial: "un polinomio entero univariante",
|
|
174
|
+
polyReqFactorsSameRingAndPrime: "factores del mismo anillo de polinomios enteros y primo base",
|
|
175
|
+
polyReqUnivariateFactors: "factores univariantes",
|
|
176
|
+
polyReqMonicModularFactors: "factores modulares mónicos",
|
|
177
|
+
polyReqPrimitiveIntegerPolynomial: "un polinomio entero primitivo",
|
|
178
|
+
polyReqPositiveLeadingCoefficient: "un coeficiente principal positivo",
|
|
179
|
+
polyReqLiftedModularFactors: "factores modulares levantados",
|
|
180
|
+
polyReqLiftedFactorsSameRing: "factores levantados de un mismo anillo de polinomios",
|
|
181
|
+
polyReqUnivariateLiftedFactors: "factores levantados univariantes",
|
|
182
|
+
polyReqMonicLiftedFactors: "factores levantados mónicos",
|
|
183
|
+
polyReqLargerHenselModulus: "un módulo de levantamiento de Hensel mayor",
|
|
184
|
+
polyReqPrimitivePolynomial: "un polinomio primitivo",
|
|
185
|
+
polyReqPositiveLexLeadingSign: "un signo principal lexicográfico positivo",
|
|
186
|
+
polyReqSquareFreeMainVariable: "una entrada libre de cuadrados en la variable principal",
|
|
187
|
+
polyReqExactlyTwoSelectedVariables: "exactamente dos variables seleccionadas",
|
|
188
|
+
polyReqExactlyTwoVariables: "exactamente dos variables",
|
|
189
|
+
polyReqOneValuePerNonMainVariable: "un valor por cada variable seleccionada no principal",
|
|
190
|
+
polyReqOneValuePerTailVariable: "un valor por cada variable de cola",
|
|
191
|
+
polyReqPositiveDegreeMainVariable: "grado positivo en la variable principal",
|
|
192
|
+
polyReqAllOtherVariablesDormant: "que todas las demás variables estén inactivas",
|
|
193
|
+
polyReqPositiveModuli: "módulos positivos",
|
|
194
|
+
polyReqCoprimeModuli: "módulos coprimos",
|
|
195
|
+
polyReqAtLeastOneSample: "al menos una muestra",
|
|
196
|
+
polyReqInvertibleLeadingCoefficient: "un coeficiente principal invertible",
|
|
197
|
+
polyReqIntegerLeadingCoefficientInvertible: "que el coeficiente principal entero sea invertible módulo el primo base",
|
|
198
|
+
infinityMinusInfinityUndefined: '¡Infinito menos infinito es indefinido!',
|
|
199
|
+
// Assumptions
|
|
200
|
+
inconsistentAssumptions: '¡Las suposiciones son inconsistentes (intersección vacía)!',
|
|
201
|
+
// Parser
|
|
202
|
+
unsupportedType: '¡El tipo ({{type}}) proporcionado no es compatible con esta función!',
|
|
203
|
+
unsupportedOperation: '¡Esta operación no está soportada actualmente!',
|
|
204
|
+
buildFunctionUnsupportedFunction: '¡buildFunction no puede compilar la función "{{function}}" a aritmética numérica de JavaScript!',
|
|
205
|
+
buildFunctionComplexUnsupported: '¡buildFunction no puede compilar expresiones que contienen la unidad imaginaria a aritmética numérica de JavaScript!',
|
|
206
|
+
nonMatchingDimensions: '¡Esta operación no se puede completar porque las dimensiones no coinciden!',
|
|
207
|
+
malformedExpression: '¡No se puede analizar la expresión malformada!',
|
|
208
|
+
unsupportedCharacter: 'Carácter no compatible "{{character}}" en la posición {{position}}.',
|
|
209
|
+
missingCommentDelimiter: 'Falta el delimitador de cierre de comentario "{{delimiter}}".',
|
|
210
|
+
divisionByZero: '¡La división por cero no está definida!',
|
|
211
|
+
zeroToZeroPower: '¡0^0 no está definido!',
|
|
212
|
+
infinityToPowerZero: '¡Infinito^0 no está definido!',
|
|
213
|
+
infinityTimesZero: '¡0*Infinito no está definido!',
|
|
214
|
+
infinityToInfinity: '¡Infinito^Infinito no está definido!',
|
|
215
|
+
valueToInfinityUndefined: '{{value}}^Infinito no está definido!',
|
|
216
|
+
atan2Undefined: '¡atan2 no está definida para 0, 0!',
|
|
217
|
+
tanUndefined: '¡tan no está definida para múltiplos de pi / 2!',
|
|
218
|
+
loopIterationLimitExceeded: 'El bucle superó el máximo de {{max}} iteraciones.',
|
|
219
|
+
breakOutsideLoop: 'break solo se puede usar dentro de un bucle.',
|
|
220
|
+
continueOutsideLoop: 'continue solo se puede usar dentro de un bucle.',
|
|
221
|
+
letRequiresBindingsAndBody: 'let requiere uno o más pares nombre/valor seguidos de una expresión de cuerpo.',
|
|
222
|
+
secUndefined: '¡sec no está definida para múltiplos impares de pi/2!',
|
|
223
|
+
cscUndefined: '¡csc no está definida para múltiplos de pi!',
|
|
224
|
+
cotUndefined: '¡cot no está definida para múltiplos de pi!',
|
|
225
|
+
cothUndefined: '¡coth no está definida para 0!',
|
|
226
|
+
cschUndefined: '¡csch no está definida para 0!',
|
|
227
|
+
atanhUndefined: '¡Atanh no está definida para 0!',
|
|
228
|
+
cannotCreateArrayFromNaN: '¡No se puede crear una matriz de NaN!',
|
|
229
|
+
expressionExpected: '¡Se esperaba Expression! ¡Se recibió {{type}}!',
|
|
230
|
+
// TeX Converter
|
|
231
|
+
unrecognizedMode: '¡{{mode}} no es un modo válido!',
|
|
232
|
+
// Polynomials
|
|
233
|
+
notAPolynomial: '¡La expresión no es un polinomio válido!',
|
|
234
|
+
multidegreeMismatch: '¡El número de variables debe coincidir con el multigrado del polinomio!',
|
|
235
|
+
unknownVariable: '¡Variable desconocida! "{{variable}}"',
|
|
236
|
+
// Matrix
|
|
237
|
+
cannotCreateMatrix: 'No se puede crear la matriz. ¡Las dimensiones de las filas no coinciden!',
|
|
238
|
+
cannotMultiplyMatrix: '¡No se puede multiplicar la matriz!',
|
|
239
|
+
squareMatrixRequired: '¡La matriz debe ser cuadrada!',
|
|
240
|
+
rowsMustMatch: '¡Las filas de las matrices deben coincidir!',
|
|
241
|
+
columnsMustMatch: '¡Las columnas de las matrices deben coincidir!',
|
|
242
|
+
singularMatrix: '¡La matriz proporcionada es singular!',
|
|
243
|
+
matrixExpected: '¡Matriz esperada! Se recibió {{type}}.',
|
|
244
|
+
// Vector
|
|
245
|
+
mismatchedDimensions: '¡Las dimensiones deben coincidir para la función "{{function}}"!',
|
|
246
|
+
incorrectCrossDimension: '¡El producto vectorial sólo está definido para vectores de dimensión 3!',
|
|
247
|
+
vectorExpected: '¡Vector esperado! Recibido. {{type}}.',
|
|
248
|
+
// Polynomial
|
|
249
|
+
univariatePolynomialOnly: '¡Esta función solo es compatible con polinomios univariados!',
|
|
250
|
+
// Solve
|
|
251
|
+
convergenceFailed: '¡No se logró la convergencia! Se intentaron {{iters}} iteraciones.',
|
|
252
|
+
endPointIsRoot: 'El punto final es la raíz.',
|
|
253
|
+
zeroDerivative: 'La derivada es cero en x = {{x}}. No se puede continuar.',
|
|
254
|
+
tooManyUnknowns: '¡Demasiadas incógnitas!',
|
|
255
|
+
solveSystemInfiniteSolutions: '¡Este sistema no tiene un conjunto finito de soluciones aisladas!',
|
|
256
|
+
solveSystemPolynomialOnly: '¡solveSystem actualmente solo admite sistemas lineales o polinómicos!',
|
|
257
|
+
solveSystemNonRationalUnsupported: '¡Este sistema polinómico no lineal requiere resolución no racional o no simbólica, lo cual aún no está soportado!',
|
|
258
|
+
// Set Function
|
|
259
|
+
setJSFunctionExpectsFunction: '¡El parámetro de la función, al configurar una función JS, debe ser de tipo función!',
|
|
260
|
+
functionRequiresMinAndMaxArgs: '¡Debes proporcionar los argumentos mínimo y máximo al configurar la función!',
|
|
261
|
+
};
|
|
262
|
+
(0, errors_1.registerLanguage)('spa', catalog);
|
|
263
|
+
if (typeof NERDAMER_BUILD_LANGUAGE !== 'undefined' && NERDAMER_BUILD_LANGUAGE === 'spa') {
|
|
264
|
+
Settings_1.Settings.LANGUAGE = 'spa';
|
|
265
|
+
}
|
|
266
|
+
exports.default = catalog;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { ParserConstants, ParserValuesObject } from '../core/classes/parser/types';
|
|
2
|
+
import type { SettingsType as InternalSettingsType } from '../core/Settings';
|
|
3
|
+
import type { ExpressionInput, ParserEntity } from '../core/types';
|
|
4
|
+
/**
|
|
5
|
+
* Parser settings supported by the public parser facade.
|
|
6
|
+
*
|
|
7
|
+
* `DEFER_SIMPLIFICATION` remains an internal compatibility setting and is not part of
|
|
8
|
+
* the supported 2.0 parser API.
|
|
9
|
+
*/
|
|
10
|
+
export type SettingsType = Omit<InternalSettingsType, 'DEFER_SIMPLIFICATION'>;
|
|
11
|
+
type BooleanSettingName = {
|
|
12
|
+
[K in keyof SettingsType]: SettingsType[K] extends boolean ? K : never;
|
|
13
|
+
}[keyof SettingsType];
|
|
14
|
+
/**
|
|
15
|
+
* Supported high-level parser surface.
|
|
16
|
+
*
|
|
17
|
+
* Tokenization, RPN conversion, and parser-stack machinery remain internal
|
|
18
|
+
* implementation details even though Nerdamer itself uses them across modules.
|
|
19
|
+
*/
|
|
20
|
+
export interface ParserAPI {
|
|
21
|
+
/** Creates another parser facade backed by the shared parser configuration. */
|
|
22
|
+
create(): ParserAPI;
|
|
23
|
+
/**
|
|
24
|
+
* Parses and evaluates Nerdamer notation with optional substitutions.
|
|
25
|
+
* @param str - Nerdamer notation or expression-compatible input.
|
|
26
|
+
* @param values - Values substituted by name while parsing.
|
|
27
|
+
*/
|
|
28
|
+
evaluate(str: string, values?: ParserValuesObject): ParserEntity;
|
|
29
|
+
/**
|
|
30
|
+
* Returns one shared parser setting with the value type associated with that setting.
|
|
31
|
+
*/
|
|
32
|
+
get<K extends keyof SettingsType>(setting: K): SettingsType[K];
|
|
33
|
+
/** Returns the symbol currently used for the imaginary unit. */
|
|
34
|
+
getI(): string;
|
|
35
|
+
/** Returns whether Nerdamer currently reserves a variable or symbol name. */
|
|
36
|
+
isReserved(name: string): boolean;
|
|
37
|
+
/** Returns the active Decimal precision. */
|
|
38
|
+
getPrecision(): number;
|
|
39
|
+
/**
|
|
40
|
+
* Parses Nerdamer notation with optional substitutions.
|
|
41
|
+
* @param str - Nerdamer notation or expression-compatible input.
|
|
42
|
+
* @param values - Values substituted by name while parsing.
|
|
43
|
+
*/
|
|
44
|
+
parse(str: ExpressionInput, values?: ParserValuesObject): ParserEntity;
|
|
45
|
+
/**
|
|
46
|
+
* Temporarily changes one Boolean parser setting while a callback runs.
|
|
47
|
+
* @param setting - Boolean setting name to change.
|
|
48
|
+
* @param value - Temporary value for that setting.
|
|
49
|
+
* @param callback - Work to perform before restoring the previous setting.
|
|
50
|
+
*/
|
|
51
|
+
scopedBlock<K extends BooleanSettingName>(setting: K, value: SettingsType[K], callback: () => ParserEntity): ParserEntity;
|
|
52
|
+
/**
|
|
53
|
+
* Changes one shared parser setting and returns the parser for chaining.
|
|
54
|
+
* @param setting - Supported parser setting name.
|
|
55
|
+
* @param value - Value associated with that setting.
|
|
56
|
+
*/
|
|
57
|
+
set<K extends keyof SettingsType>(setting: K, value: SettingsType[K]): ParserAPI;
|
|
58
|
+
/**
|
|
59
|
+
* Changes several supported parser settings and returns the parser for chaining.
|
|
60
|
+
* @param settings - Partial set of supported parser settings.
|
|
61
|
+
*/
|
|
62
|
+
set(settings: Partial<SettingsType>): ParserAPI;
|
|
63
|
+
/**
|
|
64
|
+
* Registers or removes parser constants.
|
|
65
|
+
* @param constants - Constant names mapped to values or deletion markers.
|
|
66
|
+
*/
|
|
67
|
+
setConstants(constants: ParserConstants): void;
|
|
68
|
+
/**
|
|
69
|
+
* Changes the symbol used for the imaginary unit.
|
|
70
|
+
* @param variable - New imaginary-unit symbol.
|
|
71
|
+
*/
|
|
72
|
+
setI(variable: string): ParserAPI;
|
|
73
|
+
/**
|
|
74
|
+
* Alias for {@link ParserAPI.setI}.
|
|
75
|
+
* @param variable - New imaginary-unit symbol.
|
|
76
|
+
*/
|
|
77
|
+
setImaginary(variable: string): ParserAPI;
|
|
78
|
+
/**
|
|
79
|
+
* Changes the Decimal precision used by numerical calculations.
|
|
80
|
+
* @param precision - Significant decimal digits to retain.
|
|
81
|
+
*/
|
|
82
|
+
setPrecision(precision: number): void;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Shared parser exposed through the supported high-level interface.
|
|
86
|
+
*
|
|
87
|
+
* The implementation accepts a broader compatibility settings bag; this facade exposes
|
|
88
|
+
* only the named settings defined by {@link SettingsType}.
|
|
89
|
+
*/
|
|
90
|
+
export declare const Parser: ParserAPI;
|
|
91
|
+
export type { JsFunction, Operation, OptionValue, OptionsObject, ParserConstants, ParserValuesObject, PostFixFunction, PreFixFunction, } from '../core/classes/parser/types';
|
|
92
|
+
export type { BinaryArithmeticOperation, ComparisonOperation, Operator, OperatorAction, OperatorDefinition, } from '../core/common/common';
|
|
93
|
+
export type { Language } from '../core/errors';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Parser = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Supported high-level parser APIs and parser configuration types.
|
|
6
|
+
*
|
|
7
|
+
* @module parser
|
|
8
|
+
*/
|
|
9
|
+
const Parser_1 = require("../core/classes/parser/Parser");
|
|
10
|
+
const parserFunctions_1 = require("../core/parserFunctions");
|
|
11
|
+
(0, parserFunctions_1.loadParserFunctions)();
|
|
12
|
+
/**
|
|
13
|
+
* Shared parser exposed through the supported high-level interface.
|
|
14
|
+
*
|
|
15
|
+
* The implementation accepts a broader compatibility settings bag; this facade exposes
|
|
16
|
+
* only the named settings defined by {@link SettingsType}.
|
|
17
|
+
*/
|
|
18
|
+
exports.Parser = Parser_1.Parser;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type { FunctionSolverOptions, Root } from '../solve/classes/FunctionSolver';
|
|
2
|
+
/** Public symbolic and polynomial solver APIs. */
|
|
3
|
+
export { MultivariateSolver } from '../solve/classes/MultivariateSolver';
|
|
4
|
+
export type { MultivariateSolverOptions } from '../solve/classes/MultivariateSolver';
|
|
5
|
+
export { PolynomialSolver } from '../solve/classes/PolynomialSolver';
|
|
6
|
+
export { SolutionSet } from '../solve/classes/SolutionSet';
|
|
7
|
+
export type { SolutionForm, SolutionsType } from '../solve/classes/SolutionSet';
|
|
8
|
+
export { SymbolicSolver } from '../solve/classes/SymbolicSolver';
|
|
9
|
+
export { roots, solve } from '../solve/solve';
|
|
10
|
+
export { solveSystem } from '../solve/solveSystem';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.solveSystem = exports.solve = exports.roots = exports.SymbolicSolver = exports.SolutionSet = exports.PolynomialSolver = exports.MultivariateSolver = void 0;
|
|
4
|
+
/** Public symbolic and polynomial solver APIs. */
|
|
5
|
+
var MultivariateSolver_1 = require("../solve/classes/MultivariateSolver");
|
|
6
|
+
Object.defineProperty(exports, "MultivariateSolver", { enumerable: true, get: function () { return MultivariateSolver_1.MultivariateSolver; } });
|
|
7
|
+
var PolynomialSolver_1 = require("../solve/classes/PolynomialSolver");
|
|
8
|
+
Object.defineProperty(exports, "PolynomialSolver", { enumerable: true, get: function () { return PolynomialSolver_1.PolynomialSolver; } });
|
|
9
|
+
var SolutionSet_1 = require("../solve/classes/SolutionSet");
|
|
10
|
+
Object.defineProperty(exports, "SolutionSet", { enumerable: true, get: function () { return SolutionSet_1.SolutionSet; } });
|
|
11
|
+
var SymbolicSolver_1 = require("../solve/classes/SymbolicSolver");
|
|
12
|
+
Object.defineProperty(exports, "SymbolicSolver", { enumerable: true, get: function () { return SymbolicSolver_1.SymbolicSolver; } });
|
|
13
|
+
var solve_1 = require("../solve/solve");
|
|
14
|
+
Object.defineProperty(exports, "roots", { enumerable: true, get: function () { return solve_1.roots; } });
|
|
15
|
+
Object.defineProperty(exports, "solve", { enumerable: true, get: function () { return solve_1.solve; } });
|
|
16
|
+
var solveSystem_1 = require("../solve/solveSystem");
|
|
17
|
+
Object.defineProperty(exports, "solveSystem", { enumerable: true, get: function () { return solveSystem_1.solveSystem; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Public structured-value and finite-set APIs. */
|
|
2
|
+
export { Collection } from '../core/classes/collection/Collection';
|
|
3
|
+
export { Dictionary } from '../core/classes/dictionary/Dictionary';
|
|
4
|
+
export { determinant, invert, nullspace } from '../core/classes/matrix/functions';
|
|
5
|
+
export { Matrix } from '../core/classes/matrix/Matrix';
|
|
6
|
+
export { imatrix } from '../core/classes/matrix/utils';
|
|
7
|
+
export { ValuesSet } from '../core/classes/valuesSet/ValuesSet';
|
|
8
|
+
export { cross, dot } from '../core/classes/vector/functions';
|
|
9
|
+
export { Vector } from '../core/classes/vector/Vector';
|
|
10
|
+
export type { StructuredEntityType } from '../core/types';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Vector = exports.dot = exports.cross = exports.ValuesSet = exports.imatrix = exports.Matrix = exports.nullspace = exports.invert = exports.determinant = exports.Dictionary = exports.Collection = void 0;
|
|
4
|
+
/** Public structured-value and finite-set APIs. */
|
|
5
|
+
var Collection_1 = require("../core/classes/collection/Collection");
|
|
6
|
+
Object.defineProperty(exports, "Collection", { enumerable: true, get: function () { return Collection_1.Collection; } });
|
|
7
|
+
var Dictionary_1 = require("../core/classes/dictionary/Dictionary");
|
|
8
|
+
Object.defineProperty(exports, "Dictionary", { enumerable: true, get: function () { return Dictionary_1.Dictionary; } });
|
|
9
|
+
var functions_1 = require("../core/classes/matrix/functions");
|
|
10
|
+
Object.defineProperty(exports, "determinant", { enumerable: true, get: function () { return functions_1.determinant; } });
|
|
11
|
+
Object.defineProperty(exports, "invert", { enumerable: true, get: function () { return functions_1.invert; } });
|
|
12
|
+
Object.defineProperty(exports, "nullspace", { enumerable: true, get: function () { return functions_1.nullspace; } });
|
|
13
|
+
var Matrix_1 = require("../core/classes/matrix/Matrix");
|
|
14
|
+
Object.defineProperty(exports, "Matrix", { enumerable: true, get: function () { return Matrix_1.Matrix; } });
|
|
15
|
+
var utils_1 = require("../core/classes/matrix/utils");
|
|
16
|
+
Object.defineProperty(exports, "imatrix", { enumerable: true, get: function () { return utils_1.imatrix; } });
|
|
17
|
+
var ValuesSet_1 = require("../core/classes/valuesSet/ValuesSet");
|
|
18
|
+
Object.defineProperty(exports, "ValuesSet", { enumerable: true, get: function () { return ValuesSet_1.ValuesSet; } });
|
|
19
|
+
var functions_2 = require("../core/classes/vector/functions");
|
|
20
|
+
Object.defineProperty(exports, "cross", { enumerable: true, get: function () { return functions_2.cross; } });
|
|
21
|
+
Object.defineProperty(exports, "dot", { enumerable: true, get: function () { return functions_2.dot; } });
|
|
22
|
+
var Vector_1 = require("../core/classes/vector/Vector");
|
|
23
|
+
Object.defineProperty(exports, "Vector", { enumerable: true, get: function () { return Vector_1.Vector; } });
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Expression } from '../core/classes/expression/Expression';
|
|
2
|
+
import type { ParserEntity } from '../core/types';
|
|
3
|
+
/** Applies differentiation to both sides when the parser supplies an Equation. */
|
|
4
|
+
export declare function differentiate(expr: ParserEntity, variable?: ParserEntity, n?: ParserEntity): ParserEntity;
|
|
5
|
+
/** Applies integration to both sides when the parser supplies an Equation. */
|
|
6
|
+
export declare function integrateEquation(expr: ParserEntity, variable?: ParserEntity): ParserEntity;
|
|
7
|
+
/** Maps a symbolic direction token to the direction accepted by limit. */
|
|
8
|
+
export declare function directionalLimit(expr: Expression, x: Expression, val: Expression, dir?: Expression): Expression;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.differentiate = differentiate;
|
|
4
|
+
exports.integrateEquation = integrateEquation;
|
|
5
|
+
exports.directionalLimit = directionalLimit;
|
|
6
|
+
const Equation_1 = require("../core/classes/equation/Equation");
|
|
7
|
+
const utils_1 = require("../core/classes/expression/utils");
|
|
8
|
+
const diff_1 = require("./derivative/diff");
|
|
9
|
+
const integrate_1 = require("./integrate/integrate");
|
|
10
|
+
const limit_1 = require("./limit/limit");
|
|
11
|
+
/** Applies differentiation to both sides when the parser supplies an Equation. */
|
|
12
|
+
function differentiate(expr, variable, n) {
|
|
13
|
+
let retval;
|
|
14
|
+
if (Equation_1.Equation.isEquation(expr)) {
|
|
15
|
+
retval = expr.each(e => differentiate(e, variable, n));
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
retval = (0, diff_1.diff)(expr, variable, n);
|
|
19
|
+
}
|
|
20
|
+
return retval;
|
|
21
|
+
}
|
|
22
|
+
/** Applies integration to both sides when the parser supplies an Equation. */
|
|
23
|
+
function integrateEquation(expr, variable) {
|
|
24
|
+
let retval;
|
|
25
|
+
if (Equation_1.Equation.isEquation(expr)) {
|
|
26
|
+
retval = expr.each(e => integrateEquation(e, variable));
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
retval = (0, integrate_1.integrate)(expr, variable);
|
|
30
|
+
}
|
|
31
|
+
return retval;
|
|
32
|
+
}
|
|
33
|
+
/** Maps a symbolic direction token to the direction accepted by limit. */
|
|
34
|
+
function directionalLimit(expr, x, val, dir) {
|
|
35
|
+
let direction = 'both';
|
|
36
|
+
if (dir) {
|
|
37
|
+
direction = (0, utils_1.assertPlainVariableAndGetString)(dir);
|
|
38
|
+
}
|
|
39
|
+
const retval = (0, limit_1.limit)(expr, x, val, direction);
|
|
40
|
+
return retval;
|
|
41
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Expression } from '../../core/classes/expression/Expression';
|
|
2
|
+
import type { ExpressionInput } from '../../core/types';
|
|
3
|
+
/**
|
|
4
|
+
* Differentiates an expression symbolically.
|
|
5
|
+
*
|
|
6
|
+
* The chain, product, sum, and power rules are applied recursively, together
|
|
7
|
+
* with the built-in derivative table for recognized functions. An omitted
|
|
8
|
+
* variable is inferred as the first variable in the expression. Existing
|
|
9
|
+
* Expression input is reused during normalization.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* `n` requests a repeated derivative. A non-integer order, a non-variable
|
|
13
|
+
* differentiation target, or an unsupported derivative is preserved as an
|
|
14
|
+
* unevaluated `diff(...)` expression. Constants and expressions independent of
|
|
15
|
+
* the selected variable differentiate to zero.
|
|
16
|
+
*
|
|
17
|
+
* @param x - Expression to differentiate.
|
|
18
|
+
* @param variable - Variable with respect to which the derivative is taken.
|
|
19
|
+
* @param n - Positive integer derivative order. Defaults to the first derivative.
|
|
20
|
+
* @returns The symbolic derivative, or an unevaluated `diff(...)` call when the
|
|
21
|
+
* requested operation cannot be resolved.
|
|
22
|
+
* @throws {@link core!UnsupportedOperationError} If `variable` is numeric.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* diff('sin(x^2)', 'x').text();
|
|
27
|
+
* diff('x^4', 'x', 2).text();
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare function diff(x: ExpressionInput, variable?: ExpressionInput, n?: Expression | number): Expression;
|