text: // File Automatically generated by eLiSe
  #include "StdAfx.h"
  #include "cREgDistVal_DRad5.h"
  
  
  cREgDistVal_DRad5::cREgDistVal_DRad5():
      cElCompiledFonc(2)
  {
     AddIntRef (cIncIntervale("Intr",0,10));
     Close(false);
  }
  
  
  
  void cREgDistVal_DRad5::ComputeVal()
  {
     double tmp0_ = mCompCoord[3];
     double tmp1_ = mLocRegDistValP1_x - tmp0_;
     double tmp2_ = mCompCoord[4];
     double tmp3_ = mLocRegDistValP1_y - tmp2_;
     double tmp4_ = (tmp1_) * (tmp1_);
     double tmp5_ = (tmp3_) * (tmp3_);
     double tmp6_ = tmp4_ + tmp5_;
     double tmp7_ = (tmp6_) * (tmp6_);
     double tmp8_ = tmp7_ * (tmp6_);
     double tmp9_ = tmp8_ * (tmp6_);
     double tmp10_ = mCompCoord[5];
     double tmp11_ = (tmp6_) * tmp10_;
     double tmp12_ = 1 + tmp11_;
     double tmp13_ = mCompCoord[6];
     double tmp14_ = tmp7_ * tmp13_;
     double tmp15_ = tmp12_ + tmp14_;
     double tmp16_ = mCompCoord[7];
     double tmp17_ = tmp8_ * tmp16_;
     double tmp18_ = tmp15_ + tmp17_;
     double tmp19_ = mCompCoord[8];
     double tmp20_ = tmp9_ * tmp19_;
     double tmp21_ = tmp18_ + tmp20_;
     double tmp22_ = tmp9_ * (tmp6_);
     double tmp23_ = mCompCoord[9];
     double tmp24_ = tmp22_ * tmp23_;
     double tmp25_ = tmp21_ + tmp24_;
  
    mVal[0] = (tmp0_ + (tmp1_) * (tmp25_)) - mLocRegDistKnownVal_x;
  
    mVal[1] = (tmp2_ + (tmp3_) * (tmp25_)) - mLocRegDistKnownVal_y;
  
  }
  
  
  void cREgDistVal_DRad5::ComputeValDeriv()
  {
     double tmp0_ = mCompCoord[3];
     double tmp1_ = mLocRegDistValP1_x - tmp0_;
     double tmp2_ = mCompCoord[4];
     double tmp3_ = mLocRegDistValP1_y - tmp2_;
     double tmp4_ = (tmp1_) * (tmp1_);
     double tmp5_ = (tmp3_) * (tmp3_);
     double tmp6_ = tmp4_ + tmp5_;
     double tmp7_ = (tmp6_) * (tmp6_);
     double tmp8_ = tmp7_ * (tmp6_);
     double tmp9_ = tmp8_ * (tmp6_);
     double tmp10_ = mCompCoord[5];
     double tmp11_ = (tmp6_) * tmp10_;
     double tmp12_ = 1 + tmp11_;
     double tmp13_ = mCompCoord[6];
     double tmp14_ = tmp7_ * tmp13_;
     double tmp15_ = tmp12_ + tmp14_;
     double tmp16_ = mCompCoord[7];
     double tmp17_ = tmp8_ * tmp16_;
     double tmp18_ = tmp15_ + tmp17_;
     double tmp19_ = mCompCoord[8];
     double tmp20_ = tmp9_ * tmp19_;
     double tmp21_ = tmp18_ + tmp20_;
     double tmp22_ = tmp9_ * (tmp6_);
     double tmp23_ = mCompCoord[9];
     double tmp24_ = tmp22_ * tmp23_;
     double tmp25_ = tmp21_ + tmp24_;
     double tmp26_ = -(1);
     double tmp27_ = tmp26_ * (tmp1_);
     double tmp28_ = tmp27_ + tmp27_;
     double tmp29_ = (tmp28_) * (tmp6_);
     double tmp30_ = tmp29_ + tmp29_;
     double tmp31_ = (tmp30_) * (tmp6_);
     double tmp32_ = (tmp28_) * tmp7_;
     double tmp33_ = tmp31_ + tmp32_;
     double tmp34_ = (tmp33_) * (tmp6_);
     double tmp35_ = (tmp28_) * tmp8_;
     double tmp36_ = tmp34_ + tmp35_;
     double tmp37_ = tmp26_ * (tmp3_);
     double tmp38_ = tmp37_ + tmp37_;
     double tmp39_ = (tmp38_) * (tmp6_);
     double tmp40_ = tmp39_ + tmp39_;
     double tmp41_ = (tmp40_) * (tmp6_);
     double tmp42_ = (tmp38_) * tmp7_;
     double tmp43_ = tmp41_ + tmp42_;
     double tmp44_ = (tmp43_) * (tmp6_);
     double tmp45_ = (tmp38_) * tmp8_;
     double tmp46_ = tmp44_ + tmp45_;
     double tmp47_ = (tmp28_) * tmp10_;
     double tmp48_ = (tmp30_) * tmp13_;
     double tmp49_ = tmp47_ + tmp48_;
     double tmp50_ = (tmp33_) * tmp16_;
     double tmp51_ = tmp49_ + tmp50_;
     double tmp52_ = (tmp36_) * tmp19_;
     double tmp53_ = tmp51_ + tmp52_;
     double tmp54_ = (tmp36_) * (tmp6_);
     double tmp55_ = (tmp28_) * tmp9_;
     double tmp56_ = tmp54_ + tmp55_;
     double tmp57_ = (tmp56_) * tmp23_;
     double tmp58_ = tmp53_ + tmp57_;
     double tmp59_ = tmp26_ * (tmp25_);
     double tmp60_ = (tmp38_) * tmp10_;
     double tmp61_ = (tmp40_) * tmp13_;
     double tmp62_ = tmp60_ + tmp61_;
     double tmp63_ = (tmp43_) * tmp16_;
     double tmp64_ = tmp62_ + tmp63_;
     double tmp65_ = (tmp46_) * tmp19_;
     double tmp66_ = tmp64_ + tmp65_;
     double tmp67_ = (tmp46_) * (tmp6_);
     double tmp68_ = (tmp38_) * tmp9_;
     double tmp69_ = tmp67_ + tmp68_;
     double tmp70_ = (tmp69_) * tmp23_;
     double tmp71_ = tmp66_ + tmp70_;
  
    mVal[0] = (tmp0_ + (tmp1_) * (tmp25_)) - mLocRegDistKnownVal_x;
  
    mCompDer[0][0] = 0;
    mCompDer[0][1] = 0;
    mCompDer[0][2] = 0;
    mCompDer[0][3] = 1 + tmp59_ + (tmp58_) * (tmp1_);
    mCompDer[0][4] = (tmp71_) * (tmp1_);
    mCompDer[0][5] = (tmp6_) * (tmp1_);
    mCompDer[0][6] = tmp7_ * (tmp1_);
    mCompDer[0][7] = tmp8_ * (tmp1_);
    mCompDer[0][8] = tmp9_ * (tmp1_);
    mCompDer[0][9] = tmp22_ * (tmp1_);
    mVal[1] = (tmp2_ + (tmp3_) * (tmp25_)) - mLocRegDistKnownVal_y;
  
    mCompDer[1][0] = 0;
    mCompDer[1][1] = 0;
    mCompDer[1][2] = 0;
    mCompDer[1][3] = (tmp58_) * (tmp3_);
    mCompDer[1][4] = 1 + tmp59_ + (tmp71_) * (tmp3_);
    mCompDer[1][5] = (tmp6_) * (tmp3_);
    mCompDer[1][6] = tmp7_ * (tmp3_);
    mCompDer[1][7] = tmp8_ * (tmp3_);
    mCompDer[1][8] = tmp9_ * (tmp3_);
    mCompDer[1][9] = tmp22_ * (tmp3_);
  }
  
  
  void cREgDistVal_DRad5::ComputeValDerivHessian()
  {
    ELISE_ASSERT(false,"Foncteur cREgDistVal_DRad5 Has no Der Sec");
  }
  
  void cREgDistVal_DRad5::SetRegDistKnownVal_x(double aVal){ mLocRegDistKnownVal_x = aVal;}
  void cREgDistVal_DRad5::SetRegDistKnownVal_y(double aVal){ mLocRegDistKnownVal_y = aVal;}
  void cREgDistVal_DRad5::SetRegDistValP1_x(double aVal){ mLocRegDistValP1_x = aVal;}
  void cREgDistVal_DRad5::SetRegDistValP1_y(double aVal){ mLocRegDistValP1_y = aVal;}
  
  
  
  double * cREgDistVal_DRad5::AdrVarLocFromString(const std::string & aName)
  {
     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_DRad5::mTheAuto("cREgDistVal_DRad5",cREgDistVal_DRad5::Alloc);
  
  
  cElCompiledFonc *  cREgDistVal_DRad5::Alloc()
  {  return new cREgDistVal_DRad5();
  }
  
  
  