PBYetml / PROG_SLO1_C_PRJ2

Resultat des Etudiants
HomePage
0 stars 3 forks source link

NEG => bugs/remarques => fichier fonctionPontDiv.c -> fct CalculTensionPontDivisueur #29

Closed PBYetml closed 1 year ago

PBYetml commented 1 year ago

voici un listing des points à améliorer/corriger dans le fichier fonctionPontDiv.c

=> voir fichier vidéo lien vidéo

Larssno commented 1 year ago
  1. pareil au point précèdent: voir code après modification
PBYetml commented 1 year ago

voir commentaire dans la réponse : https://github.com/PBYetml/PROG_SLO1_C_PRJ2/issues/9#issuecomment-1520409399

Larssno commented 1 year ago
  1. voici la fonction faite et (juste): https://github.com/PBYetml/PROG_SLO1_C_PRJ2/blob/6485ee806598f9165cefec5cd38097a659d60fc4/NEG/PROJET1_S1_ELGHANDOUR/PROJET1_S1_ELGHANDOUR/fonctionsPontDiv.c#L75

  2. réponse du point: https://github.com/PBYetml/PROG_SLO1_C_PRJ2/blob/6485ee806598f9165cefec5cd38097a659d60fc4/NEG/PROJET1_S1_ELGHANDOUR/PROJET1_S1_ELGHANDOUR/fonctionsPontDiv.c#L85

  3. réponse du point: https://github.com/PBYetml/PROG_SLO1_C_PRJ2/blob/6485ee806598f9165cefec5cd38097a659d60fc4/NEG/PROJET1_S1_ELGHANDOUR/PROJET1_S1_ELGHANDOUR/fonctionsPontDiv.c#L91

  4. un autre algorithme (merci de l'aide de Cyril) pour calculer entre les résistances: https://github.com/PBYetml/PROG_SLO1_C_PRJ2/blob/6485ee806598f9165cefec5cd38097a659d60fc4/NEG/PROJET1_S1_ELGHANDOUR/PROJET1_S1_ELGHANDOUR/fonctionsPontDiv.c#L91

PBYetml commented 1 year ago

en relation avec votre réponse : https://github.com/PBYetml/PROG_SLO1_C_PRJ2/issues/29#issuecomment-1520754020

  1. pour que votre instruction soit complètement juste qu'est-ce qui manque ou que vous ne mentionnez pas ? et à quoi vous sert cette instruction
  2. même remarque ou question supplémentaire ? quelle différence entre le point 3 et 4 ? que cherchez-vous à calculer ?
Larssno commented 1 year ago
  1. for (i = 0; i < demoPonDiv->nbResComposantPonRes; i++) { restotal = restotal + demoPonDiv->tbValRes[i]; }

  2. et 4. for (i = 0; i < demoPonDiv->nbResComposantPonRes; i++) { demoPonDiv->tbValTensionRes[i] = (demoPonDiv->tensionAlimPontRes * demoPonDiv->tbValRes[i]) / restotal; } for (i = 0; i < demoPonDiv->nbResComposantPonRes; i++) { ValTensionResTot = ValTensionResTot + demoPonDiv->tbValTensionRes[i]; demoPonDiv->ValTensionEntreRes[i] = demoPonDiv->tensionAlimPontRes - ValTensionResTot; }

PBYetml commented 1 year ago

OKI => issue fermée