Subversion Repositories wimsdev

Rev

Rev 104 | Rev 472 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 104 Rev 110
Line 682... Line 682...
682
  fraction mult = gauche->operator[](0)->nombre();
682
  fraction mult = gauche->operator[](0)->nombre();
683
  mult.inverse();
683
  mult.inverse();
684
  gauche->coeff(mult);
684
  gauche->coeff(mult);
685
  droit->coeff(mult);
685
  droit->coeff(mult);
686
  simplifie();
686
  simplifie();
687
  if (!redox()){
687
  if (!redox() && valdefined()){
688
    val = val*mult.i/mult.d;
688
    val = val*mult.i/mult.d;
689
  }
689
  }
690
}
690
}
691
 
691
 
692
void Chemeq::multiply(int num, int den){
692
void Chemeq::multiply(int num, int den){
693
  fraction mult(num,den);
693
  fraction mult(num,den);
694
  gauche->coeff(mult);
694
  gauche->coeff(mult);
695
  droit->coeff(mult);
695
  droit->coeff(mult);
696
  simplifie();
696
  simplifie();
697
  if (!redox()){
697
  if (!redox() && valdefined()){
698
    val = val*mult.i/mult.d;
698
    val = val*mult.i/mult.d;
699
  }
699
  }
700
}
700
}
701
 
701
 
702
bool Chemeq::redox()const{
702
bool Chemeq::redox()const{