math-exercises 1.3.6 → 1.3.7
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/lib/exercises/calcul/addAndSub.d.ts +7 -0
- package/lib/exercises/calcul/addAndSub.d.ts.map +1 -0
- package/lib/exercises/calcul/addAndSub.js +3 -3
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts +4 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.d.ts.map +1 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerDivision.js +6 -6
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts +4 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.d.ts.map +1 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerProduct.js +5 -5
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts +4 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.d.ts.map +1 -0
- package/lib/exercises/calcul/fractions/fractionAndIntegerSum.js +5 -5
- package/lib/exercises/calcul/fractions/fractionsDivision.d.ts +4 -0
- package/lib/exercises/calcul/fractions/fractionsDivision.d.ts.map +1 -0
- package/lib/exercises/calcul/fractions/fractionsDivision.js +3 -3
- package/lib/exercises/calcul/fractions/fractionsProduct.d.ts +4 -0
- package/lib/exercises/calcul/fractions/fractionsProduct.d.ts.map +1 -0
- package/lib/exercises/calcul/fractions/fractionsProduct.js +3 -3
- package/lib/exercises/calcul/fractions/fractionsSum.d.ts +4 -0
- package/lib/exercises/calcul/fractions/fractionsSum.d.ts.map +1 -0
- package/lib/exercises/calcul/fractions/fractionsSum.js +3 -3
- package/lib/exercises/calcul/fractions/simplifyFraction.d.ts +4 -0
- package/lib/exercises/calcul/fractions/simplifyFraction.d.ts.map +1 -0
- package/lib/exercises/calcul/fractions/simplifyFraction.js +2 -2
- package/lib/exercises/calcul/operations/operationsPriorities.d.ts +11 -0
- package/lib/exercises/calcul/operations/operationsPriorities.d.ts.map +1 -0
- package/lib/exercises/calcul/operations/operationsPriorities.js +7 -7
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts +1 -0
- package/lib/exercises/calcul/operations/operationsPrioritiesWithoutRelative.d.ts.map +1 -0
- package/lib/exercises/calcul/rounding/rounding.d.ts +20 -0
- package/lib/exercises/calcul/rounding/rounding.d.ts.map +1 -0
- package/lib/exercises/calcul/rounding/rounding.js +3 -3
- package/lib/exercises/calculLitteral/distributivity/allIdentities.d.ts +4 -0
- package/lib/exercises/calculLitteral/distributivity/allIdentities.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/distributivity/allIdentities.js +2 -2
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts +4 -0
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/distributivity/doubleDistributivity.js +6 -6
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts +4 -0
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/distributivity/firstIdentity.js +7 -7
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts +4 -0
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/distributivity/secondIdentity.js +7 -7
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts +4 -0
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/distributivity/simpleDistributivity.js +7 -7
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts +4 -0
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/distributivity/thirdIdentity.js +6 -6
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts +7 -0
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/equation/equationType1Exercise.js +6 -6
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts +7 -0
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/equation/equationType2Exercise.js +8 -8
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts +7 -0
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/equation/equationType3Exercise.js +8 -8
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts +7 -0
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/equation/equationType4Exercise.js +8 -8
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts +7 -0
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.d.ts.map +1 -0
- package/lib/exercises/calculLitteral/factorisation/factoType1Exercise.js +7 -7
- package/lib/exercises/exercise.d.ts +16 -0
- package/lib/exercises/exercise.d.ts.map +1 -0
- package/lib/exercises/exercises.d.ts +3 -0
- package/lib/exercises/exercises.d.ts.map +1 -0
- package/lib/exercises/geometry/cartesian/midpoint.d.ts +4 -0
- package/lib/exercises/geometry/cartesian/midpoint.d.ts.map +1 -0
- package/lib/exercises/geometry/cartesian/midpoint.js +4 -4
- package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts +4 -0
- package/lib/exercises/geometry/vectors/scalarProductViaCoords.d.ts.map +1 -0
- package/lib/exercises/geometry/vectors/scalarProductViaCoords.js +4 -4
- package/lib/exercises/geometry/vectors/scalarProductViaNorms.d.ts +1 -0
- package/lib/exercises/geometry/vectors/scalarProductViaNorms.d.ts.map +1 -0
- package/lib/exercises/powers/powersDivision.d.ts +8 -0
- package/lib/exercises/powers/powersDivision.d.ts.map +1 -0
- package/lib/exercises/powers/powersDivision.js +5 -5
- package/lib/exercises/powers/powersOfTenToDecimal.d.ts +7 -0
- package/lib/exercises/powers/powersOfTenToDecimal.d.ts.map +1 -0
- package/lib/exercises/powers/powersOfTenToDecimal.js +4 -4
- package/lib/exercises/powers/powersPower.d.ts +8 -0
- package/lib/exercises/powers/powersPower.d.ts.map +1 -0
- package/lib/exercises/powers/powersPower.js +4 -4
- package/lib/exercises/powers/powersProduct.d.ts +8 -0
- package/lib/exercises/powers/powersProduct.d.ts.map +1 -0
- package/lib/exercises/powers/powersProduct.js +5 -5
- package/lib/exercises/powers/scientificToDecimal.d.ts +7 -0
- package/lib/exercises/powers/scientificToDecimal.d.ts.map +1 -0
- package/lib/exercises/powers/scientificToDecimal.js +6 -6
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts +1 -0
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.d.ts.map +1 -0
- package/lib/exercises/sequences/geometric/geometricExplicitFormulaUsage.js +3 -3
- package/lib/exercises/sequences/geometric/geometricFindReason.d.ts +1 -0
- package/lib/exercises/sequences/geometric/geometricFindReason.d.ts.map +1 -0
- package/lib/exercises/sequences/geometric/geometricFindReason.js +3 -3
- package/lib/exercises/squareRoots/simpifySquareRoot.d.ts +4 -0
- package/lib/exercises/squareRoots/simpifySquareRoot.d.ts.map +1 -0
- package/lib/exercises/squareRoots/simpifySquareRoot.js +1 -1
- package/lib/exercises/trigonometry/mainRemarkableValues.d.ts +4 -0
- package/lib/exercises/trigonometry/mainRemarkableValues.d.ts.map +1 -0
- package/lib/exercises/trigonometry/mainRemarkableValues.js +2 -2
- package/lib/exercises/trigonometry/remarkableValues.d.ts +4 -0
- package/lib/exercises/trigonometry/remarkableValues.d.ts.map +1 -0
- package/lib/exercises/trigonometry/remarkableValues.js +2 -2
- package/lib/exercises/utils/getDistinctQuestions.d.ts +3 -0
- package/lib/exercises/utils/getDistinctQuestions.d.ts.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +4 -3
- package/lib/math/geometry/point.d.ts +13 -0
- package/lib/math/geometry/point.d.ts.map +1 -0
- package/lib/math/geometry/point.js +4 -4
- package/lib/math/geometry/vector.d.ts +16 -0
- package/lib/math/geometry/vector.d.ts.map +1 -0
- package/lib/math/geometry/vector.js +4 -4
- package/lib/math/numbers/decimals/decimal.d.ts +25 -0
- package/lib/math/numbers/decimals/decimal.d.ts.map +1 -0
- package/lib/math/numbers/decimals/decimal.js +2 -2
- package/lib/math/numbers/epsilon.d.ts +2 -0
- package/lib/math/numbers/epsilon.d.ts.map +1 -0
- package/lib/math/numbers/integer/integer.d.ts +15 -0
- package/lib/math/numbers/integer/integer.d.ts.map +1 -0
- package/lib/math/numbers/integer/integer.js +2 -2
- package/lib/math/numbers/integer/power.d.ts +14 -0
- package/lib/math/numbers/integer/power.d.ts.map +1 -0
- package/lib/math/numbers/integer/power.js +2 -2
- package/lib/math/numbers/nombre.d.ts +14 -0
- package/lib/math/numbers/nombre.d.ts.map +1 -0
- package/lib/math/numbers/rationals/rational.d.ts +26 -0
- package/lib/math/numbers/rationals/rational.d.ts.map +1 -0
- package/lib/math/numbers/rationals/rational.js +8 -8
- package/lib/math/numbers/reals/real.d.ts +10 -0
- package/lib/math/numbers/reals/real.d.ts.map +1 -0
- package/lib/math/numbers/reals/real.js +1 -1
- package/lib/math/numbers/reals/squareRoot.d.ts +19 -0
- package/lib/math/numbers/reals/squareRoot.d.ts.map +1 -0
- package/lib/math/numbers/reals/squareRoot.js +6 -6
- package/lib/math/polynomials/affine.d.ts +16 -0
- package/lib/math/polynomials/affine.d.ts.map +1 -0
- package/lib/math/polynomials/polynomial.d.ts +25 -0
- package/lib/math/polynomials/polynomial.d.ts.map +1 -0
- package/lib/math/sequences/arithmeticSequence.d.ts +1 -0
- package/lib/math/sequences/arithmeticSequence.d.ts.map +1 -0
- package/lib/math/sequences/geometricSequence.d.ts +4 -0
- package/lib/math/sequences/geometricSequence.d.ts.map +1 -0
- package/lib/math/sequences/sequence.d.ts +15 -0
- package/lib/math/sequences/sequence.d.ts.map +1 -0
- package/lib/math/sets/discreteSet.d.ts +11 -0
- package/lib/math/sets/discreteSet.d.ts.map +1 -0
- package/lib/math/sets/discreteSet.js +1 -1
- package/lib/math/sets/emptySet.d.ts +1 -0
- package/lib/math/sets/emptySet.d.ts.map +1 -0
- package/lib/math/sets/intervals/intervals.d.ts +27 -0
- package/lib/math/sets/intervals/intervals.d.ts.map +1 -0
- package/lib/math/sets/intervals/intervals.js +5 -5
- package/lib/math/sets/mathSet.d.ts +8 -0
- package/lib/math/sets/mathSet.d.ts.map +1 -0
- package/lib/math/sets/mathSetInterface.d.ts +6 -0
- package/lib/math/sets/mathSetInterface.d.ts.map +1 -0
- package/lib/math/trigonometry/remarkableValue.d.ts +11 -0
- package/lib/math/trigonometry/remarkableValue.d.ts.map +1 -0
- package/lib/math/trigonometry/remarkableValue.js +6 -6
- package/lib/math/trigonometry/remarkableValues.d.ts +3 -0
- package/lib/math/trigonometry/remarkableValues.d.ts.map +1 -0
- package/lib/math/trigonometry/remarkableValues.js +6 -6
- package/lib/math/utils/arithmetic/coprimesOf.d.ts +2 -0
- package/lib/math/utils/arithmetic/coprimesOf.d.ts.map +1 -0
- package/lib/math/utils/arithmetic/dividersOf.d.ts +2 -0
- package/lib/math/utils/arithmetic/dividersOf.d.ts.map +1 -0
- package/lib/math/utils/arithmetic/gcd.d.ts +2 -0
- package/lib/math/utils/arithmetic/gcd.d.ts.map +1 -0
- package/lib/math/utils/arithmetic/isSquare.d.ts +2 -0
- package/lib/math/utils/arithmetic/isSquare.d.ts.map +1 -0
- package/lib/math/utils/arithmetic/lcd.d.ts +2 -0
- package/lib/math/utils/arithmetic/lcd.d.ts.map +1 -0
- package/lib/math/utils/arithmetic/nonCoprimesOf.d.ts +2 -0
- package/lib/math/utils/arithmetic/nonCoprimesOf.d.ts.map +1 -0
- package/lib/math/utils/arithmetic/nonDividersOf.d.ts +2 -0
- package/lib/math/utils/arithmetic/nonDividersOf.d.ts.map +1 -0
- package/lib/math/utils/arithmetic/primeFactors.d.ts +6 -0
- package/lib/math/utils/arithmetic/primeFactors.d.ts.map +1 -0
- package/lib/math/utils/decimals/decimalPartLengthOf.d.ts +2 -0
- package/lib/math/utils/decimals/decimalPartLengthOf.d.ts.map +1 -0
- package/lib/math/utils/random/randTupleInt.d.ts +14 -0
- package/lib/math/utils/random/randTupleInt.d.ts.map +1 -0
- package/lib/math/utils/random/randTupleInt.js +1 -1
- package/lib/math/utils/random/randint.d.ts +5 -0
- package/lib/math/utils/random/randint.d.ts.map +1 -0
- package/lib/math/utils/round.d.ts +2 -0
- package/lib/math/utils/round.d.ts.map +1 -0
- package/lib/tree/nodes/functions/cosNode.d.ts +10 -0
- package/lib/tree/nodes/functions/cosNode.d.ts.map +1 -0
- package/lib/tree/nodes/functions/functionNode.d.ts +15 -0
- package/lib/tree/nodes/functions/functionNode.d.ts.map +1 -0
- package/lib/tree/nodes/functions/oppositeNode.d.ts +8 -0
- package/lib/tree/nodes/functions/oppositeNode.d.ts.map +1 -0
- package/lib/tree/nodes/functions/sinNode.d.ts +1 -0
- package/lib/tree/nodes/functions/sinNode.d.ts.map +1 -0
- package/lib/tree/nodes/functions/sqrtNode.d.ts +9 -0
- package/lib/tree/nodes/functions/sqrtNode.d.ts.map +1 -0
- package/lib/tree/nodes/node.d.ts +13 -0
- package/lib/tree/nodes/node.d.ts.map +1 -0
- package/lib/tree/nodes/numbers/constantNode.d.ts +10 -0
- package/lib/tree/nodes/numbers/constantNode.d.ts.map +1 -0
- package/lib/tree/nodes/numbers/numberNode.d.ts +11 -0
- package/lib/tree/nodes/numbers/numberNode.d.ts.map +1 -0
- package/lib/tree/nodes/numbers/piNode.d.ts +3 -0
- package/lib/tree/nodes/numbers/piNode.d.ts.map +1 -0
- package/lib/tree/nodes/operators/addNode.d.ts +8 -0
- package/lib/tree/nodes/operators/addNode.d.ts.map +1 -0
- package/lib/tree/nodes/operators/divideNode.d.ts +12 -0
- package/lib/tree/nodes/operators/divideNode.d.ts.map +1 -0
- package/lib/tree/nodes/operators/equalNode.d.ts +8 -0
- package/lib/tree/nodes/operators/equalNode.d.ts.map +1 -0
- package/lib/tree/nodes/operators/fractionNode.d.ts +12 -0
- package/lib/tree/nodes/operators/fractionNode.d.ts.map +1 -0
- package/lib/tree/nodes/operators/multiplyNode.d.ts +8 -0
- package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -0
- package/lib/tree/nodes/operators/operatorNode.d.ts +22 -0
- package/lib/tree/nodes/operators/operatorNode.d.ts.map +1 -0
- package/lib/tree/nodes/operators/powerNode.d.ts +8 -0
- package/lib/tree/nodes/operators/powerNode.d.ts.map +1 -0
- package/lib/tree/nodes/operators/substractNode.d.ts +8 -0
- package/lib/tree/nodes/operators/substractNode.d.ts.map +1 -0
- package/lib/tree/nodes/variables/variableNode.d.ts +9 -0
- package/lib/tree/nodes/variables/variableNode.d.ts.map +1 -0
- package/lib/tree/parsers/derivateParser.d.ts +1 -0
- package/lib/tree/parsers/derivateParser.d.ts.map +1 -0
- package/lib/tree/parsers/simplify.d.ts +3 -0
- package/lib/tree/parsers/simplify.d.ts.map +1 -0
- package/lib/utils/arrayEqual.d.ts +2 -0
- package/lib/utils/arrayEqual.d.ts.map +1 -0
- package/lib/utils/coinFlip.d.ts +2 -0
- package/lib/utils/coinFlip.d.ts.map +1 -0
- package/lib/utils/random.d.ts +2 -0
- package/lib/utils/random.d.ts.map +1 -0
- package/lib/utils/shuffle.d.ts +2 -0
- package/lib/utils/shuffle.d.ts.map +1 -0
- package/package.json +6 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integer.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/integer/integer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG/C,8BAAsB,kBAAkB;IACtC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM;CAGjC;AAED,qBAAa,OAAQ,YAAW,MAAM;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,UAAU,CAAC;gBAEL,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;IAMvC,MAAM,IAAI,IAAI;IAId,KAAK,CAAC,SAAS,EAAE,MAAM;IAiCvB,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;CAW3B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Integer = exports.IntegerConstructor = void 0;
|
|
4
|
-
const randint_1 = require("
|
|
5
|
-
const numberNode_1 = require("
|
|
4
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
5
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
6
6
|
const nombre_1 = require("../nombre");
|
|
7
7
|
const rational_1 = require("../rationals/rational");
|
|
8
8
|
class IntegerConstructor {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Node } from '../../../tree/nodes/node';
|
|
2
|
+
import { Nombre, NumberType } from '../nombre';
|
|
3
|
+
export declare class Power implements Nombre {
|
|
4
|
+
value: number;
|
|
5
|
+
tex: string;
|
|
6
|
+
type: NumberType;
|
|
7
|
+
operand: number;
|
|
8
|
+
power: number;
|
|
9
|
+
constructor(a: number, b: number);
|
|
10
|
+
simplify(): Node;
|
|
11
|
+
toDecimalWriting(): Nombre;
|
|
12
|
+
toTree(): Node;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=power.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"power.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/integer/power.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAG/C,qBAAa,KAAM,YAAW,MAAM;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;gBACF,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAOhC,QAAQ,IAAI,IAAI;IAQhB,gBAAgB,IAAI,MAAM;IAkB1B,MAAM,IAAI,IAAI;CAGf"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Power = void 0;
|
|
4
|
-
const numberNode_1 = require("
|
|
5
|
-
const powerNode_1 = require("
|
|
4
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
5
|
+
const powerNode_1 = require("../../../tree/nodes/operators/powerNode");
|
|
6
6
|
const nombre_1 = require("../nombre");
|
|
7
7
|
const integer_1 = require("./integer");
|
|
8
8
|
class Power {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Node } from '../../tree/nodes/node';
|
|
2
|
+
export declare enum NumberType {
|
|
3
|
+
Integer = 0,
|
|
4
|
+
Decimal = 1,
|
|
5
|
+
Rational = 2,
|
|
6
|
+
Real = 3
|
|
7
|
+
}
|
|
8
|
+
export interface Nombre {
|
|
9
|
+
value: number;
|
|
10
|
+
tex: string;
|
|
11
|
+
type: NumberType;
|
|
12
|
+
toTree: () => Node;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=nombre.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nombre.d.ts","sourceRoot":"","sources":["../../../src/math/numbers/nombre.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAE7C,oBAAY,UAAU;IACpB,OAAO,IAAA;IACP,OAAO,IAAA;IACP,QAAQ,IAAA;IACR,IAAI,IAAA;CACL;AACD,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Node } from '../../../tree/nodes/node';
|
|
2
|
+
import { Nombre, NumberType } from '../nombre';
|
|
3
|
+
export declare abstract class RationalConstructor {
|
|
4
|
+
/**
|
|
5
|
+
* @param maxGcd max number by which the fraction is simplifiable
|
|
6
|
+
*/
|
|
7
|
+
static randomSimplifiable(maxGcd?: number): Rational;
|
|
8
|
+
static randomIrreductible(max?: number): Rational;
|
|
9
|
+
}
|
|
10
|
+
export declare class Rational implements Nombre {
|
|
11
|
+
num: number;
|
|
12
|
+
denum: number;
|
|
13
|
+
tex: string;
|
|
14
|
+
value: number;
|
|
15
|
+
isSimplified: boolean;
|
|
16
|
+
type: NumberType;
|
|
17
|
+
constructor(numerator: number, denumerator: number);
|
|
18
|
+
toTex(): string;
|
|
19
|
+
add(nb: Nombre): Nombre;
|
|
20
|
+
multiply(nb: Nombre): Nombre;
|
|
21
|
+
divide(nb: Nombre): Nombre;
|
|
22
|
+
opposite(): Rational;
|
|
23
|
+
toTree(): Node;
|
|
24
|
+
simplify(): Nombre;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=rational.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rational.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/rationals/rational.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAO7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,8BAAsB,mBAAmB;IACvC;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAAC,MAAM,GAAE,MAAW;IAW7C,MAAM,CAAC,kBAAkB,CAAC,GAAG,GAAE,MAAW;CAO3C;AAED,qBAAa,QAAS,YAAW,MAAM;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,UAAU,CAAC;gBAEL,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAUlD,KAAK;IAIL,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;IAgBvB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;IAgB5B,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;IAgB1B,QAAQ,IAAI,QAAQ;IAIpB,MAAM,IAAI,IAAI;IAId,QAAQ,IAAI,MAAM;CAMnB"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Rational = exports.RationalConstructor = void 0;
|
|
4
|
-
const coprimesOf_1 = require("
|
|
5
|
-
const gcd_1 = require("
|
|
6
|
-
const lcd_1 = require("
|
|
7
|
-
const randint_1 = require("
|
|
8
|
-
const numberNode_1 = require("
|
|
9
|
-
const fractionNode_1 = require("
|
|
10
|
-
const random_1 = require("
|
|
11
|
-
const shuffle_1 = require("
|
|
4
|
+
const coprimesOf_1 = require("../../../math/utils/arithmetic/coprimesOf");
|
|
5
|
+
const gcd_1 = require("../../../math/utils/arithmetic/gcd");
|
|
6
|
+
const lcd_1 = require("../../../math/utils/arithmetic/lcd");
|
|
7
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
8
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
9
|
+
const fractionNode_1 = require("../../../tree/nodes/operators/fractionNode");
|
|
10
|
+
const random_1 = require("../../../utils/random");
|
|
11
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
12
12
|
const integer_1 = require("../integer/integer");
|
|
13
13
|
const nombre_1 = require("../nombre");
|
|
14
14
|
class RationalConstructor {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Node } from '../../../tree/nodes/node';
|
|
2
|
+
import { Nombre, NumberType } from '../nombre';
|
|
3
|
+
export declare class Real implements Nombre {
|
|
4
|
+
value: number;
|
|
5
|
+
tex: string;
|
|
6
|
+
type: NumberType;
|
|
7
|
+
constructor(value: number, tex: string);
|
|
8
|
+
toTree(): Node;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=real.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"real.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/reals/real.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,qBAAa,IAAK,YAAW,MAAM;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,UAAU,CAAC;gBACL,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAKtC,MAAM,IAAI,IAAI;CAGf"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Real = void 0;
|
|
4
|
-
const numberNode_1 = require("
|
|
4
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
5
5
|
const nombre_1 = require("../nombre");
|
|
6
6
|
class Real {
|
|
7
7
|
constructor(value, tex) {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Node } from '../../../tree/nodes/node';
|
|
2
|
+
import { Real } from './real';
|
|
3
|
+
export declare abstract class SquareRootConstructor {
|
|
4
|
+
/**
|
|
5
|
+
* @returns simplifiable square root type sqrt(c)=a*sqrt(b)
|
|
6
|
+
*/
|
|
7
|
+
static randomSimplifiable({ allowPerfectSquare, maxSquare }: {
|
|
8
|
+
allowPerfectSquare?: boolean | undefined;
|
|
9
|
+
maxSquare?: number | undefined;
|
|
10
|
+
}): SquareRoot;
|
|
11
|
+
}
|
|
12
|
+
export declare class SquareRoot extends Real {
|
|
13
|
+
operand: number;
|
|
14
|
+
constructor(operand: number);
|
|
15
|
+
simplify(): Real;
|
|
16
|
+
toTex(): string;
|
|
17
|
+
toTree(): Node;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=squareRoot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"squareRoot.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/reals/squareRoot.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,8BAAsB,qBAAqB;IACzC;;OAEG;IACH,MAAM,CAAC,kBAAkB,CAAC,EAAE,kBAA0B,EAAE,SAAc,EAAE;;;KAAA,GAAG,UAAU;CAStF;AAED,qBAAa,UAAW,SAAQ,IAAI;IAClC,OAAO,EAAE,MAAM,CAAC;gBACJ,OAAO,EAAE,MAAM;IAK3B,QAAQ,IAAI,IAAI;IA+BhB,KAAK,IAAI,MAAM;IAIf,MAAM,IAAI,IAAI;CAGf"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SquareRoot = exports.SquareRootConstructor = void 0;
|
|
4
|
-
const isSquare_1 = require("
|
|
5
|
-
const primeFactors_1 = require("
|
|
6
|
-
const randint_1 = require("
|
|
7
|
-
const sqrtNode_1 = require("
|
|
8
|
-
const numberNode_1 = require("
|
|
9
|
-
const multiplyNode_1 = require("
|
|
4
|
+
const isSquare_1 = require("../../../math/utils/arithmetic/isSquare");
|
|
5
|
+
const primeFactors_1 = require("../../../math/utils/arithmetic/primeFactors");
|
|
6
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
7
|
+
const sqrtNode_1 = require("../../../tree/nodes/functions/sqrtNode");
|
|
8
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
9
|
+
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
10
10
|
const real_1 = require("./real");
|
|
11
11
|
class SquareRootConstructor {
|
|
12
12
|
/**
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Nombre } from '../numbers/nombre';
|
|
2
|
+
import { MathSet } from '../sets/mathSet';
|
|
3
|
+
import { Polynomial } from './polynomial';
|
|
4
|
+
export declare abstract class AffineConstructor {
|
|
5
|
+
static random(domainA?: MathSet, domainB?: MathSet): Affine;
|
|
6
|
+
static differentRandoms(nb: number, domainA?: MathSet, domainB?: MathSet): Affine[];
|
|
7
|
+
}
|
|
8
|
+
export declare class Affine extends Polynomial {
|
|
9
|
+
a: number;
|
|
10
|
+
b: number;
|
|
11
|
+
variable: string;
|
|
12
|
+
constructor(a: number, b: number, variable?: string);
|
|
13
|
+
getRoot(): Nombre;
|
|
14
|
+
toString(): string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=affine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"affine.d.ts","sourceRoot":"","sources":["../../../src/math/polynomials/affine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAI3C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,8BAAsB,iBAAiB;IACrC,MAAM,CAAC,MAAM,CACX,OAAO,GAAE,OAAmF,EAC5F,OAAO,GAAE,OAAqC,GAC7C,MAAM;IAMT,MAAM,CAAC,gBAAgB,CACrB,EAAE,EAAE,MAAM,EACV,OAAO,GAAE,OAAmF,EAC5F,OAAO,GAAE,OAAqC,GAC7C,MAAM,EAAE;CAWZ;AAED,qBAAa,MAAO,SAAQ,UAAU;IACpC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;gBAEL,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAY;IAOxD,OAAO,IAAI,MAAM;IAIjB,QAAQ,IAAI,MAAM;CAGnB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Node } from '../../tree/nodes/node';
|
|
2
|
+
export declare class Polynomial {
|
|
3
|
+
degree: number;
|
|
4
|
+
variable: string;
|
|
5
|
+
/**
|
|
6
|
+
* coefficients[i] est le coeff de x^i
|
|
7
|
+
*/
|
|
8
|
+
coefficients: number[];
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param coefficients coefficients[i] est le coeff de x^i
|
|
12
|
+
* @param variable
|
|
13
|
+
*/
|
|
14
|
+
constructor(coefficients: number[], variable?: string);
|
|
15
|
+
equals(P: Polynomial): boolean;
|
|
16
|
+
getRoots(): void;
|
|
17
|
+
add(P: Polynomial): Polynomial;
|
|
18
|
+
times(nb: number): Polynomial;
|
|
19
|
+
multiply(Q: Polynomial): Polynomial;
|
|
20
|
+
opposite(): Polynomial;
|
|
21
|
+
toTree(): Node;
|
|
22
|
+
toTex(): string;
|
|
23
|
+
toString(): string;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=polynomial.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polynomial.d.ts","sourceRoot":"","sources":["../../../src/math/polynomials/polynomial.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAS7C,qBAAa,UAAU;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,YAAY,EAAE,MAAM,EAAE,CAAC;IAEvB;;;;OAIG;gBACS,YAAY,EAAE,MAAM,EAAE,EAAE,QAAQ,GAAE,MAAY;IAS1D,MAAM,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO;IAG9B,QAAQ;IACR,GAAG,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU;IAc9B,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU;IAM7B,QAAQ,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU;IAkBnC,QAAQ,IAAI,UAAU;IAOtB,MAAM,IAAI,IAAI;IAmCd,KAAK,IAAI,MAAM;IAkBf,QAAQ,IAAI,MAAM;CAGnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=arithmeticSequence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arithmeticSequence.d.ts","sourceRoot":"","sources":["../../../src/math/sequences/arithmeticSequence.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometricSequence.d.ts","sourceRoot":"","sources":["../../../src/math/sequences/geometricSequence.ts"],"names":[],"mappings":"AAEA,8BAAsB,4BAA4B;IAC9C,MAAM,CAAC,MAAM;CAGhB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Node } from '../../tree/nodes/node';
|
|
2
|
+
declare enum SequenceType {
|
|
3
|
+
arithmetic = 0,
|
|
4
|
+
geometric = 1
|
|
5
|
+
}
|
|
6
|
+
export declare class Sequence {
|
|
7
|
+
type: SequenceType;
|
|
8
|
+
firstTerm: Node;
|
|
9
|
+
reason?: Node;
|
|
10
|
+
recurrenceFormula?: string;
|
|
11
|
+
explicitFormula?: string;
|
|
12
|
+
constructor(type: SequenceType, firstTerm: Node, reason?: Node);
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=sequence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sequence.d.ts","sourceRoot":"","sources":["../../../src/math/sequences/sequence.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAE7C,aAAK,YAAY;IACf,UAAU,IAAA;IACV,SAAS,IAAA;CACV;AAED,qBAAa,QAAQ;IACnB,IAAI,EAAE,YAAY,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;gBAEb,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,IAAI;CAK/D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Nombre } from '../numbers/nombre';
|
|
2
|
+
import { MathSetInterface } from './mathSetInterface';
|
|
3
|
+
export declare class DiscreteSet implements MathSetInterface {
|
|
4
|
+
elements: Nombre[];
|
|
5
|
+
tex: string;
|
|
6
|
+
constructor(elements: Nombre[]);
|
|
7
|
+
toTex(): string;
|
|
8
|
+
includes(el: Nombre): boolean;
|
|
9
|
+
getRandomElement(): Nombre;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=discreteSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discreteSet.d.ts","sourceRoot":"","sources":["../../../src/math/sets/discreteSet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,qBAAa,WAAY,YAAW,gBAAgB;IAClD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;gBACA,QAAQ,EAAE,MAAM,EAAE;IAW9B,KAAK,IAAI,MAAM;IAIf,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAI7B,gBAAgB,IAAI,MAAM;CAG3B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DiscreteSet = void 0;
|
|
4
|
-
const random_1 = require("
|
|
4
|
+
const random_1 = require("../../utils/random");
|
|
5
5
|
class DiscreteSet {
|
|
6
6
|
constructor(elements) {
|
|
7
7
|
this.elements = Array.from(new Set(elements));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=emptySet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emptySet.d.ts","sourceRoot":"","sources":["../../../src/math/sets/emptySet.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Nombre, NumberType } from '../../../math/numbers/nombre';
|
|
2
|
+
import { DiscreteSet } from '../discreteSet';
|
|
3
|
+
import { MathSet } from '../mathSet';
|
|
4
|
+
import { MathSetInterface } from '../mathSetInterface';
|
|
5
|
+
declare enum BoundType {
|
|
6
|
+
OO = "]a;b[",
|
|
7
|
+
OF = "]a;b]",
|
|
8
|
+
FO = "[a;b[",
|
|
9
|
+
FF = "[a;b]"
|
|
10
|
+
}
|
|
11
|
+
export declare class Interval implements MathSetInterface {
|
|
12
|
+
min: number;
|
|
13
|
+
max: number;
|
|
14
|
+
boundType: BoundType;
|
|
15
|
+
type: NumberType;
|
|
16
|
+
tex: string;
|
|
17
|
+
/**
|
|
18
|
+
* [[a; b]] pour un interval d'integer; [a;b] pour des réels
|
|
19
|
+
*/
|
|
20
|
+
constructor(tex?: string);
|
|
21
|
+
exclude(nb: number): MathSet;
|
|
22
|
+
difference(set: DiscreteSet): MathSet;
|
|
23
|
+
toTex(): string;
|
|
24
|
+
getRandomElement(precision?: number): Nombre;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=intervals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intervals.d.ts","sourceRoot":"","sources":["../../../../src/math/sets/intervals/intervals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,aAAK,SAAS;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;IACZ,EAAE,UAAU;CACb;AAED,qBAAa,QAAS,YAAW,gBAAgB;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;gBACS,GAAG,SAAc;IA+C7B,OAAO,CAAC,EAAE,EAAE,MAAM;IAWlB,UAAU,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO;IAYrC,KAAK,IAAI,MAAM;IAIf,gBAAgB,CAAC,SAAS,GAAE,MAAiD,GAAG,MAAM;CAYvF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Interval = void 0;
|
|
4
|
-
const epsilon_1 = require("
|
|
5
|
-
const integer_1 = require("
|
|
6
|
-
const nombre_1 = require("
|
|
7
|
-
const real_1 = require("
|
|
8
|
-
const round_1 = require("
|
|
4
|
+
const epsilon_1 = require("../../../math/numbers/epsilon");
|
|
5
|
+
const integer_1 = require("../../../math/numbers/integer/integer");
|
|
6
|
+
const nombre_1 = require("../../../math/numbers/nombre");
|
|
7
|
+
const real_1 = require("../../../math/numbers/reals/real");
|
|
8
|
+
const round_1 = require("../../../math/utils/round");
|
|
9
9
|
const mathSet_1 = require("../mathSet");
|
|
10
10
|
var BoundType;
|
|
11
11
|
(function (BoundType) {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Nombre } from "../numbers/nombre";
|
|
2
|
+
import { MathSetInterface } from "./mathSetInterface";
|
|
3
|
+
export declare class MathSet implements MathSetInterface {
|
|
4
|
+
tex: string;
|
|
5
|
+
getRandomElement: () => Nombre;
|
|
6
|
+
constructor(tex: string, getRandomElement: () => Nombre);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=mathSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mathSet.d.ts","sourceRoot":"","sources":["../../../src/math/sets/mathSet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,qBAAa,OAAQ,YAAW,gBAAgB;IAC9C,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,MAAM,CAAC;gBACnB,GAAG,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,MAAM;CAIxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mathSetInterface.d.ts","sourceRoot":"","sources":["../../../src/math/sets/mathSetInterface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,MAAM,CAAC;CAChC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Node } from '../../tree/nodes/node';
|
|
2
|
+
export interface RemarkableValue {
|
|
3
|
+
angle: Node;
|
|
4
|
+
cos: Node;
|
|
5
|
+
sin: Node;
|
|
6
|
+
}
|
|
7
|
+
export declare abstract class RemarkableValueConstructor {
|
|
8
|
+
static mainInterval: () => RemarkableValue;
|
|
9
|
+
static simplifiable: () => RemarkableValue;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=remarkableValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remarkableValue.d.ts","sourceRoot":"","sources":["../../../src/math/trigonometry/remarkableValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAW7C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,GAAG,EAAE,IAAI,CAAC;CACX;AAED,8BAAsB,0BAA0B;IAC9C,MAAM,CAAC,YAAY,QAAO,eAAe,CAIvC;IAEF,MAAM,CAAC,YAAY,QAAO,eAAe,CASvC;CACH"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RemarkableValueConstructor = void 0;
|
|
4
|
-
const numberNode_1 = require("
|
|
5
|
-
const piNode_1 = require("
|
|
6
|
-
const addNode_1 = require("
|
|
7
|
-
const multiplyNode_1 = require("
|
|
8
|
-
const simplify_1 = require("
|
|
9
|
-
const random_1 = require("
|
|
4
|
+
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
5
|
+
const piNode_1 = require("../../tree/nodes/numbers/piNode");
|
|
6
|
+
const addNode_1 = require("../../tree/nodes/operators/addNode");
|
|
7
|
+
const multiplyNode_1 = require("../../tree/nodes/operators/multiplyNode");
|
|
8
|
+
const simplify_1 = require("../../tree/parsers/simplify");
|
|
9
|
+
const random_1 = require("../../utils/random");
|
|
10
10
|
const randint_1 = require("../utils/random/randint");
|
|
11
11
|
const remarkableValues_1 = require("./remarkableValues");
|
|
12
12
|
class RemarkableValueConstructor {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remarkableValues.d.ts","sourceRoot":"","sources":["../../../src/math/trigonometry/remarkableValues.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,eAAO,MAAM,qBAAqB,EAAE,eAAe,EAyClD,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.remarkableTrigoValues = void 0;
|
|
4
|
-
const oppositeNode_1 = require("
|
|
5
|
-
const sqrtNode_1 = require("
|
|
6
|
-
const numberNode_1 = require("
|
|
7
|
-
const piNode_1 = require("
|
|
8
|
-
const fractionNode_1 = require("
|
|
9
|
-
const multiplyNode_1 = require("
|
|
4
|
+
const oppositeNode_1 = require("../../tree/nodes/functions/oppositeNode");
|
|
5
|
+
const sqrtNode_1 = require("../../tree/nodes/functions/sqrtNode");
|
|
6
|
+
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
7
|
+
const piNode_1 = require("../../tree/nodes/numbers/piNode");
|
|
8
|
+
const fractionNode_1 = require("../../tree/nodes/operators/fractionNode");
|
|
9
|
+
const multiplyNode_1 = require("../../tree/nodes/operators/multiplyNode");
|
|
10
10
|
exports.remarkableTrigoValues = [
|
|
11
11
|
{
|
|
12
12
|
angle: new numberNode_1.NumberNode(0),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coprimesOf.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/coprimesOf.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,OAAQ,MAAM,aAMpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dividersOf.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/dividersOf.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,OAAQ,MAAM,aAMpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gcd.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/gcd.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isSquare.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/isSquare.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,MAAO,MAAM,KAAG,OAEpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lcd.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/lcd.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,UAMvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nonCoprimesOf.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/nonCoprimesOf.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,OAAQ,MAAM,aAMvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nonDividersOf.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/nonDividersOf.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,OAAQ,MAAM,aAStC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primeFactors.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/arithmetic/primeFactors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,YAAY,MAAO,MAAM,KAAG,MAAM,EAa9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decimalPartLengthOf.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/decimals/decimalPartLengthOf.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,MAAO,MAAM,WAS5C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface randTupleIntOptions {
|
|
2
|
+
from: number;
|
|
3
|
+
to?: number;
|
|
4
|
+
excludes?: number[];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @param size tuple length
|
|
8
|
+
* @param options
|
|
9
|
+
* @returns array of size nb with contents = randint(from, to, exxcludes)
|
|
10
|
+
*/
|
|
11
|
+
export declare const randTupleInt: (size: number, options: randTupleIntOptions) => number[];
|
|
12
|
+
export declare const distinctRandTupleInt: (nb: number, size: number, options: randTupleIntOptions) => number[][];
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=randTupleInt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"randTupleInt.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/random/randTupleInt.ts"],"names":[],"mappings":"AAGA,UAAU,mBAAmB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,SAAU,MAAM,WAAW,mBAAmB,KAAG,MAAM,EAM/E,CAAC;AAEF,eAAO,MAAM,oBAAoB,OAAQ,MAAM,QAAQ,MAAM,WAAW,mBAAmB,KAAG,MAAM,EAAE,EAUrG,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.distinctRandTupleInt = exports.randTupleInt = void 0;
|
|
4
|
-
const arrayEqual_1 = require("
|
|
4
|
+
const arrayEqual_1 = require("../../../utils/arrayEqual");
|
|
5
5
|
const randint_1 = require("./randint");
|
|
6
6
|
/**
|
|
7
7
|
* @param size tuple length
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"randint.d.ts","sourceRoot":"","sources":["../../../../src/math/utils/random/randint.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,MAAO,MAAM,MAAM,MAAM,aAAa,MAAM,EAAE,KAAG,MAQpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"round.d.ts","sourceRoot":"","sources":["../../../src/math/utils/round.ts"],"names":[],"mappings":"AAEA,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE1D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Node, NodeType } from '../node';
|
|
2
|
+
import { FunctionNode } from './functionNode';
|
|
3
|
+
export declare class CosNode extends FunctionNode implements Node {
|
|
4
|
+
type: NodeType;
|
|
5
|
+
constructor(child: Node);
|
|
6
|
+
toMathString(): string;
|
|
7
|
+
toTex(): string;
|
|
8
|
+
simplify(): Node;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=cosNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cosNode.d.ts","sourceRoot":"","sources":["../../../../src/tree/nodes/functions/cosNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,YAAY,EAAgB,MAAM,gBAAgB,CAAC;AAE5D,qBAAa,OAAQ,SAAQ,YAAa,YAAW,IAAI;IACvD,IAAI,EAAE,QAAQ,CAAqB;gBAEvB,KAAK,EAAE,IAAI;IAIvB,YAAY,IAAI,MAAM;IAItB,KAAK,IAAI,MAAM;IAIf,QAAQ,IAAI,IAAI;CAGjB"}
|