diff --git a/docs/2nde_Phy/02_signaux_capteurs.md b/docs/2nde_Phy/02_signaux_capteurs.md index 7ea6089eabe4ae4462080d5232781df855422490..0bb573c6619a58e44ccd10d6290d331dfcacb82f 100644 --- a/docs/2nde_Phy/02_signaux_capteurs.md +++ b/docs/2nde_Phy/02_signaux_capteurs.md @@ -324,6 +324,60 @@ On peut utiliser cette formule pour calculer U, R ou I : - on connait l'intensité I la tension et on veut calculer la résistance : <span style="color:red;"> <math xmlns="http://www.w3.org/1998/Math/MathML"><mi>R</mi><mo>=</mo><mi>U</mi><mo>/</mo><mi>I</mi></math></span> +!!! question "Application de la loi d'Ohm" + + Entraînez-vous ! + + U(V) | I(mA) | R(Ω) + :---: |:---: |:---: + <input type="text" id="ohm1_1" placeholder="U"> | <span id="ohm1_2"> I </span>| <span id="ohm1_3"> R </span> + <span id="ohm2_1"> U </span> |<input type="text" id="ohm2_2" placeholder="I"> | <span id="ohm2_3"> R </span> + <span id="ohm3_1"> U </span> | <span id="ohm3_2"> I </span>| <input type="text" id="ohm3_3" placeholder="R"> + + <input type="button" value="Générer" onclick="generateValues();"> + <input type="button" value="Vérifier" onclick="checkAnswers();"> + +<script> +function generateValues() { + // Générer des valeurs aléatoires pour U, I et R + const U = Math.floor(Math.random() * 100) + 1; // Tension en volts + const I = Math.floor(Math.random() * 100) + 1; // Courant en mA + const R = (U / (I / 1000)).toFixed(2); // Résistance en ohms + + // Affecter les valeurs à des endroits fixes + document.getElementById("ohm1_1").value = U; // U + document.getElementById("ohm1_2").innerText = (I / 1000).toFixed(3); // I en A + document.getElementById("ohm1_3").innerText = R; // R + + document.getElementById("ohm2_1").innerText = U; // U + document.getElementById("ohm2_3").innerText = R; // R + + document.getElementById("ohm3_1").innerText = U; // U + document.getElementById("ohm3_2").innerText = (I / 1000).toFixed(3); // I en A +} + +function checkAnswers() { + const U = parseFloat(document.getElementById("ohm1_1").value); + const I = parseFloat(document.getElementById("ohm2_2").value) / 1000; // Convertir en A + const R = parseFloat(document.getElementById("ohm3_3").value); + + let isCorrect = true; + + // Vérification de la loi d'Ohm : U = I * R + if (Math.abs(U - I * R) > 0.01) { + isCorrect = false; + } + + // Afficher un message + if (isCorrect) { + alert("Bravo ! Les réponses sont correctes."); + } else { + alert("Erreur ! Vérifiez vos calculs."); + } +} +</script> + + ### 3) Mesure d'une résistance !!! danger " " diff --git a/docs/2nde_Phy/06_const_mat2.md b/docs/2nde_Phy/06_const_mat2.md index b3aa52f0864d494ecb68f97cb414b32457b5253c..c2ec8bc298a0b93c2e6aa47fc9561389ea65a9b0 100644 --- a/docs/2nde_Phy/06_const_mat2.md +++ b/docs/2nde_Phy/06_const_mat2.md @@ -3,9 +3,11 @@ author : Julien Bernon title : Constitution de la matière - Partie 2 --- # B. Description et caractéristiques de la matière à l'échelle microscopique + ## I- Constitution de l'atome ### 1) Schéma + <div> <div style="text-align:center;"><img src="https://site-web3-448b34.forge.apps.education.fr/images/06-modele_atome.png"></img></div> <div class="cours">