HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can4C10-0ShFw1MA.js.map
{"version":3,"file":"can4C10-0ShFw1MA.js","sources":["../../src/exercices/can/4e/can4C10.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { texteEnCouleur } from '../../../lib/outils/embellissements'\nimport { simplificationDeFractionAvecEtapes } from '../../../lib/outils/deprecatedFractions.js'\nimport Exercice from '../../Exercice.js'\nimport { randint } from '../../../modules/outils.js'\nimport { fraction } from '../../../modules/fractions.js'\nexport const titre = 'Calculer une somme/différence de fractions égyptiennes'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\n/**\n * 1/n +/- 1/m\n * @author Gilles Mora\n * publié le 23/10/2021\n * Référence can4C10\n*/\nexport const uuid = '8cbb4'\nexport const ref = 'can4C10'\nexport default function SommeDifferenceFractionsEgyptiennes () {\n  Exercice.call(this)\n  this.typeExercice = 'simple'\n  this.nbQuestions = 1\n  this.tailleDiaporama = 2\n  this.formatChampTexte = 'largeur15 inline'\n  this.formatInteractif = 'fraction'\n  this.nouvelleVersion = function () {\n    const a = randint(2, 7)\n    const b = randint(2, 7, a)\n    if (choice([true, false])) {\n      this.reponse = fraction(b + a, a * b)\n      this.reponse = this.reponse.simplifie()\n      this.question = `Calculer sous la forme d'une fraction irréductible $\\\\dfrac{1}{${a}}+\\\\dfrac{1}{${b}}$.`\n      this.correction = `$\\\\dfrac{1}{${a}}+\\\\dfrac{1}{${b}}=\\\\dfrac{1\\\\times ${b}}{${a}\\\\times ${b}}+\\\\dfrac{1\\\\times ${a}}{${b}\\\\times ${a}}=\\\\dfrac{${b}+${a}}{${a * b}}=${this.reponse.texFraction}$`\n      this.correction += texteEnCouleur(`<br> Mentalement : <br>\n      Pour additionner des fractions, on les met au même dénominateur.<br>\n      On prend pour  dénominateur commun  le produit des deux dénominateurs $${a}\\\\times ${b}=${a * b}$.<br>\n      $\\\\dfrac{1}{${a}}=\\\\dfrac{${b}}{${a * b}}$ et $\\\\dfrac{1}{${b}}=\\\\dfrac{${a}}{${a * b}}$.<br>\n      On en déduit : $\\\\dfrac{1}{${a}}+\\\\dfrac{1}{${b}}=\\\\dfrac{${b}+${a}}{${a * b}}=\\\\dfrac{${a + b}}{${a * b}}${simplificationDeFractionAvecEtapes(a + b, a * b)}$.\n          `)\n    } else {\n      this.reponse = fraction(b - a, a * b)\n      this.reponse = this.reponse.simplifie()\n      this.question = `Calculer sous la forme d'une fraction irréductible $\\\\dfrac{1}{${a}}-\\\\dfrac{1}{${b}}$.`\n      this.correction = `$\\\\dfrac{1}{${a}}-\\\\dfrac{1}{${b}}=\\\\dfrac{1\\\\times ${b}}{${a}\\\\times ${b}}-\\\\dfrac{1\\\\times ${a}}{${a}\\\\times ${b}}=\\\\dfrac{${b}-${a}}{${a * b}}=\\\\dfrac{${b - a}}{${a * b}}=${this.reponse.texFraction}$`\n      this.correction += texteEnCouleur(`<br> Mentalement : <br>\n      Pour additionner des fractions, on les met au même dénominateur.<br>\n      On prend pour  dénominateur commun  le produit des deux dénominateurs $${a}\\\\times ${b}=${a * b}$.<br>\n      $\\\\dfrac{1}{${a}}=\\\\dfrac{${b}}{${a * b}}$ et $\\\\dfrac{1}{${b}}=\\\\dfrac{${a}}{${a * b}}$.<br>\n      On en déduit : $\\\\dfrac{1}{${a}}-\\\\dfrac{1}{${b}}=\\\\dfrac{${b}-${a}}{${a * b}}=\\\\dfrac{${b - a}}{${a * b}}${simplificationDeFractionAvecEtapes(b - a, a * b)}$.\n          `)\n    }\n    this.canEnonce = this.question\n    this.canReponseACompleter = ''\n  }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","uuid","ref","SommeDifferenceFractionsEgy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