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/can2C15-WrFjGlYI.js.map
{"version":3,"file":"can2C15-WrFjGlYI.js","sources":["../../src/exercices/can/2e/can2C15.js"],"sourcesContent":["import { choice } from '../../../lib/outils/arrayOutils'\nimport { deprecatedTexFraction, obtenirListeFractionsIrreductibles } from '../../../lib/outils/deprecatedFractions.js'\nimport FractionEtendue from '../../../modules/FractionEtendue.js'\nimport { randint } from '../../../modules/outils.js'\nimport { miseEnEvidence } from '../../../lib/outils/embellissements'\nimport Exercice from '../../deprecatedExercice.js'\nexport const titre = 'Calculer un nombre connaissant son inverse'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcReady = true\nexport const amcType = 'AMCNum'\nexport const dateDePublication = '10/11/2022'\n/*!\n * @author Gilles Mora\n * Référence can2C15\n*/\n\nexport const uuid = 'd9488'\nexport const ref = 'can2C15'\nexport default function NombreInverse () {\n  Exercice.call(this)\n  this.typeExercice = 'simple'\n  this.nbQuestions = 1\n  this.tailleDiaporama = 2\n  this.formatChampTexte = 'largeur15 inline'\n  this.formatInteractif = 'fractionEgale'\n  this.nouvelleVersion = function () {\n    const maFraction = choice(obtenirListeFractionsIrreductibles())\n    const a = randint(1, 4)\n    const b = maFraction[0]\n    const c = maFraction[1]\n    const d = new FractionEtendue(a * c + b, c)\n    const e = new FractionEtendue(a * c - b, c)\n    const listeNom = ['R', 'x', 'y', 'T', 'z', 'U', 'A', 'B', 'C']\n    const Nom = choice(listeNom)\n    if (choice([true, false])) {\n      this.reponse = new FractionEtendue(a * c + b, c).inverse()\n      this.question = `Calculer $${Nom}$  sachant que : <br>\n     $\\\\dfrac{1}{${Nom}}=${a}+${deprecatedTexFraction(b, c)}$`\n      this.correction = `$\\\\dfrac{1}{${Nom}}=${a}+${deprecatedTexFraction(b, c)} = \\\\dfrac{${a} \\\\times ${c}}{${c}} + \\\\dfrac{${b}}{${c}} = \\\\dfrac{${a * c}}{${c}} + \\\\dfrac{${b}}{${c}}  =${d.texFraction}$<br><br>\n    Ainsi $${Nom}=${miseEnEvidence(`${d.inverse().texFraction}`)}$.`\n      this.canEnonce = `$\\\\dfrac{1}{${Nom}}=${a}+${deprecatedTexFraction(b, c)}$`// 'Compléter'\n      this.canReponseACompleter = `$${Nom}=\\\\ldots$`\n    } else {\n      this.reponse = new FractionEtendue(a * c - b, c).inverse()\n      this.question = `Calculer $${Nom}$  sachant que : <br>\n         $\\\\dfrac{1}{${Nom}}=${a}-${deprecatedTexFraction(b, c)}$`\n      this.correction = `$\\\\dfrac{1}{${Nom}}=${a}-${deprecatedTexFraction(b, c)} = \\\\dfrac{${a} \\\\times ${c}}{${c}} - \\\\dfrac{${b}}{${c}} = \\\\dfrac{${a * c}}{${c}} - \\\\dfrac{${b}}{${c}}  =${e.texFraction}$<br><br>\n        Ainsi $${Nom}=${miseEnEvidence(`${e.inverse().texFraction}`)}$.`\n      this.canEnonce = `$\\\\dfrac{1}{${Nom}}=${a}-${deprecatedTexFraction(b, c)}$`// 'Compléter'\n      this.canReponseACompleter = `$${Nom}=\\\\ldots$`\n    }\n  }\n}\n"],"names":["titre","interactifReady","interactifType","amcReady","amcType","dateDePublication","uuid","ref","NombreInverse","Exercice","maFraction","choice","obtenirListeFractionsIrreductibles","a","randint","b","c","d","FractionEtendue","e","Nom","deprecatedTexFraction","miseEnEvidence"],"mappings":"iIAMY,MAACA,EAAQ,6CACRC,EAAkB,GAClBC,EAAiB,WACjBC,EAAW,GACXC,EAAU,SACVC,EAAoB,aACjC;AAAA;AAAA;AAAA,EAKY,MAACC,EAAO,QACPC,EAAM,UACJ,SAASC,GAAiB,CACvCC,EAAS,KAAK,IAAI,EAClB,KAAK,aAAe,SACpB,KAAK,YAAc,EACnB,KAAK,g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