text: // File Automatically generated by eLiSe
  #include "StdAfx.h"
  #include "cREgDistVal_Polyn7.h"
  
  
  cREgDistVal_Polyn7::cREgDistVal_Polyn7():
      cElCompiledFonc(2)
  {
     AddIntRef (cIncIntervale("Intr",0,69));
     Close(false);
  }
  
  
  
  void cREgDistVal_Polyn7::ComputeVal()
  {
     double tmp0_ = mLocRegDistValP1_x - mLocPolyn7_State_1_0;
     double tmp1_ = (tmp0_) / mLocPolyn7_State_0_0;
     double tmp2_ = mLocRegDistValP1_y - mLocPolyn7_State_2_0;
     double tmp3_ = (tmp2_) / mLocPolyn7_State_0_0;
     double tmp4_ = (tmp1_) * (tmp1_);
     double tmp5_ = (tmp3_) * (tmp3_);
     double tmp6_ = tmp4_ * (tmp1_);
     double tmp7_ = (tmp3_) * (tmp1_);
     double tmp8_ = tmp7_ * (tmp1_);
     double tmp9_ = tmp5_ * (tmp1_);
     double tmp10_ = (tmp3_) * tmp5_;
     double tmp11_ = tmp6_ * (tmp1_);
     double tmp12_ = tmp8_ * (tmp1_);
     double tmp13_ = tmp9_ * (tmp1_);
     double tmp14_ = tmp10_ * (tmp1_);
     double tmp15_ = (tmp3_) * tmp10_;
     double tmp16_ = tmp11_ * (tmp1_);
     double tmp17_ = tmp12_ * (tmp1_);
     double tmp18_ = tmp13_ * (tmp1_);
     double tmp19_ = tmp14_ * (tmp1_);
     double tmp20_ = tmp15_ * (tmp1_);
     double tmp21_ = (tmp3_) * tmp15_;
     double tmp22_ = tmp16_ * (tmp1_);
     double tmp23_ = tmp17_ * (tmp1_);
     double tmp24_ = tmp18_ * (tmp1_);
     double tmp25_ = tmp19_ * (tmp1_);
     double tmp26_ = tmp20_ * (tmp1_);
     double tmp27_ = tmp21_ * (tmp1_);
     double tmp28_ = (tmp3_) * tmp21_;
     double tmp29_ = mCompCoord[3];
     double tmp30_ = mCompCoord[4];
     double tmp31_ = mCompCoord[5];
     double tmp32_ = (tmp1_) * (tmp3_);
     double tmp33_ = mCompCoord[6];
     double tmp34_ = tmp22_ * (tmp1_);
     double tmp35_ = tmp23_ * (tmp1_);
     double tmp36_ = tmp24_ * (tmp1_);
     double tmp37_ = tmp25_ * (tmp1_);
     double tmp38_ = tmp26_ * (tmp1_);
     double tmp39_ = tmp27_ * (tmp1_);
     double tmp40_ = tmp28_ * (tmp1_);
     double tmp41_ = (tmp3_) * tmp28_;
  
    mVal[0] = (mLocPolyn7_State_1_0 + (((1 + tmp29_) * (tmp1_) + tmp30_ * (tmp3_)) - tmp31_ * 2 * tmp4_ + tmp33_ * tmp32_ + mCompCoord[7] * tmp5_) * mLocPolyn7_State_0_0 + (mCompCoord[9] * tmp6_ + mCompCoord[10] * tmp8_ + mCompCoord[11] * tmp9_ + mCompCoord[12] * tmp10_ + mCompCoord[17] * tmp11_ + mCompCoord[18] * tmp12_ + mCompCoord[19] * tmp13_ + mCompCoord[20] * tmp14_ + mCompCoord[21] * tmp15_ + mCompCoord[27] * tmp16_ + mCompCoord[28] * tmp17_ + mCompCoord[29] * tmp18_ + mCompCoord[30] * tmp19_ + mCompCoord[31] * tmp20_ + mCompCoord[32] * tmp21_ + mCompCoord[39] * tmp22_ + mCompCoord[40] * tmp23_ + mCompCoord[41] * tmp24_ + mCompCoord[42] * tmp25_ + mCompCoord[43] * tmp26_ + mCompCoord[44] * tmp27_ + mCompCoord[45] * tmp28_ + mCompCoord[53] * tmp34_ + mCompCoord[54] * tmp35_ + mCompCoord[55] * tmp36_ + mCompCoord[56] * tmp37_ + mCompCoord[57] * tmp38_ + mCompCoord[58] * tmp39_ + mCompCoord[59] * tmp40_ + mCompCoord[60] * tmp41_) * mLocPolyn7_State_0_0) - mLocRegDistKnownVal_x;
  
    mVal[1] = (mLocPolyn7_State_2_0 + (((1 - tmp29_) * (tmp3_) + tmp30_ * (tmp1_) + tmp31_ * tmp32_) - tmp33_ * 2 * tmp5_ + mCompCoord[8] * tmp4_) * mLocPolyn7_State_0_0 + (mCompCoord[13] * tmp6_ + mCompCoord[14] * tmp8_ + mCompCoord[15] * tmp9_ + mCompCoord[16] * tmp10_ + mCompCoord[22] * tmp11_ + mCompCoord[23] * tmp12_ + mCompCoord[24] * tmp13_ + mCompCoord[25] * tmp14_ + mCompCoord[26] * tmp15_ + mCompCoord[33] * tmp16_ + mCompCoord[34] * tmp17_ + mCompCoord[35] * tmp18_ + mCompCoord[36] * tmp19_ + mCompCoord[37] * tmp20_ + mCompCoord[38] * tmp21_ + mCompCoord[46] * tmp22_ + mCompCoord[47] * tmp23_ + mCompCoord[48] * tmp24_ + mCompCoord[49] * tmp25_ + mCompCoord[50] * tmp26_ + mCompCoord[51] * tmp27_ + mCompCoord[52] * tmp28_ + mCompCoord[61] * tmp34_ + mCompCoord[62] * tmp35_ + mCompCoord[63] * tmp36_ + mCompCoord[64] * tmp37_ + mCompCoord[65] * tmp38_ + mCompCoord[66] * tmp39_ + mCompCoord[67] * tmp40_ + mCompCoord[68] * tmp41_) * mLocPolyn7_State_0_0) - mLocRegDistKnownVal_y;
  
  }
  
  
  void cREgDistVal_Polyn7::ComputeValDeriv()
  {
     double tmp0_ = mLocRegDistValP1_x - mLocPolyn7_State_1_0;
     double tmp1_ = (tmp0_) / mLocPolyn7_State_0_0;
     double tmp2_ = mLocRegDistValP1_y - mLocPolyn7_State_2_0;
     double tmp3_ = (tmp2_) / mLocPolyn7_State_0_0;
     double tmp4_ = (tmp1_) * (tmp1_);
     double tmp5_ = (tmp3_) * (tmp3_);
     double tmp6_ = tmp4_ * (tmp1_);
     double tmp7_ = (tmp3_) * (tmp1_);
     double tmp8_ = tmp7_ * (tmp1_);
     double tmp9_ = tmp5_ * (tmp1_);
     double tmp10_ = (tmp3_) * tmp5_;
     double tmp11_ = tmp6_ * (tmp1_);
     double tmp12_ = tmp8_ * (tmp1_);
     double tmp13_ = tmp9_ * (tmp1_);
     double tmp14_ = tmp10_ * (tmp1_);
     double tmp15_ = (tmp3_) * tmp10_;
     double tmp16_ = tmp11_ * (tmp1_);
     double tmp17_ = tmp12_ * (tmp1_);
     double tmp18_ = tmp13_ * (tmp1_);
     double tmp19_ = tmp14_ * (tmp1_);
     double tmp20_ = tmp15_ * (tmp1_);
     double tmp21_ = (tmp3_) * tmp15_;
     double tmp22_ = tmp16_ * (tmp1_);
     double tmp23_ = tmp17_ * (tmp1_);
     double tmp24_ = tmp18_ * (tmp1_);
     double tmp25_ = tmp19_ * (tmp1_);
     double tmp26_ = tmp20_ * (tmp1_);
     double tmp27_ = tmp21_ * (tmp1_);
     double tmp28_ = (tmp3_) * tmp21_;
     double tmp29_ = (tmp1_) * (tmp3_);
     double tmp30_ = tmp22_ * (tmp1_);
     double tmp31_ = tmp23_ * (tmp1_);
     double tmp32_ = tmp24_ * (tmp1_);
     double tmp33_ = tmp25_ * (tmp1_);
     double tmp34_ = tmp26_ * (tmp1_);
     double tmp35_ = tmp27_ * (tmp1_);
     double tmp36_ = tmp28_ * (tmp1_);
     double tmp37_ = (tmp3_) * tmp28_;
     double tmp38_ = mCompCoord[3];
     double tmp39_ = mCompCoord[4];
     double tmp40_ = mCompCoord[5];
     double tmp41_ = mCompCoord[6];
     double tmp42_ = (tmp1_) * mLocPolyn7_State_0_0;
     double tmp43_ = tmp29_ * mLocPolyn7_State_0_0;
     double tmp44_ = tmp6_ * mLocPolyn7_State_0_0;
     double tmp45_ = tmp8_ * mLocPolyn7_State_0_0;
     double tmp46_ = tmp9_ * mLocPolyn7_State_0_0;
     double tmp47_ = tmp10_ * mLocPolyn7_State_0_0;
     double tmp48_ = tmp11_ * mLocPolyn7_State_0_0;
     double tmp49_ = tmp12_ * mLocPolyn7_State_0_0;
     double tmp50_ = tmp13_ * mLocPolyn7_State_0_0;
     double tmp51_ = tmp14_ * mLocPolyn7_State_0_0;
     double tmp52_ = tmp15_ * mLocPolyn7_State_0_0;
     double tmp53_ = tmp16_ * mLocPolyn7_State_0_0;
     double tmp54_ = tmp17_ * mLocPolyn7_State_0_0;
     double tmp55_ = tmp18_ * mLocPolyn7_State_0_0;
     double tmp56_ = tmp19_ * mLocPolyn7_State_0_0;
     double tmp57_ = tmp20_ * mLocPolyn7_State_0_0;
     double tmp58_ = tmp21_ * mLocPolyn7_State_0_0;
     double tmp59_ = tmp22_ * mLocPolyn7_State_0_0;
     double tmp60_ = tmp23_ * mLocPolyn7_State_0_0;
     double tmp61_ = tmp24_ * mLocPolyn7_State_0_0;
     double tmp62_ = tmp25_ * mLocPolyn7_State_0_0;
     double tmp63_ = tmp26_ * mLocPolyn7_State_0_0;
     double tmp64_ = tmp27_ * mLocPolyn7_State_0_0;
     double tmp65_ = tmp28_ * mLocPolyn7_State_0_0;
     double tmp66_ = tmp30_ * mLocPolyn7_State_0_0;
     double tmp67_ = tmp31_ * mLocPolyn7_State_0_0;
     double tmp68_ = tmp32_ * mLocPolyn7_State_0_0;
     double tmp69_ = tmp33_ * mLocPolyn7_State_0_0;
     double tmp70_ = tmp34_ * mLocPolyn7_State_0_0;
     double tmp71_ = tmp35_ * mLocPolyn7_State_0_0;
     double tmp72_ = tmp36_ * mLocPolyn7_State_0_0;
     double tmp73_ = tmp37_ * mLocPolyn7_State_0_0;
  
    mVal[0] = (mLocPolyn7_State_1_0 + (((1 + tmp38_) * (tmp1_) + tmp39_ * (tmp3_)) - tmp40_ * 2 * tmp4_ + tmp41_ * tmp29_ + mCompCoord[7] * tmp5_) * mLocPolyn7_State_0_0 + (mCompCoord[9] * tmp6_ + mCompCoord[10] * tmp8_ + mCompCoord[11] * tmp9_ + mCompCoord[12] * tmp10_ + mCompCoord[17] * tmp11_ + mCompCoord[18] * tmp12_ + mCompCoord[19] * tmp13_ + mCompCoord[20] * tmp14_ + mCompCoord[21] * tmp15_ + mCompCoord[27] * tmp16_ + mCompCoord[28] * tmp17_ + mCompCoord[29] * tmp18_ + mCompCoord[30] * tmp19_ + mCompCoord[31] * tmp20_ + mCompCoord[32] * tmp21_ + mCompCoord[39] * tmp22_ + mCompCoord[40] * tmp23_ + mCompCoord[41] * tmp24_ + mCompCoord[42] * tmp25_ + mCompCoord[43] * tmp26_ + mCompCoord[44] * tmp27_ + mCompCoord[45] * tmp28_ + mCompCoord[53] * tmp30_ + mCompCoord[54] * tmp31_ + mCompCoord[55] * tmp32_ + mCompCoord[56] * tmp33_ + mCompCoord[57] * tmp34_ + mCompCoord[58] * tmp35_ + mCompCoord[59] * tmp36_ + mCompCoord[60] * tmp37_) * mLocPolyn7_State_0_0) - mLocRegDistKnownVal_x;
  
    mCompDer[0][0] = 0;
    mCompDer[0][1] = 0;
    mCompDer[0][2] = 0;
    mCompDer[0][3] = tmp42_;
    mCompDer[0][4] = (tmp3_) * mLocPolyn7_State_0_0;
    mCompDer[0][5] = -(2 * tmp4_) * mLocPolyn7_State_0_0;
    mCompDer[0][6] = tmp43_;
    mCompDer[0][7] = tmp5_ * mLocPolyn7_State_0_0;
    mCompDer[0][8] = 0;
    mCompDer[0][9] = tmp44_;
    mCompDer[0][10] = tmp45_;
    mCompDer[0][11] = tmp46_;
    mCompDer[0][12] = tmp47_;
    mCompDer[0][13] = 0;
    mCompDer[0][14] = 0;
    mCompDer[0][15] = 0;
    mCompDer[0][16] = 0;
    mCompDer[0][17] = tmp48_;
    mCompDer[0][18] = tmp49_;
    mCompDer[0][19] = tmp50_;
    mCompDer[0][20] = tmp51_;
    mCompDer[0][21] = tmp52_;
    mCompDer[0][22] = 0;
    mCompDer[0][23] = 0;
    mCompDer[0][24] = 0;
    mCompDer[0][25] = 0;
    mCompDer[0][26] = 0;
    mCompDer[0][27] = tmp53_;
    mCompDer[0][28] = tmp54_;
    mCompDer[0][29] = tmp55_;
    mCompDer[0][30] = tmp56_;
    mCompDer[0][31] = tmp57_;
    mCompDer[0][32] = tmp58_;
    mCompDer[0][33] = 0;
    mCompDer[0][34] = 0;
    mCompDer[0][35] = 0;
    mCompDer[0][36] = 0;
    mCompDer[0][37] = 0;
    mCompDer[0][38] = 0;
    mCompDer[0][39] = tmp59_;
    mCompDer[0][40] = tmp60_;
    mCompDer[0][41] = tmp61_;
    mCompDer[0][42] = tmp62_;
    mCompDer[0][43] = tmp63_;
    mCompDer[0][44] = tmp64_;
    mCompDer[0][45] = tmp65_;
    mCompDer[0][46] = 0;
    mCompDer[0][47] = 0;
    mCompDer[0][48] = 0;
    mCompDer[0][49] = 0;
    mCompDer[0][50] = 0;
    mCompDer[0][51] = 0;
    mCompDer[0][52] = 0;
    mCompDer[0][53] = tmp66_;
    mCompDer[0][54] = tmp67_;
    mCompDer[0][55] = tmp68_;
    mCompDer[0][56] = tmp69_;
    mCompDer[0][57] = tmp70_;
    mCompDer[0][58] = tmp71_;
    mCompDer[0][59] = tmp72_;
    mCompDer[0][60] = tmp73_;
    mCompDer[0][61] = 0;
    mCompDer[0][62] = 0;
    mCompDer[0][63] = 0;
    mCompDer[0][64] = 0;
    mCompDer[0][65] = 0;
    mCompDer[0][66] = 0;
    mCompDer[0][67] = 0;
    mCompDer[0][68] = 0;
    mVal[1] = (mLocPolyn7_State_2_0 + (((1 - tmp38_) * (tmp3_) + tmp39_ * (tmp1_) + tmp40_ * tmp29_) - tmp41_ * 2 * tmp5_ + mCompCoord[8] * tmp4_) * mLocPolyn7_State_0_0 + (mCompCoord[13] * tmp6_ + mCompCoord[14] * tmp8_ + mCompCoord[15] * tmp9_ + mCompCoord[16] * tmp10_ + mCompCoord[22] * tmp11_ + mCompCoord[23] * tmp12_ + mCompCoord[24] * tmp13_ + mCompCoord[25] * tmp14_ + mCompCoord[26] * tmp15_ + mCompCoord[33] * tmp16_ + mCompCoord[34] * tmp17_ + mCompCoord[35] * tmp18_ + mCompCoord[36] * tmp19_ + mCompCoord[37] * tmp20_ + mCompCoord[38] * tmp21_ + mCompCoord[46] * tmp22_ + mCompCoord[47] * tmp23_ + mCompCoord[48] * tmp24_ + mCompCoord[49] * tmp25_ + mCompCoord[50] * tmp26_ + mCompCoord[51] * tmp27_ + mCompCoord[52] * tmp28_ + mCompCoord[61] * tmp30_ + mCompCoord[62] * tmp31_ + mCompCoord[63] * tmp32_ + mCompCoord[64] * tmp33_ + mCompCoord[65] * tmp34_ + mCompCoord[66] * tmp35_ + mCompCoord[67] * tmp36_ + mCompCoord[68] * tmp37_) * mLocPolyn7_State_0_0) - mLocRegDistKnownVal_y;
  
    mCompDer[1][0] = 0;
    mCompDer[1][1] = 0;
    mCompDer[1][2] = 0;
    mCompDer[1][3] = -(1) * (tmp3_) * mLocPolyn7_State_0_0;
    mCompDer[1][4] = tmp42_;
    mCompDer[1][5] = tmp43_;
    mCompDer[1][6] = -(2 * tmp5_) * mLocPolyn7_State_0_0;
    mCompDer[1][7] = 0;
    mCompDer[1][8] = tmp4_ * mLocPolyn7_State_0_0;
    mCompDer[1][9] = 0;
    mCompDer[1][10] = 0;
    mCompDer[1][11] = 0;
    mCompDer[1][12] = 0;
    mCompDer[1][13] = tmp44_;
    mCompDer[1][14] = tmp45_;
    mCompDer[1][15] = tmp46_;
    mCompDer[1][16] = tmp47_;
    mCompDer[1][17] = 0;
    mCompDer[1][18] = 0;
    mCompDer[1][19] = 0;
    mCompDer[1][20] = 0;
    mCompDer[1][21] = 0;
    mCompDer[1][22] = tmp48_;
    mCompDer[1][23] = tmp49_;
    mCompDer[1][24] = tmp50_;
    mCompDer[1][25] = tmp51_;
    mCompDer[1][26] = tmp52_;
    mCompDer[1][27] = 0;
    mCompDer[1][28] = 0;
    mCompDer[1][29] = 0;
    mCompDer[1][30] = 0;
    mCompDer[1][31] = 0;
    mCompDer[1][32] = 0;
    mCompDer[1][33] = tmp53_;
    mCompDer[1][34] = tmp54_;
    mCompDer[1][35] = tmp55_;
    mCompDer[1][36] = tmp56_;
    mCompDer[1][37] = tmp57_;
    mCompDer[1][38] = tmp58_;
    mCompDer[1][39] = 0;
    mCompDer[1][40] = 0;
    mCompDer[1][41] = 0;
    mCompDer[1][42] = 0;
    mCompDer[1][43] = 0;
    mCompDer[1][44] = 0;
    mCompDer[1][45] = 0;
    mCompDer[1][46] = tmp59_;
    mCompDer[1][47] = tmp60_;
    mCompDer[1][48] = tmp61_;
    mCompDer[1][49] = tmp62_;
    mCompDer[1][50] = tmp63_;
    mCompDer[1][51] = tmp64_;
    mCompDer[1][52] = tmp65_;
    mCompDer[1][53] = 0;
    mCompDer[1][54] = 0;
    mCompDer[1][55] = 0;
    mCompDer[1][56] = 0;
    mCompDer[1][57] = 0;
    mCompDer[1][58] = 0;
    mCompDer[1][59] = 0;
    mCompDer[1][60] = 0;
    mCompDer[1][61] = tmp66_;
    mCompDer[1][62] = tmp67_;
    mCompDer[1][63] = tmp68_;
    mCompDer[1][64] = tmp69_;
    mCompDer[1][65] = tmp70_;
    mCompDer[1][66] = tmp71_;
    mCompDer[1][67] = tmp72_;
    mCompDer[1][68] = tmp73_;
  }
  
  
  void cREgDistVal_Polyn7::ComputeValDerivHessian()
  {
    ELISE_ASSERT(false,"Foncteur cREgDistVal_Polyn7 Has no Der Sec");
  }
  
  void cREgDistVal_Polyn7::SetPolyn7_State_0_0(double aVal){ mLocPolyn7_State_0_0 = aVal;}
  void cREgDistVal_Polyn7::SetPolyn7_State_1_0(double aVal){ mLocPolyn7_State_1_0 = aVal;}
  void cREgDistVal_Polyn7::SetPolyn7_State_2_0(double aVal){ mLocPolyn7_State_2_0 = aVal;}
  void cREgDistVal_Polyn7::SetRegDistKnownVal_x(double aVal){ mLocRegDistKnownVal_x = aVal;}
  void cREgDistVal_Polyn7::SetRegDistKnownVal_y(double aVal){ mLocRegDistKnownVal_y = aVal;}
  void cREgDistVal_Polyn7::SetRegDistValP1_x(double aVal){ mLocRegDistValP1_x = aVal;}
  void cREgDistVal_Polyn7::SetRegDistValP1_y(double aVal){ mLocRegDistValP1_y = aVal;}
  
  
  
  double * cREgDistVal_Polyn7::AdrVarLocFromString(const std::string & aName)
  {
     if (aName == "Polyn7_State_0_0") return & mLocPolyn7_State_0_0;
     if (aName == "Polyn7_State_1_0") return & mLocPolyn7_State_1_0;
     if (aName == "Polyn7_State_2_0") return & mLocPolyn7_State_2_0;
     if (aName == "RegDistKnownVal_x") return & mLocRegDistKnownVal_x;
     if (aName == "RegDistKnownVal_y") return & mLocRegDistKnownVal_y;
     if (aName == "RegDistValP1_x") return & mLocRegDistValP1_x;
     if (aName == "RegDistValP1_y") return & mLocRegDistValP1_y;
     return 0;
  }
  
  
  cElCompiledFonc::cAutoAddEntry cREgDistVal_Polyn7::mTheAuto("cREgDistVal_Polyn7",cREgDistVal_Polyn7::Alloc);
  
  
  cElCompiledFonc *  cREgDistVal_Polyn7::Alloc()
  {  return new cREgDistVal_Polyn7();
  }
  
  
  