math-exercises 1.3.5 → 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 +4 -4
- 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 -2
- 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 +17 -17
- 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 +9 -9
- 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 +8 -8
- 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 +12 -12
- 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 +8 -8
- package/lib/math/polynomials/affine.d.ts +16 -0
- package/lib/math/polynomials/affine.d.ts.map +1 -0
- package/lib/math/polynomials/affine.js +4 -4
- 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/sequences/sequence.js +0 -2
- 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 +4 -4
- 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 +7 -7
- 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 +2 -2
- 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 +7 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Exercise, Question } from '../../../exercises/exercise';
|
|
2
|
+
/**
|
|
3
|
+
* type ax+b=cx+d
|
|
4
|
+
*/
|
|
5
|
+
export declare const equationType4Exercise: Exercise;
|
|
6
|
+
export declare function getEquationType4ExerciseQuestion(): Question;
|
|
7
|
+
//# sourceMappingURL=equationType4Exercise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equationType4Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/equation/equationType4Exercise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAU9D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAUnC,CAAC;AAEF,wBAAgB,gCAAgC,IAAI,QAAQ,CAmB3D"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getEquationType4ExerciseQuestion = exports.equationType4Exercise = void 0;
|
|
4
|
-
const getDistinctQuestions_1 = require("
|
|
5
|
-
const integer_1 = require("
|
|
6
|
-
const rational_1 = require("
|
|
7
|
-
const affine_1 = require("
|
|
8
|
-
const discreteSet_1 = require("
|
|
9
|
-
const intervals_1 = require("
|
|
10
|
-
const equalNode_1 = require("
|
|
11
|
-
const variableNode_1 = require("
|
|
4
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const integer_1 = require("../../../math/numbers/integer/integer");
|
|
6
|
+
const rational_1 = require("../../../math/numbers/rationals/rational");
|
|
7
|
+
const affine_1 = require("../../../math/polynomials/affine");
|
|
8
|
+
const discreteSet_1 = require("../../../math/sets/discreteSet");
|
|
9
|
+
const intervals_1 = require("../../../math/sets/intervals/intervals");
|
|
10
|
+
const equalNode_1 = require("../../../tree/nodes/operators/equalNode");
|
|
11
|
+
const variableNode_1 = require("../../../tree/nodes/variables/variableNode");
|
|
12
12
|
/**
|
|
13
13
|
* type ax+b=cx+d
|
|
14
14
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* type (ax+b)(cx+d) ± (ax+b)(ex+f)
|
|
3
|
+
*/
|
|
4
|
+
import { Exercise, Question } from '../../../exercises/exercise';
|
|
5
|
+
export declare const factoType1Exercise: Exercise;
|
|
6
|
+
export declare function getFactoType1Question(): Question;
|
|
7
|
+
//# sourceMappingURL=factoType1Exercise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factoType1Exercise.d.ts","sourceRoot":"","sources":["../../../../src/exercises/calculLitteral/factorisation/factoType1Exercise.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAS9D,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CA4BhD"}
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getFactoType1Question = exports.factoType1Exercise = void 0;
|
|
7
|
-
const getDistinctQuestions_1 = require("
|
|
8
|
-
const affine_1 = require("
|
|
9
|
-
const addNode_1 = require("
|
|
10
|
-
const multiplyNode_1 = require("
|
|
11
|
-
const substractNode_1 = require("
|
|
12
|
-
const random_1 = require("
|
|
13
|
-
const shuffle_1 = require("
|
|
7
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
8
|
+
const affine_1 = require("../../../math/polynomials/affine");
|
|
9
|
+
const addNode_1 = require("../../../tree/nodes/operators/addNode");
|
|
10
|
+
const multiplyNode_1 = require("../../../tree/nodes/operators/multiplyNode");
|
|
11
|
+
const substractNode_1 = require("../../../tree/nodes/operators/substractNode");
|
|
12
|
+
const random_1 = require("../../../utils/random");
|
|
13
|
+
const shuffle_1 = require("../../../utils/shuffle");
|
|
14
14
|
exports.factoType1Exercise = {
|
|
15
15
|
id: 'facto1',
|
|
16
16
|
connector: '=',
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Question {
|
|
2
|
+
instruction?: string;
|
|
3
|
+
startStatement?: string;
|
|
4
|
+
answer: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Exercise {
|
|
7
|
+
id: string;
|
|
8
|
+
instruction: string;
|
|
9
|
+
isSingleStep: boolean;
|
|
10
|
+
label: string;
|
|
11
|
+
section: string;
|
|
12
|
+
levels: string[];
|
|
13
|
+
connector: string;
|
|
14
|
+
generator(nb: number): Question[];
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=exercise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exercise.d.ts","sourceRoot":"","sources":["../../src/exercises/exercise.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,EAAE,CAAC;CACnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exercises.d.ts","sourceRoot":"","sources":["../../src/exercises/exercises.ts"],"names":[],"mappings":"AAoCA,eAAO,MAAM,IAAI,MAAO,CAAC;AAEzB,eAAO,MAAM,SAAS,iCAoErB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"midpoint.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/cartesian/midpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM9D,eAAO,MAAM,QAAQ,EAAE,QAStB,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAU9C"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getMidpointQuestion = exports.midpoint = void 0;
|
|
4
|
-
const getDistinctQuestions_1 = require("
|
|
5
|
-
const point_1 = require("
|
|
6
|
-
const randTupleInt_1 = require("
|
|
7
|
-
const numberNode_1 = require("
|
|
4
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const point_1 = require("../../../math/geometry/point");
|
|
6
|
+
const randTupleInt_1 = require("../../../math/utils/random/randTupleInt");
|
|
7
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
8
8
|
exports.midpoint = {
|
|
9
9
|
id: 'midpoint',
|
|
10
10
|
connector: '=',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scalarProductViaCoords.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/vectors/scalarProductViaCoords.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAM9D,eAAO,MAAM,sBAAsB,EAAE,QASpC,CAAC;AAEF,wBAAgB,iCAAiC,IAAI,QAAQ,CAU5D"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getScalarProductViaCoordsQuestion = exports.scalarProductViaCoords = void 0;
|
|
4
|
-
const getDistinctQuestions_1 = require("
|
|
5
|
-
const vector_1 = require("
|
|
6
|
-
const randTupleInt_1 = require("
|
|
7
|
-
const numberNode_1 = require("
|
|
4
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
5
|
+
const vector_1 = require("../../../math/geometry/vector");
|
|
6
|
+
const randTupleInt_1 = require("../../../math/utils/random/randTupleInt");
|
|
7
|
+
const numberNode_1 = require("../../../tree/nodes/numbers/numberNode");
|
|
8
8
|
exports.scalarProductViaCoords = {
|
|
9
9
|
id: 'scalarProductViaCoords',
|
|
10
10
|
connector: '=',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=scalarProductViaNorms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scalarProductViaNorms.d.ts","sourceRoot":"","sources":["../../../../src/exercises/geometry/vectors/scalarProductViaNorms.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* a^b/a^c
|
|
3
|
+
*/
|
|
4
|
+
import { Exercise, Question } from '../exercise';
|
|
5
|
+
export declare const powersDivision: Exercise;
|
|
6
|
+
export declare const powersOfTenDivision: Exercise;
|
|
7
|
+
export declare function getPowersDivisionQuestion(useOnlyPowersOfTen?: boolean): Question;
|
|
8
|
+
//# sourceMappingURL=powersDivision.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"powersDivision.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersDivision.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,cAAc,EAAE,QAS5B,CAAC;AACF,eAAO,MAAM,mBAAmB,EAAE,QASjC,CAAC;AAEF,wBAAgB,yBAAyB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAevF"}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getPowersDivisionQuestion = exports.powersOfTenDivision = exports.powersDivision = void 0;
|
|
7
|
-
const power_1 = require("
|
|
8
|
-
const randint_1 = require("
|
|
9
|
-
const numberNode_1 = require("
|
|
10
|
-
const fractionNode_1 = require("
|
|
11
|
-
const powerNode_1 = require("
|
|
7
|
+
const power_1 = require("../../math/numbers/integer/power");
|
|
8
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
9
|
+
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
10
|
+
const fractionNode_1 = require("../../tree/nodes/operators/fractionNode");
|
|
11
|
+
const powerNode_1 = require("../../tree/nodes/operators/powerNode");
|
|
12
12
|
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
13
13
|
exports.powersDivision = {
|
|
14
14
|
id: 'powersDivision',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"powersOfTenToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersOfTenToDecimal.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,oBAAoB,EAAE,QASlC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CAWzD"}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getPowersOfTenDivisionQuestion = exports.powersOfTenToDecimal = void 0;
|
|
7
|
-
const power_1 = require("
|
|
8
|
-
const randint_1 = require("
|
|
9
|
-
const numberNode_1 = require("
|
|
10
|
-
const powerNode_1 = require("
|
|
7
|
+
const power_1 = require("../../math/numbers/integer/power");
|
|
8
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
9
|
+
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
10
|
+
const powerNode_1 = require("../../tree/nodes/operators/powerNode");
|
|
11
11
|
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
12
12
|
exports.powersOfTenToDecimal = {
|
|
13
13
|
id: 'powersOfTenToDecimal',
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (a^b)^c
|
|
3
|
+
*/
|
|
4
|
+
import { Exercise, Question } from '../exercise';
|
|
5
|
+
export declare const powersOfTenPower: Exercise;
|
|
6
|
+
export declare const powersPower: Exercise;
|
|
7
|
+
export declare function getPowersPowerQuestion(useOnlyPowersOfTen?: boolean): Question;
|
|
8
|
+
//# sourceMappingURL=powersPower.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"powersPower.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersPower.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,gBAAgB,EAAE,QAS9B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,QASzB,CAAC;AAEF,wBAAgB,sBAAsB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAYpF"}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getPowersPowerQuestion = exports.powersPower = exports.powersOfTenPower = void 0;
|
|
7
|
-
const power_1 = require("
|
|
8
|
-
const randint_1 = require("
|
|
9
|
-
const numberNode_1 = require("
|
|
10
|
-
const powerNode_1 = require("
|
|
7
|
+
const power_1 = require("../../math/numbers/integer/power");
|
|
8
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
9
|
+
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
10
|
+
const powerNode_1 = require("../../tree/nodes/operators/powerNode");
|
|
11
11
|
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
12
12
|
exports.powersOfTenPower = {
|
|
13
13
|
id: 'powersOfTenPower',
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* a^b*a^c
|
|
3
|
+
*/
|
|
4
|
+
import { Exercise, Question } from '../exercise';
|
|
5
|
+
export declare const powersOfTenProduct: Exercise;
|
|
6
|
+
export declare const powersProduct: Exercise;
|
|
7
|
+
export declare function getPowersProductQuestion(useOnlyPowersOfTen?: boolean): Question;
|
|
8
|
+
//# sourceMappingURL=powersProduct.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"powersProduct.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/powersProduct.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAS3B,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,kBAAkB,GAAE,OAAe,GAAG,QAAQ,CAetF"}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getPowersProductQuestion = exports.powersProduct = exports.powersOfTenProduct = void 0;
|
|
7
|
-
const power_1 = require("
|
|
8
|
-
const randint_1 = require("
|
|
9
|
-
const numberNode_1 = require("
|
|
10
|
-
const multiplyNode_1 = require("
|
|
11
|
-
const powerNode_1 = require("
|
|
7
|
+
const power_1 = require("../../math/numbers/integer/power");
|
|
8
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
9
|
+
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
10
|
+
const multiplyNode_1 = require("../../tree/nodes/operators/multiplyNode");
|
|
11
|
+
const powerNode_1 = require("../../tree/nodes/operators/powerNode");
|
|
12
12
|
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
13
13
|
exports.powersOfTenProduct = {
|
|
14
14
|
id: 'powersOfTenProduct',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scientificToDecimal.d.ts","sourceRoot":"","sources":["../../../src/exercises/powers/scientificToDecimal.ts"],"names":[],"mappings":"AAAA;;MAEM;AAQN,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,mBAAmB,EAAE,QASjC,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,QAAQ,CAgBzD"}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* */
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getScientificToDecimalQuestion = exports.scientificToDecimal = void 0;
|
|
7
|
-
const decimal_1 = require("
|
|
8
|
-
const integer_1 = require("
|
|
9
|
-
const randint_1 = require("
|
|
10
|
-
const numberNode_1 = require("
|
|
11
|
-
const multiplyNode_1 = require("
|
|
12
|
-
const powerNode_1 = require("
|
|
7
|
+
const decimal_1 = require("../../math/numbers/decimals/decimal");
|
|
8
|
+
const integer_1 = require("../../math/numbers/integer/integer");
|
|
9
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
10
|
+
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
11
|
+
const multiplyNode_1 = require("../../tree/nodes/operators/multiplyNode");
|
|
12
|
+
const powerNode_1 = require("../../tree/nodes/operators/powerNode");
|
|
13
13
|
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
14
14
|
exports.scientificToDecimal = {
|
|
15
15
|
id: 'scientificToDecimal',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=geometricExplicitFormulaUsage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometricExplicitFormulaUsage.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricExplicitFormulaUsage.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// import { Exercise, Question } from "
|
|
3
|
-
// import { getDistinctQuestions } from "
|
|
4
|
-
// import { randint } from "
|
|
2
|
+
// import { Exercise, Question } from "../../../exercises/exercise";
|
|
3
|
+
// import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions";
|
|
4
|
+
// import { randint } from "../../../math/utils/random/randint";
|
|
5
5
|
// export const geometricExplicitFormulaUsage: Exercise = {
|
|
6
6
|
// id: 'geometricExplicitFormulaUsage',
|
|
7
7
|
// connector: '=',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=geometricFindReason.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometricFindReason.d.ts","sourceRoot":"","sources":["../../../../src/exercises/sequences/geometric/geometricFindReason.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// import { Exercise, Question } from "
|
|
3
|
-
// import { getDistinctQuestions } from "
|
|
4
|
-
// import { randint } from "
|
|
2
|
+
// import { Exercise, Question } from "../../../exercises/exercise";
|
|
3
|
+
// import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions";
|
|
4
|
+
// import { randint } from "../../../math/utils/random/randint";
|
|
5
5
|
// export const geometricFindReason: Exercise = {
|
|
6
6
|
// id: 'geometricFindReason',
|
|
7
7
|
// connector: '=',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simpifySquareRoot.d.ts","sourceRoot":"","sources":["../../../src/exercises/squareRoots/simpifySquareRoot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,kBAAkB,EAAE,QAShC,CAAC;AAEF,wBAAgB,qBAAqB,IAAI,QAAQ,CAUhD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSimplifySquareRoot = exports.simplifySquareRoot = void 0;
|
|
4
|
-
const squareRoot_1 = require("
|
|
4
|
+
const squareRoot_1 = require("../../math/numbers/reals/squareRoot");
|
|
5
5
|
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
6
6
|
exports.simplifySquareRoot = {
|
|
7
7
|
id: 'simplifySqrt',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mainRemarkableValues.d.ts","sourceRoot":"","sources":["../../../src/exercises/trigonometry/mainRemarkableValues.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,4BAA4B,EAAE,QAS1C,CAAC;AAEF,wBAAgB,uBAAuB,IAAI,QAAQ,CAYlD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getMainRemarkableValues = exports.mainRemarkableValuesExercise = void 0;
|
|
4
|
-
const remarkableValue_1 = require("
|
|
5
|
-
const coinFlip_1 = require("
|
|
4
|
+
const remarkableValue_1 = require("../../math/trigonometry/remarkableValue");
|
|
5
|
+
const coinFlip_1 = require("../../utils/coinFlip");
|
|
6
6
|
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
7
7
|
exports.mainRemarkableValuesExercise = {
|
|
8
8
|
id: 'mainRemarkableValues',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remarkableValues.d.ts","sourceRoot":"","sources":["../../../src/exercises/trigonometry/remarkableValues.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGjD,eAAO,MAAM,wBAAwB,EAAE,QAStC,CAAC;AAEF,wBAAgB,mBAAmB,IAAI,QAAQ,CAU9C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRemarkableValues = exports.remarkableValuesExercise = void 0;
|
|
4
|
-
const remarkableValue_1 = require("
|
|
5
|
-
const coinFlip_1 = require("
|
|
4
|
+
const remarkableValue_1 = require("../../math/trigonometry/remarkableValue");
|
|
5
|
+
const coinFlip_1 = require("../../utils/coinFlip");
|
|
6
6
|
const getDistinctQuestions_1 = require("../utils/getDistinctQuestions");
|
|
7
7
|
exports.remarkableValuesExercise = {
|
|
8
8
|
id: 'remarkableValues',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDistinctQuestions.d.ts","sourceRoot":"","sources":["../../../src/exercises/utils/getDistinctQuestions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,eAAO,MAAM,oBAAoB,cAAe,QAAQ,MAAM,MAAM,KAAG,QAAQ,EAW9E,CAAC"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY,2CAAiB,CAAC;AAGpC,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.allExercises = void 0;
|
|
4
4
|
const exercises_1 = require("./exercises/exercises");
|
|
5
|
-
|
|
5
|
+
const allExercises = [...exercises_1.exercises];
|
|
6
|
+
exports.allExercises = allExercises;
|
|
6
7
|
exercises_1.exercises.forEach((exo) => console.log(exo.generator(10)));
|
|
8
|
+
console.log('erge');
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Node } from '../../tree/nodes/node';
|
|
2
|
+
export declare abstract class PointConstructor {
|
|
3
|
+
}
|
|
4
|
+
export declare class Point {
|
|
5
|
+
name: string;
|
|
6
|
+
x: Node;
|
|
7
|
+
y: Node;
|
|
8
|
+
constructor(name: string, x: Node, y: Node);
|
|
9
|
+
toTex(): string;
|
|
10
|
+
toTexWithCoords(): string;
|
|
11
|
+
midpoint(B: Point, name?: string): Point;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=point.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAM7C,8BAAsB,gBAAgB;CAMrC;AAED,qBAAa,KAAK;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,IAAI,CAAC;IACR,CAAC,EAAE,IAAI,CAAC;gBACI,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI;IAM1C,KAAK,IAAI,MAAM;IAGf,eAAe,IAAI,MAAM;IAIzB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,SAAM,GAAG,KAAK;CAOtC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Point = exports.PointConstructor = void 0;
|
|
4
|
-
const numberNode_1 = require("
|
|
5
|
-
const addNode_1 = require("
|
|
6
|
-
const fractionNode_1 = require("
|
|
7
|
-
const simplify_1 = require("
|
|
4
|
+
const numberNode_1 = require("../../tree/nodes/numbers/numberNode");
|
|
5
|
+
const addNode_1 = require("../../tree/nodes/operators/addNode");
|
|
6
|
+
const fractionNode_1 = require("../../tree/nodes/operators/fractionNode");
|
|
7
|
+
const simplify_1 = require("../../tree/parsers/simplify");
|
|
8
8
|
class PointConstructor {
|
|
9
9
|
}
|
|
10
10
|
exports.PointConstructor = PointConstructor;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Node } from '../../tree/nodes/node';
|
|
2
|
+
import { Point } from './point';
|
|
3
|
+
export declare abstract class VectorConstructor {
|
|
4
|
+
static fromPoints(origin: Point, end: Point): Vector;
|
|
5
|
+
}
|
|
6
|
+
export declare class Vector {
|
|
7
|
+
name: string;
|
|
8
|
+
tex: string;
|
|
9
|
+
x: Node;
|
|
10
|
+
y: Node;
|
|
11
|
+
constructor(name: string, x: Node, y: Node);
|
|
12
|
+
toTex(): string;
|
|
13
|
+
toTexWithCoords(): string;
|
|
14
|
+
scalarProduct(v: Vector): Node;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=vector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vector.d.ts","sourceRoot":"","sources":["../../../src/math/geometry/vector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAK7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,8BAAsB,iBAAiB;IACrC,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,GAAG,MAAM;CAOrD;AAED,qBAAa,MAAM;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,CAAC,EAAE,IAAI,CAAC;IACR,CAAC,EAAE,IAAI,CAAC;gBACI,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI;IAO1C,KAAK,IAAI,MAAM;IAIf,eAAe,IAAI,MAAM;IAIzB,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI;CAG/B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Vector = exports.VectorConstructor = void 0;
|
|
4
|
-
const addNode_1 = require("
|
|
5
|
-
const multiplyNode_1 = require("
|
|
6
|
-
const substractNode_1 = require("
|
|
7
|
-
const simplify_1 = require("
|
|
4
|
+
const addNode_1 = require("../../tree/nodes/operators/addNode");
|
|
5
|
+
const multiplyNode_1 = require("../../tree/nodes/operators/multiplyNode");
|
|
6
|
+
const substractNode_1 = require("../../tree/nodes/operators/substractNode");
|
|
7
|
+
const simplify_1 = require("../../tree/parsers/simplify");
|
|
8
8
|
class VectorConstructor {
|
|
9
9
|
static fromPoints(origin, end) {
|
|
10
10
|
return new Vector(`${origin.name}${end.name}`, new substractNode_1.SubstractNode(end.x, origin.x), new substractNode_1.SubstractNode(end.y, origin.y));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Node } from '../../../tree/nodes/node';
|
|
2
|
+
import { Nombre, NumberType } from '../nombre';
|
|
3
|
+
export declare abstract class DecimalConstructor {
|
|
4
|
+
static randomFracPart(precision: number): string;
|
|
5
|
+
static random(min: number, max: number, precision: number): Decimal;
|
|
6
|
+
static fromParts(intPart: string, decimalPart: string): Decimal;
|
|
7
|
+
}
|
|
8
|
+
export declare class Decimal implements Nombre {
|
|
9
|
+
value: number;
|
|
10
|
+
tex: string;
|
|
11
|
+
type: NumberType;
|
|
12
|
+
precision: number;
|
|
13
|
+
intPart: number;
|
|
14
|
+
decimalPart: string;
|
|
15
|
+
constructor(value: number);
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param precision 0 = unité, 1 = dixieme, ... , -1 : dizaine
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
round(precision: number): Nombre;
|
|
22
|
+
multiplyByPowerOfTen(power: number): Decimal;
|
|
23
|
+
toTree(): Node;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=decimal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decimal.d.ts","sourceRoot":"","sources":["../../../../src/math/numbers/decimals/decimal.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,8BAAsB,kBAAkB;IACtC,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAQhD,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO;IAKnE,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO;CAGhE;AAED,qBAAa,OAAQ,YAAW,MAAM;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,aAAsB;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;gBACR,KAAK,EAAE,MAAM;IASzB;;;;OAIG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAoEhC,oBAAoB,CAAC,KAAK,EAAE,MAAM;IAsBlC,MAAM,IAAI,IAAI;CAGf"}
|