math-exercises 2.2.2 → 2.2.4
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/exercise.d.ts +2 -1
- package/lib/exercises/exercise.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/index.d.ts +2 -0
- package/lib/exercises/math/calcul/proportionality/index.d.ts.map +1 -1
- package/lib/exercises/math/calcul/proportionality/index.js +2 -0
- package/lib/exercises/math/calcul/proportionality/scaleCalculation.d.ts +9 -0
- package/lib/exercises/math/calcul/proportionality/scaleCalculation.d.ts.map +1 -0
- package/lib/exercises/math/calcul/proportionality/scaleCalculation.js +90 -0
- package/lib/exercises/math/calcul/proportionality/scaleUsage.d.ts +9 -0
- package/lib/exercises/math/calcul/proportionality/scaleUsage.d.ts.map +1 -0
- package/lib/exercises/math/calcul/proportionality/scaleUsage.js +95 -0
- package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.d.ts +7 -0
- package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/distributivity/canonicalFormDevelopment.js +59 -0
- package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.d.ts +9 -0
- package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.d.ts.map +1 -0
- package/lib/exercises/math/calculLitteral/distributivity/doubleDistributivityWithCoeff.js +77 -0
- package/lib/exercises/math/calculLitteral/distributivity/index.d.ts +2 -0
- package/lib/exercises/math/calculLitteral/distributivity/index.d.ts.map +1 -1
- package/lib/exercises/math/calculLitteral/distributivity/index.js +2 -0
- package/lib/exercises/math/conversion/lengthConversion.d.ts.map +1 -1
- package/lib/exercises/math/conversion/lengthConversion.js +18 -4
- package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.d.ts +10 -0
- package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.d.ts.map +1 -0
- package/lib/exercises/math/functions/affines/affineExpressionFromTwoImages.js +81 -0
- package/lib/exercises/math/functions/affines/index.d.ts +1 -0
- package/lib/exercises/math/functions/affines/index.d.ts.map +1 -1
- package/lib/exercises/math/functions/affines/index.js +1 -0
- package/lib/exercises/pc/calibrationCurveOfSolution.js +1 -1
- package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.d.ts +1 -1
- package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalElements/atomicStructureOfNucleus.js +1 -1
- package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.d.ts +1 -1
- package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalElements/calculateProtonsNumberFromMass.js +3 -3
- package/lib/exercises/pc/chemicalElements/calculateVolumetricMass.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalElements/calculateVolumetricMass.js +29 -4
- package/lib/exercises/pc/chemicalElements/findAtomEntitiesNumberFromMass.d.ts +1 -1
- package/lib/exercises/pc/chemicalElements/findAtomEntitiesNumberFromMass.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalElements/findAtomEntitiesNumberFromMass.js +6 -6
- package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.d.ts +1 -1
- package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalElements/findAtomicStructureElement.js +1 -1
- package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.d.ts +1 -1
- package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromElectronicConfiguration.js +1 -1
- package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.d.ts +1 -1
- package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalElements/findValenceElectronsNumberFromTable.js +1 -1
- package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.d.ts +1 -1
- package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalElements/identifyRightElectronicConfiguration.js +1 -1
- package/lib/exercises/pc/chemicalElements/index.d.ts +1 -0
- package/lib/exercises/pc/chemicalElements/index.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalElements/index.js +1 -0
- package/lib/exercises/pc/chemicalElements/massOrVolumeProportion.d.ts +11 -0
- package/lib/exercises/pc/chemicalElements/massOrVolumeProportion.d.ts.map +1 -0
- package/lib/exercises/pc/chemicalElements/massOrVolumeProportion.js +99 -0
- package/lib/exercises/pc/chemicalEquations.d.ts +1 -1
- package/lib/exercises/pc/chemicalEquations.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalEquations.js +1 -1
- package/lib/exercises/pc/chemicalReactions/index.d.ts +2 -0
- package/lib/exercises/pc/chemicalReactions/index.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalReactions/index.js +2 -0
- package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.d.ts +5 -0
- package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.d.ts.map +1 -0
- package/lib/exercises/pc/chemicalReactions/stoichiometricReaction.js +69 -0
- package/lib/exercises/pc/chemicalReactions/titrationEquivalenceRelation.d.ts +11 -0
- package/lib/exercises/pc/chemicalReactions/titrationEquivalenceRelation.d.ts.map +1 -0
- package/lib/exercises/pc/chemicalReactions/titrationEquivalenceRelation.js +180 -0
- package/lib/exercises/pc/chemicalReactionsProduct.d.ts +1 -1
- package/lib/exercises/pc/chemicalReactionsProduct.d.ts.map +1 -1
- package/lib/exercises/pc/chemicalReactionsProduct.js +1 -1
- package/lib/exercises/pc/dosage/beerLambertRandomValue.js +1 -1
- package/lib/exercises/pc/dosage/concentrationCalculation.d.ts +10 -0
- package/lib/exercises/pc/dosage/concentrationCalculation.d.ts.map +1 -0
- package/lib/exercises/pc/dosage/concentrationCalculation.js +118 -0
- package/lib/exercises/pc/dosage/concentrationFromMassCalculation.d.ts +10 -0
- package/lib/exercises/pc/dosage/concentrationFromMassCalculation.d.ts.map +1 -0
- package/lib/exercises/pc/dosage/concentrationFromMassCalculation.js +116 -0
- package/lib/exercises/pc/dosage/index.d.ts +2 -0
- package/lib/exercises/pc/dosage/index.d.ts.map +1 -1
- package/lib/exercises/pc/dosage/index.js +2 -0
- package/lib/exercises/pc/electricity/calculateIntensity.d.ts +8 -0
- package/lib/exercises/pc/electricity/calculateIntensity.d.ts.map +1 -0
- package/lib/exercises/pc/electricity/calculateIntensity.js +60 -0
- package/lib/exercises/pc/electricity/calculateIntensityInSerieOrParallel.d.ts +10 -0
- package/lib/exercises/pc/electricity/calculateIntensityInSerieOrParallel.d.ts.map +1 -0
- package/lib/exercises/pc/electricity/calculateIntensityInSerieOrParallel.js +105 -0
- package/lib/exercises/pc/electricity/calculateVoltage.d.ts +11 -0
- package/lib/exercises/pc/electricity/calculateVoltage.d.ts.map +1 -0
- package/lib/exercises/pc/electricity/calculateVoltage.js +143 -0
- package/lib/exercises/pc/electricity/electricPowerOrEnergyCalculation.d.ts +9 -0
- package/lib/exercises/pc/electricity/electricPowerOrEnergyCalculation.d.ts.map +1 -0
- package/lib/exercises/pc/electricity/electricPowerOrEnergyCalculation.js +80 -0
- package/lib/exercises/pc/electricity/index.d.ts +7 -0
- package/lib/exercises/pc/electricity/index.d.ts.map +1 -1
- package/lib/exercises/pc/electricity/index.js +7 -0
- package/lib/exercises/pc/electricity/kirchhoffVoltageLaw.d.ts +10 -0
- package/lib/exercises/pc/electricity/kirchhoffVoltageLaw.d.ts.map +1 -0
- package/lib/exercises/pc/electricity/kirchhoffVoltageLaw.js +110 -0
- package/lib/exercises/pc/electricity/ohmLaw.d.ts +11 -0
- package/lib/exercises/pc/electricity/ohmLaw.d.ts.map +1 -0
- package/lib/exercises/pc/electricity/ohmLaw.js +122 -0
- package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.d.ts +5 -0
- package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.d.ts.map +1 -0
- package/lib/exercises/pc/electricity/ohmicConductorOrGenerator.js +94 -0
- package/lib/exercises/pc/energy/calorificValue.d.ts +8 -0
- package/lib/exercises/pc/energy/calorificValue.d.ts.map +1 -0
- package/lib/exercises/pc/energy/calorificValue.js +77 -0
- package/lib/exercises/pc/energy/combustionTransferEnergy.d.ts +8 -0
- package/lib/exercises/pc/energy/combustionTransferEnergy.d.ts.map +1 -0
- package/lib/exercises/pc/energy/combustionTransferEnergy.js +77 -0
- package/lib/exercises/pc/energy/combustionTransferEnergy2.d.ts +11 -0
- package/lib/exercises/pc/energy/combustionTransferEnergy2.d.ts.map +1 -0
- package/lib/exercises/pc/energy/combustionTransferEnergy2.js +140 -0
- package/lib/exercises/pc/energy/efficencyOfConverter.d.ts +8 -0
- package/lib/exercises/pc/energy/efficencyOfConverter.d.ts.map +1 -0
- package/lib/exercises/pc/energy/efficencyOfConverter.js +83 -0
- package/lib/exercises/pc/energy/efficiencyCalculation.d.ts +10 -0
- package/lib/exercises/pc/energy/efficiencyCalculation.d.ts.map +1 -0
- package/lib/exercises/pc/energy/efficiencyCalculation.js +121 -0
- package/lib/exercises/pc/energy/energyTransfer.d.ts +10 -0
- package/lib/exercises/pc/energy/energyTransfer.d.ts.map +1 -0
- package/lib/exercises/pc/energy/energyTransfer.js +67 -0
- package/lib/exercises/pc/energy/index.d.ts +9 -0
- package/lib/exercises/pc/energy/index.d.ts.map +1 -0
- package/lib/exercises/pc/energy/index.js +24 -0
- package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.d.ts +10 -0
- package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.d.ts.map +1 -0
- package/lib/exercises/pc/energy/kineticEnergyOrMassOrSpeed.js +167 -0
- package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.d.ts +11 -0
- package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.d.ts.map +1 -0
- package/lib/exercises/pc/energy/thermalEnergyTransferCalculation.js +142 -0
- package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.d.ts +8 -0
- package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.d.ts.map +1 -0
- package/lib/exercises/pc/forces/calculateNormalOrFrictionForce.js +101 -0
- package/lib/exercises/pc/forces/electroStaticForce.d.ts +13 -0
- package/lib/exercises/pc/forces/electroStaticForce.d.ts.map +1 -0
- package/lib/exercises/pc/forces/electroStaticForce.js +116 -0
- package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.d.ts +9 -0
- package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.d.ts.map +1 -0
- package/lib/exercises/pc/forces/gravitationalAttractionObjectHeight.js +131 -0
- package/lib/exercises/pc/forces/gravitationalAttractionValue.d.ts +1 -0
- package/lib/exercises/pc/forces/gravitationalAttractionValue.d.ts.map +1 -1
- package/lib/exercises/pc/forces/gravitationalAttractionValue.js +31 -27
- package/lib/exercises/pc/forces/gravitationalForcePlanets.d.ts +10 -0
- package/lib/exercises/pc/forces/gravitationalForcePlanets.d.ts.map +1 -0
- package/lib/exercises/pc/forces/gravitationalForcePlanets.js +117 -0
- package/lib/exercises/pc/forces/index.d.ts +5 -0
- package/lib/exercises/pc/forces/index.d.ts.map +1 -1
- package/lib/exercises/pc/forces/index.js +6 -0
- package/lib/exercises/pc/forces/massWeight.d.ts +9 -0
- package/lib/exercises/pc/forces/massWeight.d.ts.map +1 -0
- package/lib/exercises/pc/forces/massWeight.js +67 -0
- package/lib/exercises/pc/forces/pressureDifferenceCalculation.d.ts +1 -0
- package/lib/exercises/pc/forces/pressureDifferenceCalculation.d.ts.map +1 -0
- package/lib/exercises/pc/forces/pressureDifferenceCalculation.js +106 -0
- package/lib/exercises/pc/formulaFromComposition.js +2 -2
- package/lib/exercises/pc/identifyAtomicMassOrAtomicNb.d.ts +8 -0
- package/lib/exercises/pc/identifyAtomicMassOrAtomicNb.d.ts.map +1 -0
- package/lib/exercises/pc/identifyAtomicMassOrAtomicNb.js +72 -0
- package/lib/exercises/pc/index.d.ts +6 -0
- package/lib/exercises/pc/index.d.ts.map +1 -1
- package/lib/exercises/pc/index.js +6 -0
- package/lib/exercises/pc/molarQuantity.js +2 -2
- package/lib/exercises/pc/mole/index.d.ts +2 -0
- package/lib/exercises/pc/mole/index.d.ts.map +1 -1
- package/lib/exercises/pc/mole/index.js +2 -0
- package/lib/exercises/pc/mole/molarMass.js +1 -1
- package/lib/exercises/pc/mole/moleculeCountFromMassAndAvogadro.d.ts +9 -0
- package/lib/exercises/pc/mole/moleculeCountFromMassAndAvogadro.d.ts.map +1 -0
- package/lib/exercises/pc/mole/moleculeCountFromMassAndAvogadro.js +75 -0
- package/lib/exercises/pc/mole/moleculeCountFromMol.d.ts +7 -0
- package/lib/exercises/pc/mole/moleculeCountFromMol.d.ts.map +1 -0
- package/lib/exercises/pc/mole/moleculeCountFromMol.js +66 -0
- package/lib/exercises/pc/moleculeFormula.js +1 -1
- package/lib/exercises/pc/moleculeNomenclature.js +1 -1
- package/lib/exercises/pc/motion/averageSpeed.d.ts +12 -0
- package/lib/exercises/pc/motion/averageSpeed.d.ts.map +1 -0
- package/lib/exercises/pc/motion/averageSpeed.js +121 -0
- package/lib/exercises/pc/motion/averageSpeedCalculation.d.ts +10 -0
- package/lib/exercises/pc/motion/averageSpeedCalculation.d.ts.map +1 -0
- package/lib/exercises/pc/motion/averageSpeedCalculation.js +145 -0
- package/lib/exercises/pc/motion/characteristicsOfVelocityVector.d.ts +7 -0
- package/lib/exercises/pc/motion/characteristicsOfVelocityVector.d.ts.map +1 -0
- package/lib/exercises/pc/motion/characteristicsOfVelocityVector.js +86 -0
- package/lib/exercises/pc/motion/index.d.ts +7 -0
- package/lib/exercises/pc/motion/index.d.ts.map +1 -0
- package/lib/exercises/pc/motion/index.js +22 -0
- package/lib/exercises/pc/motion/motionReference.d.ts +9 -0
- package/lib/exercises/pc/motion/motionReference.d.ts.map +1 -0
- package/lib/exercises/pc/motion/motionReference.js +167 -0
- package/lib/exercises/pc/motion/typeOfAcceleration.d.ts +5 -0
- package/lib/exercises/pc/motion/typeOfAcceleration.d.ts.map +1 -0
- package/lib/exercises/pc/motion/typeOfAcceleration.js +97 -0
- package/lib/exercises/pc/motion/typeOfMovement.d.ts +5 -0
- package/lib/exercises/pc/motion/typeOfMovement.d.ts.map +1 -0
- package/lib/exercises/pc/motion/typeOfMovement.js +111 -0
- package/lib/exercises/pc/orderOfMagnitude.d.ts +8 -0
- package/lib/exercises/pc/orderOfMagnitude.d.ts.map +1 -0
- package/lib/exercises/pc/orderOfMagnitude.js +68 -0
- package/lib/exercises/pc/potentialEnergy.d.ts.map +1 -1
- package/lib/exercises/pc/potentialEnergy.js +17 -5
- package/lib/exercises/pc/power/calculatePowerOfLight.d.ts +8 -0
- package/lib/exercises/pc/power/calculatePowerOfLight.d.ts.map +1 -0
- package/lib/exercises/pc/power/calculatePowerOfLight.js +85 -0
- package/lib/exercises/pc/power/index.d.ts +2 -0
- package/lib/exercises/pc/power/index.d.ts.map +1 -0
- package/lib/exercises/pc/power/index.js +17 -0
- package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.d.ts +5 -0
- package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.d.ts.map +1 -0
- package/lib/exercises/pc/recognizeRefractionOrReflectionAngles.js +117 -0
- package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.d.ts +9 -0
- package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.d.ts.map +1 -0
- package/lib/exercises/pc/sound/findPeriodOrFrequencyFromGraph.js +95 -0
- package/lib/exercises/pc/sound/index.d.ts +1 -0
- package/lib/exercises/pc/sound/index.d.ts.map +1 -1
- package/lib/exercises/pc/sound/index.js +1 -0
- package/lib/exercises/pc/waves/index.d.ts +1 -0
- package/lib/exercises/pc/waves/index.d.ts.map +1 -1
- package/lib/exercises/pc/waves/index.js +1 -0
- package/lib/exercises/pc/waves/lightDistanceConversion.d.ts +10 -0
- package/lib/exercises/pc/waves/lightDistanceConversion.d.ts.map +1 -0
- package/lib/exercises/pc/waves/lightDistanceConversion.js +160 -0
- package/lib/exercises/pc/weight/calculateWeight.d.ts +7 -0
- package/lib/exercises/pc/weight/calculateWeight.d.ts.map +1 -0
- package/lib/exercises/pc/weight/calculateWeight.js +72 -0
- package/lib/exercises/pc/weight/index.d.ts +1 -0
- package/lib/exercises/pc/weight/index.d.ts.map +1 -1
- package/lib/exercises/pc/weight/index.js +1 -0
- package/lib/exercises/pc/weight/weightOnTheMoon.d.ts.map +1 -1
- package/lib/exercises/pc/weight/weightOnTheMoon.js +6 -6
- package/lib/exercises/utils/getAtoms.d.ts +1 -1
- package/lib/exercises/utils/getAtoms.d.ts.map +1 -1
- package/lib/exercises/utils/getAtoms.js +1 -1
- package/lib/geogebra/deleteObjectNamesFromAnswer.d.ts +1 -1
- package/lib/geogebra/deleteObjectNamesFromAnswer.d.ts.map +1 -1
- package/lib/geogebra/deleteObjectNamesFromAnswer.js +2 -2
- package/lib/index.d.ts +188 -11
- package/lib/index.d.ts.map +1 -1
- package/lib/math/numbers/reals/extendedRingElement.d.ts +1 -2
- package/lib/math/numbers/reals/extendedRingElement.d.ts.map +1 -1
- package/lib/math/polynomials/affine.d.ts +4 -0
- package/lib/math/polynomials/affine.d.ts.map +1 -1
- package/lib/math/polynomials/affine.js +10 -0
- package/lib/math/polynomials/trinom.d.ts +2 -1
- package/lib/math/polynomials/trinom.d.ts.map +1 -1
- package/lib/math/polynomials/trinom.js +3 -0
- package/lib/pc/constants/atoms.d.ts +0 -1
- package/lib/pc/constants/atoms.d.ts.map +1 -1
- package/lib/pc/constants/atoms.js +2 -2
- package/lib/pc/constants/coulomb.d.ts +3 -0
- package/lib/pc/constants/coulomb.d.ts.map +1 -0
- package/lib/pc/constants/coulomb.js +13 -0
- package/lib/pc/constants/earth.d.ts +0 -1
- package/lib/pc/constants/earth.d.ts.map +1 -1
- package/lib/pc/constants/earth.js +4 -4
- package/lib/pc/constants/gravity.d.ts +1 -1
- package/lib/pc/constants/gravity.d.ts.map +1 -1
- package/lib/pc/constants/gravity.js +16 -7
- package/lib/pc/constants/mechanics/gravitational.d.ts +14 -0
- package/lib/pc/constants/mechanics/gravitational.d.ts.map +1 -0
- package/lib/pc/constants/mechanics/gravitational.js +37 -0
- package/lib/pc/constants/mechanics/planets.d.ts +15 -0
- package/lib/pc/constants/mechanics/planets.d.ts.map +1 -0
- package/lib/pc/constants/mechanics/planets.js +35 -0
- package/lib/pc/constants/mechanics/waves.d.ts +8 -0
- package/lib/pc/constants/mechanics/waves.d.ts.map +1 -0
- package/lib/pc/constants/mechanics/waves.js +8 -0
- package/lib/pc/constants/molecularChemistry/atomSymbols.d.ts +2 -0
- package/lib/pc/constants/molecularChemistry/atomSymbols.d.ts.map +1 -0
- package/lib/pc/constants/molecularChemistry/atomSymbols.js +2 -0
- package/lib/pc/constants/molecularChemistry/atome.d.ts +18 -0
- package/lib/pc/constants/molecularChemistry/atome.d.ts.map +1 -0
- package/lib/pc/constants/molecularChemistry/atome.js +174 -0
- package/lib/pc/constants/molecularChemistry/atoms.d.ts +9 -0
- package/lib/pc/constants/molecularChemistry/atoms.d.ts.map +1 -0
- package/lib/pc/constants/molecularChemistry/atoms.js +15 -0
- package/lib/pc/constants/molecularChemistry/molecule.d.ts +25 -0
- package/lib/pc/constants/molecularChemistry/molecule.d.ts.map +1 -0
- package/lib/pc/constants/molecularChemistry/molecule.js +579 -0
- package/lib/pc/constants/molecularChemistry/reaction.d.ts +27 -0
- package/lib/pc/constants/molecularChemistry/reaction.d.ts.map +1 -0
- package/lib/pc/constants/molecularChemistry/reaction.js +471 -0
- package/lib/pc/measure/measure.d.ts +16 -6
- package/lib/pc/measure/measure.d.ts.map +1 -1
- package/lib/pc/measure/measure.js +112 -16
- package/lib/pc/units/AmountOfSubstance.d.ts +17 -0
- package/lib/pc/units/AmountOfSubstance.d.ts.map +1 -0
- package/lib/pc/units/AmountOfSubstance.js +40 -0
- package/lib/pc/units/PressionUnit.d.ts +17 -0
- package/lib/pc/units/PressionUnit.d.ts.map +1 -0
- package/lib/pc/units/PressionUnit.js +32 -0
- package/lib/pc/units/distanceUnits.d.ts +16 -0
- package/lib/pc/units/distanceUnits.d.ts.map +1 -0
- package/lib/pc/units/distanceUnits.js +32 -0
- package/lib/pc/units/divideUnit.d.ts +13 -0
- package/lib/pc/units/divideUnit.d.ts.map +1 -0
- package/lib/pc/units/divideUnit.js +32 -0
- package/lib/pc/units/electricalChargeUnit.d.ts +17 -0
- package/lib/pc/units/electricalChargeUnit.d.ts.map +1 -0
- package/lib/pc/units/electricalChargeUnit.js +40 -0
- package/lib/pc/units/electricalResistanceUnit.d.ts +18 -0
- package/lib/pc/units/electricalResistanceUnit.d.ts.map +1 -0
- package/lib/pc/units/electricalResistanceUnit.js +32 -0
- package/lib/pc/units/electricalUnit.d.ts +18 -0
- package/lib/pc/units/electricalUnit.d.ts.map +1 -0
- package/lib/pc/units/electricalUnit.js +32 -0
- package/lib/pc/units/energyUnit.d.ts +16 -0
- package/lib/pc/units/energyUnit.d.ts.map +1 -0
- package/lib/pc/units/energyUnit.js +32 -0
- package/lib/pc/units/forceUnits.d.ts +16 -0
- package/lib/pc/units/forceUnits.d.ts.map +1 -0
- package/lib/pc/units/forceUnits.js +32 -0
- package/lib/pc/units/frequenceUnit.d.ts +17 -0
- package/lib/pc/units/frequenceUnit.d.ts.map +1 -0
- package/lib/pc/units/frequenceUnit.js +40 -0
- package/lib/pc/units/interfaces/baseTenUnit.d.ts +10 -0
- package/lib/pc/units/interfaces/baseTenUnit.d.ts.map +1 -0
- package/lib/pc/units/interfaces/baseTenUnit.js +16 -0
- package/lib/pc/units/interfaces/basicUnit.d.ts +13 -0
- package/lib/pc/units/interfaces/basicUnit.d.ts.map +1 -0
- package/lib/pc/units/interfaces/basicUnit.js +19 -0
- package/lib/pc/units/interfaces/unit.d.ts +13 -0
- package/lib/pc/units/interfaces/unit.d.ts.map +1 -0
- package/lib/pc/units/interfaces/unit.js +2 -0
- package/lib/pc/units/massUnits.d.ts +17 -0
- package/lib/pc/units/massUnits.d.ts.map +1 -0
- package/lib/pc/units/massUnits.js +32 -0
- package/lib/pc/units/mulitplyUnits.d.ts +13 -0
- package/lib/pc/units/mulitplyUnits.d.ts.map +1 -0
- package/lib/pc/units/mulitplyUnits.js +26 -0
- package/lib/pc/units/powerUnits.d.ts +14 -0
- package/lib/pc/units/powerUnits.d.ts.map +1 -0
- package/lib/pc/units/powerUnits.js +26 -0
- package/lib/pc/units/timeUnits.d.ts +13 -0
- package/lib/pc/units/timeUnits.d.ts.map +1 -0
- package/lib/pc/units/timeUnits.js +42 -0
- package/lib/pc/units/volumeUnit.d.ts +17 -0
- package/lib/pc/units/volumeUnit.d.ts.map +1 -0
- package/lib/pc/units/volumeUnit.js +32 -0
- package/lib/pc/units/wattUnit.d.ts +17 -0
- package/lib/pc/units/wattUnit.d.ts.map +1 -0
- package/lib/pc/units/wattUnit.js +32 -0
- package/lib/server.d.ts.map +1 -1
- package/lib/server.js +6 -6
- package/lib/tree/nodes/node.d.ts +3 -0
- package/lib/tree/nodes/node.d.ts.map +1 -1
- package/lib/tree/nodes/operators/addNode.js +2 -2
- package/lib/tree/nodes/operators/multiplyNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/multiplyNode.js +32 -10
- package/lib/tree/nodes/operators/powerNode.d.ts.map +1 -1
- package/lib/tree/nodes/operators/powerNode.js +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Exercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
3
|
+
mass: number;
|
|
4
|
+
force: number;
|
|
5
|
+
target: "le poids" | "la masse";
|
|
6
|
+
};
|
|
7
|
+
export declare const MassWeightExercise: Exercise<Identifiers>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=massWeight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"massWeight.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/massWeight.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC;CACjC,CAAC;AAmEF,eAAO,MAAM,kBAAkB,EAAE,QAAQ,CAAC,WAAW,CAYpD,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MassWeightExercise = void 0;
|
|
4
|
+
const frenchify_1 = require("../../../math/utils/latex/frenchify");
|
|
5
|
+
const exercise_1 = require("../../../exercises/exercise");
|
|
6
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
7
|
+
const round_1 = require("../../../math/utils/round");
|
|
8
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
9
|
+
const coinFlip_1 = require("../../../utils/coinFlip");
|
|
10
|
+
const g = 9.81;
|
|
11
|
+
const getMassWeightQuestion = () => {
|
|
12
|
+
const mass = (0, round_1.round)((0, randint_1.randint)(1, 1000), 2);
|
|
13
|
+
const force = (0, round_1.round)(mass * g, 2);
|
|
14
|
+
const target = (0, coinFlip_1.coinFlip)() ? "le poids" : "la masse";
|
|
15
|
+
const instruction = `Un système qui pèse $${mass}\\ kg$ subit une force de $${(0, frenchify_1.frenchify)(force)}\\ N$ due à la gravité. Quel est ${target} de ce système ?`;
|
|
16
|
+
const answer = target === "le poids"
|
|
17
|
+
? `${force.toTree().toTex()}`
|
|
18
|
+
: `${mass.toTree().toTex()}`;
|
|
19
|
+
const hint = target === "le poids"
|
|
20
|
+
? `Le poids est la force de gravité qui agit sur un objet. La formule est $P = m \\times g$, où $P$ est le poids en newtons (N), $m$ est la masse en kilogrammes (kg) et $g$ est l'accélération due à la gravité (environ $9.81\\ m/s^2$).`
|
|
21
|
+
: `La masse est la quantité de matière dans un objet. La formule pour la trouver à partir du poids est $m = \\frac{P}{g}$, où $m$ est la masse en kilogrammes (kg), $P$ est le poids en newtons (N) et $g$ est l'accélération due à la gravité (environ $9.81\\ m/s^2$).`;
|
|
22
|
+
const correction = target === "le poids"
|
|
23
|
+
? `Le poids est la force exercée par la gravité sur un objet. Donc ici, le poids est $${force
|
|
24
|
+
.toTree()
|
|
25
|
+
.toTex()}\\ N$.`
|
|
26
|
+
: `La masse est la quantité de matière dans un objet. Donc ici, la masse est $${mass
|
|
27
|
+
.toTree()
|
|
28
|
+
.toTex()}\\ kg$.`;
|
|
29
|
+
const question = {
|
|
30
|
+
answer,
|
|
31
|
+
instruction,
|
|
32
|
+
hint,
|
|
33
|
+
correction,
|
|
34
|
+
keys: [],
|
|
35
|
+
answerFormat: "tex",
|
|
36
|
+
identifiers: {
|
|
37
|
+
mass,
|
|
38
|
+
force,
|
|
39
|
+
target,
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
return question;
|
|
43
|
+
};
|
|
44
|
+
const getPropositions = (n, { answer, mass, force, target }) => {
|
|
45
|
+
const propositions = [];
|
|
46
|
+
(0, exercise_1.addValidProp)(propositions, answer, "tex");
|
|
47
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, mass.toTree().toTex());
|
|
48
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, force.toTree().toTex());
|
|
49
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, "Aucun des deux", "raw");
|
|
50
|
+
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
51
|
+
};
|
|
52
|
+
const isAnswerValid = (ans, { answer }) => {
|
|
53
|
+
return ans === answer;
|
|
54
|
+
};
|
|
55
|
+
exports.MassWeightExercise = {
|
|
56
|
+
id: "massWeight",
|
|
57
|
+
label: "Calculer le poids ou la masse d'un système",
|
|
58
|
+
levels: ["2nde"],
|
|
59
|
+
isSingleStep: true,
|
|
60
|
+
sections: ["Forces"],
|
|
61
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getMassWeightQuestion, nb),
|
|
62
|
+
qcmTimer: 60,
|
|
63
|
+
freeTimer: 60,
|
|
64
|
+
getPropositions,
|
|
65
|
+
isAnswerValid,
|
|
66
|
+
subject: "Physique",
|
|
67
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=pressureDifferenceCalculation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pressureDifferenceCalculation.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/forces/pressureDifferenceCalculation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { frenchify } from "../../../math/utils/latex/frenchify";
|
|
3
|
+
// import {
|
|
4
|
+
// Exercise,
|
|
5
|
+
// Proposition,
|
|
6
|
+
// QCMGenerator,
|
|
7
|
+
// Question,
|
|
8
|
+
// QuestionGenerator,
|
|
9
|
+
// VEA,
|
|
10
|
+
// addValidProp,
|
|
11
|
+
// shuffleProps,
|
|
12
|
+
// tryToAddWrongProp,
|
|
13
|
+
// } from "../../../exercises/exercise";
|
|
14
|
+
// import { getDistinctQuestions } from "../../../exercises/utils/getDistinctQuestions";
|
|
15
|
+
// import { randint } from "../../../math/utils/random/randint";
|
|
16
|
+
// import { round, roundSignificant } from "../../../math/utils/round";
|
|
17
|
+
// import { random } from "../../../utils/random";
|
|
18
|
+
// const g = 9.81; // Accélération due à la gravité en m·s⁻²
|
|
19
|
+
// type Identifiers = {
|
|
20
|
+
// density: number; // Densité du fluide en kg·m⁻³
|
|
21
|
+
// depth1: number; // Profondeur 1 en m
|
|
22
|
+
// depth2: number; // Profondeur 2 en m
|
|
23
|
+
// };
|
|
24
|
+
// const getPressureDifferenceQuestion: QuestionGenerator<Identifiers> = () => {
|
|
25
|
+
// const density = round(randint(900, 1100), 3); // Densité de l'eau ou un fluide similaire
|
|
26
|
+
// const depth1 = randint(0, 50); // Profondeur en mètres
|
|
27
|
+
// const depth2 = randint(depth1 + 1, 100); // Profondeur plus profonde
|
|
28
|
+
// const deltaDepth = depth2 - depth1; // Différence de profondeur en m
|
|
29
|
+
// const pressureDifference = round(density * g * deltaDepth, 2); // Différence de pression en Pa
|
|
30
|
+
// const questionText = `Dans un fluide incompressible de densité $\\rho = ${frenchify(
|
|
31
|
+
// density,
|
|
32
|
+
// )}\\ \\text{kg·m}^{-3}$, déterminez la différence de pression $\\Delta P$ entre deux positions verticales de profondeur $z_1 = ${frenchify(
|
|
33
|
+
// depth1,
|
|
34
|
+
// )}\\ \\text{m}$ et $z_2 = ${frenchify(depth2)}\\ \\text{m}$.`;
|
|
35
|
+
// const hint = `La différence de pression entre deux positions dans un fluide incompressible est donnée par la relation :
|
|
36
|
+
// $$
|
|
37
|
+
// \\Delta P = \\rho \\times g \\times (z_2 - z_1)
|
|
38
|
+
// $$
|
|
39
|
+
// où $\\rho$ est la densité du fluide en $\\text{kg·m}^{-3}$, $g$ est l'accélération due à la gravité en $\\text{m·s}^{-2}$, et $z_2 - z_1$ est la différence de profondeur en $\\text{m}$.`;
|
|
40
|
+
// const correction = `La différence de pression est calculée comme suit :
|
|
41
|
+
// $$
|
|
42
|
+
// \\Delta P = \\rho \\times g \\times (z_2 - z_1)
|
|
43
|
+
// $$
|
|
44
|
+
// En remplaçant par les valeurs fournies :
|
|
45
|
+
// $$
|
|
46
|
+
// \\Delta P = ${frenchify(density)} \\times ${frenchify(
|
|
47
|
+
// g,
|
|
48
|
+
// )} \\times (${frenchify(depth2)} - ${frenchify(depth1)}) = ${frenchify(
|
|
49
|
+
// pressureDifference,
|
|
50
|
+
// )}\\ \\text{Pa}
|
|
51
|
+
// $$`;
|
|
52
|
+
// const question: Question<Identifiers> = {
|
|
53
|
+
// answer: pressureDifference.toTree().toTex(),
|
|
54
|
+
// instruction: questionText,
|
|
55
|
+
// hint,
|
|
56
|
+
// correction,
|
|
57
|
+
// keys: [],
|
|
58
|
+
// answerFormat: "tex",
|
|
59
|
+
// identifiers: {
|
|
60
|
+
// density,
|
|
61
|
+
// depth1,
|
|
62
|
+
// depth2,
|
|
63
|
+
// },
|
|
64
|
+
// };
|
|
65
|
+
// return question;
|
|
66
|
+
// };
|
|
67
|
+
// const getPropositions: QCMGenerator<Identifiers> = (
|
|
68
|
+
// n,
|
|
69
|
+
// { answer, density, depth1, depth2 },
|
|
70
|
+
// ) => {
|
|
71
|
+
// const propositions: Proposition[] = [];
|
|
72
|
+
// addValidProp(propositions, answer);
|
|
73
|
+
// const wrongAnswers = [
|
|
74
|
+
// roundSignificant(density * g * (depth1 + depth2), 2),
|
|
75
|
+
// roundSignificant(density * g * (depth2 - depth1) * 0.5, 2),
|
|
76
|
+
// roundSignificant(density * g * (depth2 + depth1), 2),
|
|
77
|
+
// roundSignificant(density * g * (depth2 - depth1 + 1), 2),
|
|
78
|
+
// ];
|
|
79
|
+
// wrongAnswers.forEach((wrongAnswer) => {
|
|
80
|
+
// tryToAddWrongProp(propositions, wrongAnswer);
|
|
81
|
+
// });
|
|
82
|
+
// while (propositions.length < n) {
|
|
83
|
+
// tryToAddWrongProp(
|
|
84
|
+
// propositions,
|
|
85
|
+
// round(randint(1000, 100000), 2).toTree().toTex(),
|
|
86
|
+
// );
|
|
87
|
+
// }
|
|
88
|
+
// return shuffleProps(propositions, n);
|
|
89
|
+
// };
|
|
90
|
+
// const isAnswerValid: VEA<Identifiers> = (ans, { answer }) => {
|
|
91
|
+
// return ans === answer;
|
|
92
|
+
// };
|
|
93
|
+
// export const pressureDifferenceCalculation: Exercise<Identifiers> = {
|
|
94
|
+
// id: "pressureDifferenceCalculation",
|
|
95
|
+
// label: "Calculer la différence de pression dans un fluide incompressible",
|
|
96
|
+
// levels: ["1reSpé"],
|
|
97
|
+
// isSingleStep: true,
|
|
98
|
+
// sections: ["Fluides"],
|
|
99
|
+
// generator: (nb: number) =>
|
|
100
|
+
// getDistinctQuestions(getPressureDifferenceQuestion, nb),
|
|
101
|
+
// qcmTimer: 60,
|
|
102
|
+
// freeTimer: 60,
|
|
103
|
+
// getPropositions,
|
|
104
|
+
// isAnswerValid,
|
|
105
|
+
// subject: "Physique",
|
|
106
|
+
// };
|
|
@@ -5,8 +5,8 @@ const exercise_1 = require("../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const randint_1 = require("../../math/utils/random/randint");
|
|
7
7
|
const round_1 = require("../../math/utils/round");
|
|
8
|
-
const atome_1 = require("../../pc/molecularChemistry/atome");
|
|
9
|
-
const molecule_1 = require("../../pc/molecularChemistry/molecule");
|
|
8
|
+
const atome_1 = require("../../pc/constants/molecularChemistry/atome");
|
|
9
|
+
const molecule_1 = require("../../pc/constants/molecularChemistry/molecule");
|
|
10
10
|
const shuffle_1 = require("../../utils/shuffle");
|
|
11
11
|
const getFormulaFromComposition = () => {
|
|
12
12
|
const moleculesWith2Atoms = molecule_1.molecules.filter((molecule) => molecule.atoms.length === 2 && molecule.state !== "aqueous");
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exercise } from "../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
3
|
+
atomicMass: number;
|
|
4
|
+
atomicNumber: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const identifyAtomicMassOrAtomicNb: Exercise<Identifiers>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=identifyAtomicMassOrAtomicNb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identifyAtomicMassOrAtomicNb.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/identifyAtomicMassOrAtomicNb.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AASlC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AA0EF,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,WAAW,CAa9D,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.identifyAtomicMassOrAtomicNb = void 0;
|
|
4
|
+
const exercise_1 = require("../../exercises/exercise");
|
|
5
|
+
const getDistinctQuestions_1 = require("../../exercises/utils/getDistinctQuestions");
|
|
6
|
+
const randint_1 = require("../../math/utils/random/randint");
|
|
7
|
+
const round_1 = require("../../math/utils/round");
|
|
8
|
+
const coinFlip_1 = require("../../utils/coinFlip");
|
|
9
|
+
const random_1 = require("../../utils/random");
|
|
10
|
+
const requiresApostropheBefore_1 = require("../../utils/requiresApostropheBefore");
|
|
11
|
+
const getAtoms_1 = require("../utils/getAtoms");
|
|
12
|
+
const getIdentifyAtomicMassOrAtomicNbQuestion = () => {
|
|
13
|
+
const exo = generateExercise();
|
|
14
|
+
const question = {
|
|
15
|
+
answer: exo.answer,
|
|
16
|
+
instruction: `À l'aide du tableau périodique simplifié, déterminer ${exo.isAsking} d'un atome ${(0, requiresApostropheBefore_1.requiresApostropheBefore)(exo.atom.name) ? "d'" : "de "}${exo.atom.name}`,
|
|
17
|
+
keys: [],
|
|
18
|
+
answerFormat: "tex",
|
|
19
|
+
identifiers: {
|
|
20
|
+
atomicMass: exo.atomicMasss,
|
|
21
|
+
atomicNumber: exo.atomicNumber,
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
return question;
|
|
25
|
+
};
|
|
26
|
+
const getPropositions = (n, { answer, atomicMass, atomicNumber }) => {
|
|
27
|
+
const propositions = [];
|
|
28
|
+
(0, exercise_1.addValidProp)(propositions, answer);
|
|
29
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, +answer === atomicMass
|
|
30
|
+
? atomicNumber.toTree().toTex()
|
|
31
|
+
: atomicMass.toTree().toTex());
|
|
32
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, (0, round_1.round)(atomicMass + atomicNumber, 2, false)
|
|
33
|
+
.toTree()
|
|
34
|
+
.toTex());
|
|
35
|
+
while (propositions.length < n) {
|
|
36
|
+
let random = (0, randint_1.randint)(+answer.replaceAll(",", ".") -
|
|
37
|
+
Math.min(+answer.replaceAll(",", "."), 5) -
|
|
38
|
+
1, +answer.replaceAll(",", ".") + 5, [+answer.replaceAll(",", ".")]);
|
|
39
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, (0, round_1.round)(random, 2, false).toTree().toTex());
|
|
40
|
+
}
|
|
41
|
+
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
42
|
+
};
|
|
43
|
+
const isAnswerValid = (ans, { answer }) => {
|
|
44
|
+
return ans === answer;
|
|
45
|
+
};
|
|
46
|
+
const generateExercise = () => {
|
|
47
|
+
const atoms = (0, getAtoms_1.getAtoms)(3);
|
|
48
|
+
const atom = (0, random_1.random)(atoms);
|
|
49
|
+
const isAsking = (0, coinFlip_1.coinFlip)() ? "la masse atomique" : "le numéro atomique";
|
|
50
|
+
return {
|
|
51
|
+
atom,
|
|
52
|
+
isAsking,
|
|
53
|
+
answer: isAsking == "la masse atomique"
|
|
54
|
+
? atom.masseAtomique.toTree().toTex()
|
|
55
|
+
: atom.numeroAtomique.toTree().toTex(),
|
|
56
|
+
atomicMasss: atom.masseAtomique,
|
|
57
|
+
atomicNumber: atom.numeroAtomique,
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
exports.identifyAtomicMassOrAtomicNb = {
|
|
61
|
+
id: "identifyAtomicMassOrAtomicNb",
|
|
62
|
+
label: "Identifier la masse atomique et le numéro atomique",
|
|
63
|
+
levels: ["2nde"],
|
|
64
|
+
isSingleStep: true,
|
|
65
|
+
sections: ["Chimie organique"],
|
|
66
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getIdentifyAtomicMassOrAtomicNbQuestion, nb),
|
|
67
|
+
qcmTimer: 60,
|
|
68
|
+
freeTimer: 60,
|
|
69
|
+
getPropositions,
|
|
70
|
+
isAnswerValid,
|
|
71
|
+
subject: "Chimie",
|
|
72
|
+
};
|
|
@@ -21,9 +21,15 @@ export * from "./mole";
|
|
|
21
21
|
export * from "./mecanicalWaves";
|
|
22
22
|
export * from "./fluids";
|
|
23
23
|
export * from "./electricity";
|
|
24
|
+
export * from "./energy";
|
|
25
|
+
export * from "./motion";
|
|
24
26
|
export * from "./calibrationCurveOfSolution";
|
|
25
27
|
export * from "./dosage";
|
|
26
28
|
export * from "./spectral";
|
|
29
|
+
export * from "./identifyAtomicMassOrAtomicNb";
|
|
30
|
+
export * from "./recognizeRefractionOrReflectionAngles";
|
|
31
|
+
export * from "./orderOfMagnitude";
|
|
32
|
+
export * from "./power";
|
|
27
33
|
/**exos pris des maths */
|
|
28
34
|
export * from "../math/percent/findProportion";
|
|
29
35
|
export * from "../math/calcul/proportionality/proportionalityTable";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,MAAM,CAAC;AACrB,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exercises/pc/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,MAAM,CAAC;AACrB,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,8BAA8B,CAAC;AAC7C,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC;AACxD,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AAExB,yBAAyB;AACzB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qDAAqD,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mDAAmD,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAClF,cAAc,uDAAuD,CAAC;AACtE,cAAc,uDAAuD,CAAC;AACtE,cAAc,uDAAuD,CAAC;AACtE,cAAc,uDAAuD,CAAC;AACtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mDAAmD,CAAC;AAClE,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kDAAkD,CAAC;AACjE,cAAc,uCAAuC,CAAC;AACtD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,+CAA+C,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,sDAAsD,CAAC;AAC9F,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8CAA8C,CAAC"}
|
|
@@ -38,9 +38,15 @@ __exportStar(require("./mole"), exports);
|
|
|
38
38
|
__exportStar(require("./mecanicalWaves"), exports);
|
|
39
39
|
__exportStar(require("./fluids"), exports);
|
|
40
40
|
__exportStar(require("./electricity"), exports);
|
|
41
|
+
__exportStar(require("./energy"), exports);
|
|
42
|
+
__exportStar(require("./motion"), exports);
|
|
41
43
|
__exportStar(require("./calibrationCurveOfSolution"), exports);
|
|
42
44
|
__exportStar(require("./dosage"), exports);
|
|
43
45
|
__exportStar(require("./spectral"), exports);
|
|
46
|
+
__exportStar(require("./identifyAtomicMassOrAtomicNb"), exports);
|
|
47
|
+
__exportStar(require("./recognizeRefractionOrReflectionAngles"), exports);
|
|
48
|
+
__exportStar(require("./orderOfMagnitude"), exports);
|
|
49
|
+
__exportStar(require("./power"), exports);
|
|
44
50
|
/**exos pris des maths */
|
|
45
51
|
__exportStar(require("../math/percent/findProportion"), exports);
|
|
46
52
|
__exportStar(require("../math/calcul/proportionality/proportionalityTable"), exports);
|
|
@@ -5,8 +5,8 @@ const exercise_1 = require("../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const frenchify_1 = require("../../math/utils/latex/frenchify");
|
|
7
7
|
const round_1 = require("../../math/utils/round");
|
|
8
|
-
const atome_1 = require("../../pc/molecularChemistry/atome");
|
|
9
|
-
const molecule_1 = require("../../pc/molecularChemistry/molecule");
|
|
8
|
+
const atome_1 = require("../../pc/constants/molecularChemistry/atome");
|
|
9
|
+
const molecule_1 = require("../../pc/constants/molecularChemistry/molecule");
|
|
10
10
|
const shuffle_1 = require("../../utils/shuffle");
|
|
11
11
|
const getMolarQuantityQuestion = () => {
|
|
12
12
|
const mG = (0, round_1.round)(Math.random() * 150 + 50, 0); // Masse de l'échantillon en g (entre 50 et 200 g)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/mole/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/mole/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC"}
|
|
@@ -18,3 +18,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
__exportStar(require("./molarMass"), exports);
|
|
19
19
|
__exportStar(require("./molFromMolarMass"), exports);
|
|
20
20
|
__exportStar(require("./molFromMass"), exports);
|
|
21
|
+
__exportStar(require("./moleculeCountFromMol"), exports);
|
|
22
|
+
__exportStar(require("./moleculeCountFromMassAndAvogadro"), exports);
|
|
@@ -5,7 +5,7 @@ const exercise_1 = require("../../../exercises/exercise");
|
|
|
5
5
|
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
6
6
|
const randfloat_1 = require("../../../math/utils/random/randfloat");
|
|
7
7
|
const round_1 = require("../../../math/utils/round");
|
|
8
|
-
const molecule_1 = require("../../../pc/molecularChemistry/molecule");
|
|
8
|
+
const molecule_1 = require("../../../pc/constants/molecularChemistry/molecule");
|
|
9
9
|
const random_1 = require("../../../utils/random");
|
|
10
10
|
const requiresApostropheBefore_1 = require("../../../utils/requiresApostropheBefore");
|
|
11
11
|
const getMolarMassQuestion = () => {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Exercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
3
|
+
moleculeName: string;
|
|
4
|
+
sampleMass: number;
|
|
5
|
+
molarMass: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const MoleculeCountFromMassAndAvogadro: Exercise<Identifiers>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=moleculeCountFromMassAndAvogadro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moleculeCountFromMassAndAvogadro.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/mole/moleculeCountFromMassAndAvogadro.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAWlC,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAiFF,eAAO,MAAM,gCAAgC,EAAE,QAAQ,CAAC,WAAW,CAalE,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MoleculeCountFromMassAndAvogadro = void 0;
|
|
4
|
+
const frenchify_1 = require("../../../math/utils/latex/frenchify");
|
|
5
|
+
const exercise_1 = require("../../../exercises/exercise");
|
|
6
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
7
|
+
const randfloat_1 = require("../../../math/utils/random/randfloat");
|
|
8
|
+
const molecule_1 = require("../../../pc/constants/molecularChemistry/molecule");
|
|
9
|
+
const random_1 = require("../../../utils/random");
|
|
10
|
+
const randint_1 = require("../../../math/utils/random/randint");
|
|
11
|
+
const atoms_1 = require("../../../pc/constants/molecularChemistry/atoms");
|
|
12
|
+
const requiresApostropheBefore_1 = require("../../../utils/requiresApostropheBefore");
|
|
13
|
+
const getMoleculeCountFromMassAndAvogadroQuestion = () => {
|
|
14
|
+
const molecule = (0, random_1.random)(molecule_1.molecules);
|
|
15
|
+
const sampleMass = (0, randfloat_1.randfloat)(0.1, 2, 2); // Sample mass in grams
|
|
16
|
+
const molarMass = molecule.weight; // Molar mass in g/mol
|
|
17
|
+
const Na = atoms_1.avogadroConstant.value.toSignificant(2);
|
|
18
|
+
const entitiesNumber = Na.times(sampleMass / molarMass).toSignificant(2);
|
|
19
|
+
const instruction = `Un échantillon a une masse $m = ${(0, frenchify_1.frenchify)(sampleMass)}\\ g$ de ${(0, requiresApostropheBefore_1.requiresApostropheBefore)(molecule.name) ? "d'" : "de "}${molecule.name}. La masse molaire ${(0, requiresApostropheBefore_1.requiresApostropheBefore)(molecule.name) ? "d'" : "de "}${molecule.name} est de $${molarMass}\\ g/mol$.
|
|
20
|
+
Déterminer le nombre de molécules ${(0, requiresApostropheBefore_1.requiresApostropheBefore)(molecule.name) ? "d'" : "de "}${molecule.name}.`;
|
|
21
|
+
const question = {
|
|
22
|
+
answer: entitiesNumber.toTex(),
|
|
23
|
+
instruction,
|
|
24
|
+
keys: ["mol", "timesTenPower"],
|
|
25
|
+
answerFormat: "tex",
|
|
26
|
+
identifiers: { moleculeName: molecule.name, sampleMass, molarMass },
|
|
27
|
+
};
|
|
28
|
+
return question;
|
|
29
|
+
};
|
|
30
|
+
const getPropositions = (n, { answer, moleculeName, sampleMass }) => {
|
|
31
|
+
const propositions = [];
|
|
32
|
+
(0, exercise_1.addValidProp)(propositions, answer);
|
|
33
|
+
const Na = atoms_1.avogadroConstant.value.toSignificant(2);
|
|
34
|
+
const molecule = molecule_1.molecules.find((m) => m.name === moleculeName);
|
|
35
|
+
const molarMass = molecule.weight;
|
|
36
|
+
const wrongDivision = Na.times(molarMass / sampleMass).toSignificant(2);
|
|
37
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, wrongDivision.toTex());
|
|
38
|
+
const wrongCalculation = Na.times(sampleMass * molarMass).toSignificant(2);
|
|
39
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, wrongCalculation.toTex());
|
|
40
|
+
while (propositions.length < n) {
|
|
41
|
+
const wrongPower = Na.times((sampleMass / molarMass) * Math.pow(10, (0, randint_1.randint)(-2, 2, [0]))).toSignificant(2);
|
|
42
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, wrongPower.toTex());
|
|
43
|
+
}
|
|
44
|
+
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
45
|
+
};
|
|
46
|
+
const isAnswerValid = (ans, { answer, sampleMass, molarMass }) => {
|
|
47
|
+
let latexs = [];
|
|
48
|
+
const Na = atoms_1.avogadroConstant.value.toSignificant(2);
|
|
49
|
+
const validanswer1 = Na.times(sampleMass / molarMass)
|
|
50
|
+
.toSignificant(1)
|
|
51
|
+
.toTex();
|
|
52
|
+
const validanswer2 = Na.times(sampleMass / molarMass)
|
|
53
|
+
.toSignificant(2)
|
|
54
|
+
.toTex();
|
|
55
|
+
const validanswer3 = Na.times(sampleMass / molarMass)
|
|
56
|
+
.toSignificant(3)
|
|
57
|
+
.toTex();
|
|
58
|
+
latexs.push(validanswer1);
|
|
59
|
+
latexs.push(validanswer2);
|
|
60
|
+
latexs.push(validanswer3);
|
|
61
|
+
return latexs.includes(ans);
|
|
62
|
+
};
|
|
63
|
+
exports.MoleculeCountFromMassAndAvogadro = {
|
|
64
|
+
id: "moleculeCountFromMassAndAvogadro",
|
|
65
|
+
label: "Déterminer le nombre de molécules dans un échantillon",
|
|
66
|
+
levels: ["2nde", "1reSpé"],
|
|
67
|
+
isSingleStep: true,
|
|
68
|
+
sections: ["Chimie organique"],
|
|
69
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getMoleculeCountFromMassAndAvogadroQuestion, nb),
|
|
70
|
+
qcmTimer: 60,
|
|
71
|
+
freeTimer: 60,
|
|
72
|
+
getPropositions,
|
|
73
|
+
isAnswerValid,
|
|
74
|
+
subject: "Chimie",
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moleculeCountFromMol.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/mole/moleculeCountFromMol.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAMlC,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AA8DxC,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,WAAW,CAatD,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.moleculeCountFromMol = void 0;
|
|
4
|
+
const exercise_1 = require("../../../exercises/exercise");
|
|
5
|
+
const getDistinctQuestions_1 = require("../../../exercises/utils/getDistinctQuestions");
|
|
6
|
+
const randfloat_1 = require("../../../math/utils/random/randfloat");
|
|
7
|
+
const atoms_1 = require("../../../pc/constants/molecularChemistry/atoms");
|
|
8
|
+
const getMoleculeCountFromMolQuestion = () => {
|
|
9
|
+
const quantity = (0, randfloat_1.randfloat)(0.01, 100, 2); // Quantité de matière en moles, entre 0.01 et 10 moles
|
|
10
|
+
const numberOfMolecules = atoms_1.avogadroConstant.value
|
|
11
|
+
.times(quantity)
|
|
12
|
+
.toSignificant(2);
|
|
13
|
+
const question = {
|
|
14
|
+
answer: numberOfMolecules.toTex(),
|
|
15
|
+
instruction: `Calculer le nombre de molécules dans un échantillon contenant $${quantity.frenchify()} \\ mol$ de substance.`,
|
|
16
|
+
keys: ["mol", "timesTenPower"],
|
|
17
|
+
answerFormat: "tex",
|
|
18
|
+
identifiers: { quantity },
|
|
19
|
+
};
|
|
20
|
+
return question;
|
|
21
|
+
};
|
|
22
|
+
const getPropositions = (n, { answer, quantity }) => {
|
|
23
|
+
const propositions = [];
|
|
24
|
+
(0, exercise_1.addValidProp)(propositions, answer);
|
|
25
|
+
const w1 = atoms_1.avogadroConstant.value.divide(quantity).toSignificant(2);
|
|
26
|
+
const w2 = `$${answer} mol$`;
|
|
27
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, w1.toTex());
|
|
28
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, w2);
|
|
29
|
+
while (propositions.length < n) {
|
|
30
|
+
const wrongAnswer = (parseFloat(answer) * (0, randfloat_1.randfloat)(0.5, 1.5, 2)).toScientific(2);
|
|
31
|
+
(0, exercise_1.tryToAddWrongProp)(propositions, wrongAnswer.toTex());
|
|
32
|
+
}
|
|
33
|
+
return (0, exercise_1.shuffleProps)(propositions, n);
|
|
34
|
+
};
|
|
35
|
+
const isAnswerValid = (ans, { answer, quantity }) => {
|
|
36
|
+
let latexs = [];
|
|
37
|
+
const validanswer1 = atoms_1.avogadroConstant.value
|
|
38
|
+
.times(quantity)
|
|
39
|
+
.toSignificant(1)
|
|
40
|
+
.toTex();
|
|
41
|
+
const validanswer2 = atoms_1.avogadroConstant.value
|
|
42
|
+
.times(quantity)
|
|
43
|
+
.toSignificant(2)
|
|
44
|
+
.toTex();
|
|
45
|
+
const validanswer3 = atoms_1.avogadroConstant.value
|
|
46
|
+
.times(quantity)
|
|
47
|
+
.toSignificant(3)
|
|
48
|
+
.toTex();
|
|
49
|
+
latexs.push(validanswer1);
|
|
50
|
+
latexs.push(validanswer2);
|
|
51
|
+
latexs.push(validanswer3);
|
|
52
|
+
return latexs.includes(ans);
|
|
53
|
+
};
|
|
54
|
+
exports.moleculeCountFromMol = {
|
|
55
|
+
id: "moleculeCountFromMol",
|
|
56
|
+
label: "Calculer le nombre de molécules dans un échantillon",
|
|
57
|
+
levels: ["2nde"],
|
|
58
|
+
isSingleStep: true,
|
|
59
|
+
sections: ["Chimie organique"],
|
|
60
|
+
generator: (nb) => (0, getDistinctQuestions_1.getDistinctQuestions)(getMoleculeCountFromMolQuestion, nb),
|
|
61
|
+
qcmTimer: 60,
|
|
62
|
+
freeTimer: 60,
|
|
63
|
+
getPropositions,
|
|
64
|
+
isAnswerValid,
|
|
65
|
+
subject: "Chimie",
|
|
66
|
+
};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.moleculeFormula = void 0;
|
|
4
4
|
const exercise_1 = require("../../exercises/exercise");
|
|
5
5
|
const getDistinctQuestions_1 = require("../../exercises/utils/getDistinctQuestions");
|
|
6
|
-
const molecule_1 = require("../../pc/molecularChemistry/molecule");
|
|
6
|
+
const molecule_1 = require("../../pc/constants/molecularChemistry/molecule");
|
|
7
7
|
const shuffle_1 = require("../../utils/shuffle");
|
|
8
8
|
const getMoleculeNFormula = () => {
|
|
9
9
|
const organicMolecule = molecule_1.molecules.filter((molecule) => molecule.isOrganic && molecule.iupact);
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.moleculeNomenclature = void 0;
|
|
4
4
|
const exercise_1 = require("../../exercises/exercise");
|
|
5
5
|
const getDistinctQuestions_1 = require("../../exercises/utils/getDistinctQuestions");
|
|
6
|
-
const molecule_1 = require("../../pc/molecularChemistry/molecule");
|
|
6
|
+
const molecule_1 = require("../../pc/constants/molecularChemistry/molecule");
|
|
7
7
|
const shuffle_1 = require("../../utils/shuffle");
|
|
8
8
|
const getMoleculeNomenclature = () => {
|
|
9
9
|
const organicMolecule = molecule_1.molecules.filter((molecule) => molecule.isOrganic && molecule.type);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Exercise } from "../../../exercises/exercise";
|
|
2
|
+
type Identifiers = {
|
|
3
|
+
distance: measure;
|
|
4
|
+
time: measure;
|
|
5
|
+
};
|
|
6
|
+
type measure = {
|
|
7
|
+
value: number;
|
|
8
|
+
unitIndex: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const averageSpeed: Exercise<Identifiers>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=averageSpeed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"averageSpeed.d.ts","sourceRoot":"","sources":["../../../../src/exercises/pc/motion/averageSpeed.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAST,MAAM,0BAA0B,CAAC;AAalC,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,KAAK,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAoJpD,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,WAAW,CAY9C,CAAC"}
|