#include "general/all.h"
#include "private/all.h"
#include "cEqAppui_PTInc_C2MDPol3.h"

cEqAppui_PTInc_C2MDPol3::cEqAppui_PTInc_C2MDPol3():
    cElCompiledFonc(2)
{
   AddIntRef (cIncIntervale("Intr",0,20));
   AddIntRef (cIncIntervale("Orient",20,26));
   AddIntRef (cIncIntervale("Tmp_PTer",26,29));
   Close(false);
}

void cEqAppui_PTInc_C2MDPol3::ComputeVal()
{
   double tmp0_ = mCompCoord[20];
   double tmp1_ = mCompCoord[21];
   double tmp2_ = cos(tmp1_);
   double tmp3_ = sin(tmp0_);
   double tmp4_ = cos(tmp0_);
   double tmp5_ = sin(tmp1_);
   double tmp6_ = mCompCoord[22];
   double tmp7_ = mCompCoord[26];
   double tmp8_ = mCompCoord[23];
   double tmp9_ = tmp7_-tmp8_;
   double tmp10_ = sin(tmp6_);
   double tmp11_ = -(tmp10_);
   double tmp12_ = -(tmp5_);
   double tmp13_ = cos(tmp6_);
   double tmp14_ = mCompCoord[27];
   double tmp15_ = mCompCoord[24];
   double tmp16_ = tmp14_-tmp15_;
   double tmp17_ = mCompCoord[28];
   double tmp18_ = mCompCoord[25];
   double tmp19_ = tmp17_-tmp18_;
   double tmp20_ = ElSquare(mLocYIm);
   double tmp21_ = ElSquare(mLocXIm);
   double tmp22_ = -(tmp3_);
   double tmp23_ = tmp4_*tmp12_;
   double tmp24_ = tmp3_*tmp12_;
   double tmp25_ = tmp22_*tmp11_;
   double tmp26_ = tmp23_*tmp13_;
   double tmp27_ = tmp25_+tmp26_;
   double tmp28_ = (tmp27_)*(tmp9_);
   double tmp29_ = tmp4_*tmp11_;
   double tmp30_ = tmp24_*tmp13_;
   double tmp31_ = tmp29_+tmp30_;
   double tmp32_ = (tmp31_)*(tmp16_);
   double tmp33_ = tmp28_+tmp32_;
   double tmp34_ = tmp2_*tmp13_;
   double tmp35_ = tmp34_*(tmp19_);
   double tmp36_ = tmp33_+tmp35_;
   double tmp37_ = VCube(mLocYIm);
   double tmp38_ = VCube(mLocXIm);

  mVal[0] = (tmp4_*tmp2_*(tmp9_)+tmp3_*tmp2_*(tmp16_)+tmp5_*(tmp19_))/(tmp36_)-(mCompCoord[0]+mCompCoord[1]*mLocYIm+mCompCoord[2]*mLocXIm+mCompCoord[3]*tmp20_+mCompCoord[4]*mLocXIm*mLocYIm+mCompCoord[5]*tmp21_+mCompCoord[6]*tmp37_+mCompCoord[7]*mLocXIm*tmp20_+mCompCoord[8]*tmp21_*mLocYIm+mCompCoord[9]*tmp38_);

  mVal[1] = ((tmp22_*tmp13_+tmp23_*tmp10_)*(tmp9_)+(tmp4_*tmp13_+tmp24_*tmp10_)*(tmp16_)+tmp2_*tmp10_*(tmp19_))/(tmp36_)-(mCompCoord[10]+mCompCoord[11]*mLocYIm+mCompCoord[12]*mLocXIm+mCompCoord[13]*tmp20_+mCompCoord[14]*mLocXIm*mLocYIm+mCompCoord[15]*tmp21_+mCompCoord[16]*tmp37_+mCompCoord[17]*mLocXIm*tmp20_+mCompCoord[18]*tmp21_*mLocYIm+mCompCoord[19]*tmp38_);

}

void cEqAppui_PTInc_C2MDPol3::ComputeValDeriv()
{
   double tmp0_ = mCompCoord[20];
   double tmp1_ = mCompCoord[21];
   double tmp2_ = cos(tmp1_);
   double tmp3_ = sin(tmp0_);
   double tmp4_ = cos(tmp0_);
   double tmp5_ = sin(tmp1_);
   double tmp6_ = mCompCoord[22];
   double tmp7_ = mCompCoord[26];
   double tmp8_ = mCompCoord[23];
   double tmp9_ = tmp7_-tmp8_;
   double tmp10_ = sin(tmp6_);
   double tmp11_ = -(tmp10_);
   double tmp12_ = -(tmp5_);
   double tmp13_ = cos(tmp6_);
   double tmp14_ = mCompCoord[27];
   double tmp15_ = mCompCoord[24];
   double tmp16_ = tmp14_-tmp15_;
   double tmp17_ = mCompCoord[28];
   double tmp18_ = mCompCoord[25];
   double tmp19_ = tmp17_-tmp18_;
   double tmp20_ = ElSquare(mLocYIm);
   double tmp21_ = ElSquare(mLocXIm);
   double tmp22_ = VCube(mLocYIm);
   double tmp23_ = VCube(mLocXIm);
   double tmp24_ = -(1);
   double tmp25_ = tmp4_*tmp2_;
   double tmp26_ = -(tmp3_);
   double tmp27_ = tmp26_*tmp11_;
   double tmp28_ = tmp4_*tmp12_;
   double tmp29_ = tmp28_*tmp13_;
   double tmp30_ = tmp27_+tmp29_;
   double tmp31_ = (tmp30_)*(tmp9_);
   double tmp32_ = tmp4_*tmp11_;
   double tmp33_ = tmp3_*tmp12_;
   double tmp34_ = tmp33_*tmp13_;
   double tmp35_ = tmp32_+tmp34_;
   double tmp36_ = (tmp35_)*(tmp16_);
   double tmp37_ = tmp31_+tmp36_;
   double tmp38_ = tmp2_*tmp13_;
   double tmp39_ = tmp38_*(tmp19_);
   double tmp40_ = tmp37_+tmp39_;
   double tmp41_ = tmp25_*(tmp9_);
   double tmp42_ = tmp3_*tmp2_;
   double tmp43_ = tmp42_*(tmp16_);
   double tmp44_ = tmp41_+tmp43_;
   double tmp45_ = tmp5_*(tmp19_);
   double tmp46_ = tmp44_+tmp45_;
   double tmp47_ = tmp24_*tmp3_;
   double tmp48_ = tmp24_*tmp5_;
   double tmp49_ = -(tmp2_);
   double tmp50_ = ElSquare(tmp40_);
   double tmp51_ = -(tmp13_);
   double tmp52_ = tmp24_*tmp10_;
   double tmp53_ = -(mLocYIm);
   double tmp54_ = -(mLocXIm);
   double tmp55_ = -(tmp20_);
   double tmp56_ = mLocXIm*mLocYIm;
   double tmp57_ = -(tmp56_);
   double tmp58_ = -(tmp21_);
   double tmp59_ = -(tmp22_);
   double tmp60_ = mLocXIm*tmp20_;
   double tmp61_ = -(tmp60_);
   double tmp62_ = tmp21_*mLocYIm;
   double tmp63_ = -(tmp62_);
   double tmp64_ = -(tmp23_);
   double tmp65_ = -(tmp4_);
   double tmp66_ = tmp47_*tmp12_;
   double tmp67_ = tmp28_*tmp10_;
   double tmp68_ = tmp26_*tmp13_;
   double tmp69_ = tmp68_+tmp67_;
   double tmp70_ = (tmp69_)*(tmp9_);
   double tmp71_ = tmp4_*tmp13_;
   double tmp72_ = tmp33_*tmp10_;
   double tmp73_ = tmp71_+tmp72_;
   double tmp74_ = (tmp73_)*(tmp16_);
   double tmp75_ = tmp70_+tmp74_;
   double tmp76_ = tmp2_*tmp10_;
   double tmp77_ = tmp76_*(tmp19_);
   double tmp78_ = tmp75_+tmp77_;
   double tmp79_ = tmp65_*tmp11_;
   double tmp80_ = tmp66_*tmp13_;
   double tmp81_ = tmp79_+tmp80_;
   double tmp82_ = (tmp81_)*(tmp9_);
   double tmp83_ = tmp47_*tmp11_;
   double tmp84_ = tmp83_+tmp29_;
   double tmp85_ = (tmp84_)*(tmp16_);
   double tmp86_ = tmp82_+tmp85_;
   double tmp87_ = tmp49_*tmp4_;
   double tmp88_ = tmp49_*tmp3_;
   double tmp89_ = tmp87_*tmp13_;
   double tmp90_ = tmp89_*(tmp9_);
   double tmp91_ = tmp88_*tmp13_;
   double tmp92_ = tmp91_*(tmp16_);
   double tmp93_ = tmp90_+tmp92_;
   double tmp94_ = tmp48_*tmp13_;
   double tmp95_ = tmp94_*(tmp19_);
   double tmp96_ = tmp93_+tmp95_;
   double tmp97_ = tmp51_*tmp26_;
   double tmp98_ = tmp52_*tmp28_;
   double tmp99_ = tmp97_+tmp98_;
   double tmp100_ = (tmp99_)*(tmp9_);
   double tmp101_ = tmp51_*tmp4_;
   double tmp102_ = tmp52_*tmp33_;
   double tmp103_ = tmp101_+tmp102_;
   double tmp104_ = (tmp103_)*(tmp16_);
   double tmp105_ = tmp100_+tmp104_;
   double tmp106_ = tmp52_*tmp2_;
   double tmp107_ = tmp106_*(tmp19_);
   double tmp108_ = tmp105_+tmp107_;
   double tmp109_ = tmp24_*(tmp30_);
   double tmp110_ = tmp24_*(tmp35_);
   double tmp111_ = tmp24_*tmp38_;

  mVal[0] = (tmp46_)/(tmp40_)-(mCompCoord[0]+mCompCoord[1]*mLocYIm+mCompCoord[2]*mLocXIm+mCompCoord[3]*tmp20_+mCompCoord[4]*mLocXIm*mLocYIm+mCompCoord[5]*tmp21_+mCompCoord[6]*tmp22_+mCompCoord[7]*mLocXIm*tmp20_+mCompCoord[8]*tmp21_*mLocYIm+mCompCoord[9]*tmp23_);

  mCompDer[0][0] = tmp24_;
  mCompDer[0][1] = tmp53_;
  mCompDer[0][2] = tmp54_;
  mCompDer[0][3] = tmp55_;
  mCompDer[0][4] = tmp57_;
  mCompDer[0][5] = tmp58_;
  mCompDer[0][6] = tmp59_;
  mCompDer[0][7] = tmp61_;
  mCompDer[0][8] = tmp63_;
  mCompDer[0][9] = tmp64_;
  mCompDer[0][10] = 0;
  mCompDer[0][11] = 0;
  mCompDer[0][12] = 0;
  mCompDer[0][13] = 0;
  mCompDer[0][14] = 0;
  mCompDer[0][15] = 0;
  mCompDer[0][16] = 0;
  mCompDer[0][17] = 0;
  mCompDer[0][18] = 0;
  mCompDer[0][19] = 0;
  mCompDer[0][20] = ((tmp47_*tmp2_*(tmp9_)+tmp25_*(tmp16_))*(tmp40_)-(tmp46_)*(tmp86_))/tmp50_;
  mCompDer[0][21] = ((tmp48_*tmp4_*(tmp9_)+tmp48_*tmp3_*(tmp16_)+tmp2_*(tmp19_))*(tmp40_)-(tmp46_)*(tmp96_))/tmp50_;
  mCompDer[0][22] = -((tmp46_)*(tmp108_))/tmp50_;
  mCompDer[0][23] = (tmp24_*tmp25_*(tmp40_)-(tmp46_)*tmp109_)/tmp50_;
  mCompDer[0][24] = (tmp24_*tmp42_*(tmp40_)-(tmp46_)*tmp110_)/tmp50_;
  mCompDer[0][25] = (tmp48_*(tmp40_)-(tmp46_)*tmp111_)/tmp50_;
  mCompDer[0][26] = (tmp25_*(tmp40_)-(tmp46_)*(tmp30_))/tmp50_;
  mCompDer[0][27] = (tmp42_*(tmp40_)-(tmp46_)*(tmp35_))/tmp50_;
  mCompDer[0][28] = (tmp5_*(tmp40_)-(tmp46_)*tmp38_)/tmp50_;
  mVal[1] = (tmp78_)/(tmp40_)-(mCompCoord[10]+mCompCoord[11]*mLocYIm+mCompCoord[12]*mLocXIm+mCompCoord[13]*tmp20_+mCompCoord[14]*mLocXIm*mLocYIm+mCompCoord[15]*tmp21_+mCompCoord[16]*tmp22_+mCompCoord[17]*mLocXIm*tmp20_+mCompCoord[18]*tmp21_*mLocYIm+mCompCoord[19]*tmp23_);

  mCompDer[1][0] = 0;
  mCompDer[1][1] = 0;
  mCompDer[1][2] = 0;
  mCompDer[1][3] = 0;
  mCompDer[1][4] = 0;
  mCompDer[1][5] = 0;
  mCompDer[1][6] = 0;
  mCompDer[1][7] = 0;
  mCompDer[1][8] = 0;
  mCompDer[1][9] = 0;
  mCompDer[1][10] = tmp24_;
  mCompDer[1][11] = tmp53_;
  mCompDer[1][12] = tmp54_;
  mCompDer[1][13] = tmp55_;
  mCompDer[1][14] = tmp57_;
  mCompDer[1][15] = tmp58_;
  mCompDer[1][16] = tmp59_;
  mCompDer[1][17] = tmp61_;
  mCompDer[1][18] = tmp63_;
  mCompDer[1][19] = tmp64_;
  mCompDer[1][20] = (((tmp65_*tmp13_+tmp66_*tmp10_)*(tmp9_)+(tmp47_*tmp13_+tmp67_)*(tmp16_))*(tmp40_)-(tmp78_)*(tmp86_))/tmp50_;
  mCompDer[1][21] = ((tmp87_*tmp10_*(tmp9_)+tmp88_*tmp10_*(tmp16_)+tmp48_*tmp10_*(tmp19_))*(tmp40_)-(tmp78_)*(tmp96_))/tmp50_;
  mCompDer[1][22] = (((tmp52_*tmp26_+tmp13_*tmp28_)*(tmp9_)+(tmp52_*tmp4_+tmp13_*tmp33_)*(tmp16_)+tmp13_*tmp2_*(tmp19_))*(tmp40_)-(tmp78_)*(tmp108_))/tmp50_;
  mCompDer[1][23] = (tmp24_*(tmp69_)*(tmp40_)-(tmp78_)*tmp109_)/tmp50_;
  mCompDer[1][24] = (tmp24_*(tmp73_)*(tmp40_)-(tmp78_)*tmp110_)/tmp50_;
  mCompDer[1][25] = (tmp24_*tmp76_*(tmp40_)-(tmp78_)*tmp111_)/tmp50_;
  mCompDer[1][26] = ((tmp69_)*(tmp40_)-(tmp78_)*(tmp30_))/tmp50_;
  mCompDer[1][27] = ((tmp73_)*(tmp40_)-(tmp78_)*(tmp35_))/tmp50_;
  mCompDer[1][28] = (tmp76_*(tmp40_)-(tmp78_)*tmp38_)/tmp50_;
}

void cEqAppui_PTInc_C2MDPol3::ComputeValDerivHessian()
{
  ELISE_ASSERT(false,"Foncteur cEqAppui_PTInc_C2MDPol3 Has no Der Sec");
}

void cEqAppui_PTInc_C2MDPol3::SetXIm(double aVal){ mLocXIm = aVal;}
void cEqAppui_PTInc_C2MDPol3::SetYIm(double aVal){ mLocYIm = aVal;}

double * cEqAppui_PTInc_C2MDPol3::AdrVarLocFromString(const std::string & aName)
{
   if (aName == "XIm") return & mLocXIm;
   if (aName == "YIm") return & mLocYIm;
   return 0;
}

cElCompiledFonc::cAutoAddEntry cEqAppui_PTInc_C2MDPol3::mTheAuto("cEqAppui_PTInc_C2MDPol3",cEqAppui_PTInc_C2MDPol3::Alloc);

cElCompiledFonc *  cEqAppui_PTInc_C2MDPol3::Alloc()
{  return new cEqAppui_PTInc_C2MDPol3();
}
// File Automatically generated by eLiSe

#include "general/all.h"
#include "private/all.h"
#include "cEqAppui_PTInc_C2MDPol3.h"


cEqAppui_PTInc_C2MDPol3::cEqAppui_PTInc_C2MDPol3():
    cElCompiledFonc(2)
{
   AddIntRef (cIncIntervale("Intr",0,20));
   AddIntRef (cIncIntervale("Orient",20,26));
   AddIntRef (cIncIntervale("Tmp_PTer",26,29));
   Close(false);
}



void cEqAppui_PTInc_C2MDPol3::ComputeVal()
{
   double tmp0_ = mCompCoord[20];
   double tmp1_ = mCompCoord[21];
   double tmp2_ = cos(tmp1_);
   double tmp3_ = sin(tmp0_);
   double tmp4_ = cos(tmp0_);
   double tmp5_ = sin(tmp1_);
   double tmp6_ = mCompCoord[22];
   double tmp7_ = mCompCoord[26];
   double tmp8_ = mCompCoord[23];
   double tmp9_ = tmp7_-tmp8_;
   double tmp10_ = sin(tmp6_);
   double tmp11_ = -(tmp10_);
   double tmp12_ = -(tmp5_);
   double tmp13_ = cos(tmp6_);
   double tmp14_ = mCompCoord[27];
   double tmp15_ = mCompCoord[24];
   double tmp16_ = tmp14_-tmp15_;
   double tmp17_ = mCompCoord[28];
   double tmp18_ = mCompCoord[25];
   double tmp19_ = tmp17_-tmp18_;
   double tmp20_ = ElSquare(mLocYIm);
   double tmp21_ = ElSquare(mLocXIm);
   double tmp22_ = -(tmp3_);
   double tmp23_ = tmp4_*tmp12_;
   double tmp24_ = tmp3_*tmp12_;
   double tmp25_ = tmp22_*tmp11_;
   double tmp26_ = tmp23_*tmp13_;
   double tmp27_ = tmp25_+tmp26_;
   double tmp28_ = (tmp27_)*(tmp9_);
   double tmp29_ = tmp4_*tmp11_;
   double tmp30_ = tmp24_*tmp13_;
   double tmp31_ = tmp29_+tmp30_;
   double tmp32_ = (tmp31_)*(tmp16_);
   double tmp33_ = tmp28_+tmp32_;
   double tmp34_ = tmp2_*tmp13_;
   double tmp35_ = tmp34_*(tmp19_);
   double tmp36_ = tmp33_+tmp35_;
   double tmp37_ = VCube(mLocYIm);
   double tmp38_ = VCube(mLocXIm);

  mVal[0] = (tmp4_*tmp2_*(tmp9_)+tmp3_*tmp2_*(tmp16_)+tmp5_*(tmp19_))/(tmp36_)-(mCompCoord[0]+mCompCoord[1]*mLocYIm+mCompCoord[2]*mLocXIm+mCompCoord[3]*tmp20_+mCompCoord[4]*mLocXIm*mLocYIm+mCompCoord[5]*tmp21_+mCompCoord[6]*tmp37_+mCompCoord[7]*mLocXIm*tmp20_+mCompCoord[8]*tmp21_*mLocYIm+mCompCoord[9]*tmp38_);

  mVal[1] = ((tmp22_*tmp13_+tmp23_*tmp10_)*(tmp9_)+(tmp4_*tmp13_+tmp24_*tmp10_)*(tmp16_)+tmp2_*tmp10_*(tmp19_))/(tmp36_)-(mCompCoord[10]+mCompCoord[11]*mLocYIm+mCompCoord[12]*mLocXIm+mCompCoord[13]*tmp20_+mCompCoord[14]*mLocXIm*mLocYIm+mCompCoord[15]*tmp21_+mCompCoord[16]*tmp37_+mCompCoord[17]*mLocXIm*tmp20_+mCompCoord[18]*tmp21_*mLocYIm+mCompCoord[19]*tmp38_);

}


void cEqAppui_PTInc_C2MDPol3::ComputeValDeriv()
{
   double tmp0_ = mCompCoord[20];
   double tmp1_ = mCompCoord[21];
   double tmp2_ = cos(tmp1_);
   double tmp3_ = sin(tmp0_);
   double tmp4_ = cos(tmp0_);
   double tmp5_ = sin(tmp1_);
   double tmp6_ = mCompCoord[22];
   double tmp7_ = mCompCoord[26];
   double tmp8_ = mCompCoord[23];
   double tmp9_ = tmp7_-tmp8_;
   double tmp10_ = sin(tmp6_);
   double tmp11_ = -(tmp10_);
   double tmp12_ = -(tmp5_);
   double tmp13_ = cos(tmp6_);
   double tmp14_ = mCompCoord[27];
   double tmp15_ = mCompCoord[24];
   double tmp16_ = tmp14_-tmp15_;
   double tmp17_ = mCompCoord[28];
   double tmp18_ = mCompCoord[25];
   double tmp19_ = tmp17_-tmp18_;
   double tmp20_ = ElSquare(mLocYIm);
   double tmp21_ = ElSquare(mLocXIm);
   double tmp22_ = VCube(mLocYIm);
   double tmp23_ = VCube(mLocXIm);
   double tmp24_ = -(1);
   double tmp25_ = tmp4_*tmp2_;
   double tmp26_ = -(tmp3_);
   double tmp27_ = tmp26_*tmp11_;
   double tmp28_ = tmp4_*tmp12_;
   double tmp29_ = tmp28_*tmp13_;
   double tmp30_ = tmp27_+tmp29_;
   double tmp31_ = (tmp30_)*(tmp9_);
   double tmp32_ = tmp4_*tmp11_;
   double tmp33_ = tmp3_*tmp12_;
   double tmp34_ = tmp33_*tmp13_;
   double tmp35_ = tmp32_+tmp34_;
   double tmp36_ = (tmp35_)*(tmp16_);
   double tmp37_ = tmp31_+tmp36_;
   double tmp38_ = tmp2_*tmp13_;
   double tmp39_ = tmp38_*(tmp19_);
   double tmp40_ = tmp37_+tmp39_;
   double tmp41_ = tmp25_*(tmp9_);
   double tmp42_ = tmp3_*tmp2_;
   double tmp43_ = tmp42_*(tmp16_);
   double tmp44_ = tmp41_+tmp43_;
   double tmp45_ = tmp5_*(tmp19_);
   double tmp46_ = tmp44_+tmp45_;
   double tmp47_ = tmp24_*tmp3_;
   double tmp48_ = tmp24_*tmp5_;
   double tmp49_ = -(tmp2_);
   double tmp50_ = ElSquare(tmp40_);
   double tmp51_ = -(tmp13_);
   double tmp52_ = tmp24_*tmp10_;
   double tmp53_ = -(mLocYIm);
   double tmp54_ = -(mLocXIm);
   double tmp55_ = -(tmp20_);
   double tmp56_ = mLocXIm*mLocYIm;
   double tmp57_ = -(tmp56_);
   double tmp58_ = -(tmp21_);
   double tmp59_ = -(tmp22_);
   double tmp60_ = mLocXIm*tmp20_;
   double tmp61_ = -(tmp60_);
   double tmp62_ = tmp21_*mLocYIm;
   double tmp63_ = -(tmp62_);
   double tmp64_ = -(tmp23_);
   double tmp65_ = -(tmp4_);
   double tmp66_ = tmp47_*tmp12_;
   double tmp67_ = tmp28_*tmp10_;
   double tmp68_ = tmp26_*tmp13_;
   double tmp69_ = tmp68_+tmp67_;
   double tmp70_ = (tmp69_)*(tmp9_);
   double tmp71_ = tmp4_*tmp13_;
   double tmp72_ = tmp33_*tmp10_;
   double tmp73_ = tmp71_+tmp72_;
   double tmp74_ = (tmp73_)*(tmp16_);
   double tmp75_ = tmp70_+tmp74_;
   double tmp76_ = tmp2_*tmp10_;
   double tmp77_ = tmp76_*(tmp19_);
   double tmp78_ = tmp75_+tmp77_;
   double tmp79_ = tmp65_*tmp11_;
   double tmp80_ = tmp66_*tmp13_;
   double tmp81_ = tmp79_+tmp80_;
   double tmp82_ = (tmp81_)*(tmp9_);
   double tmp83_ = tmp47_*tmp11_;
   double tmp84_ = tmp83_+tmp29_;
   double tmp85_ = (tmp84_)*(tmp16_);
   double tmp86_ = tmp82_+tmp85_;
   double tmp87_ = tmp49_*tmp4_;
   double tmp88_ = tmp49_*tmp3_;
   double tmp89_ = tmp87_*tmp13_;
   double tmp90_ = tmp89_*(tmp9_);
   double tmp91_ = tmp88_*tmp13_;
   double tmp92_ = tmp91_*(tmp16_);
   double tmp93_ = tmp90_+tmp92_;
   double tmp94_ = tmp48_*tmp13_;
   double tmp95_ = tmp94_*(tmp19_);
   double tmp96_ = tmp93_+tmp95_;
   double tmp97_ = tmp51_*tmp26_;
   double tmp98_ = tmp52_*tmp28_;
   double tmp99_ = tmp97_+tmp98_;
   double tmp100_ = (tmp99_)*(tmp9_);
   double tmp101_ = tmp51_*tmp4_;
   double tmp102_ = tmp52_*tmp33_;
   double tmp103_ = tmp101_+tmp102_;
   double tmp104_ = (tmp103_)*(tmp16_);
   double tmp105_ = tmp100_+tmp104_;
   double tmp106_ = tmp52_*tmp2_;
   double tmp107_ = tmp106_*(tmp19_);
   double tmp108_ = tmp105_+tmp107_;
   double tmp109_ = tmp24_*(tmp30_);
   double tmp110_ = tmp24_*(tmp35_);
   double tmp111_ = tmp24_*tmp38_;

  mVal[0] = (tmp46_)/(tmp40_)-(mCompCoord[0]+mCompCoord[1]*mLocYIm+mCompCoord[2]*mLocXIm+mCompCoord[3]*tmp20_+mCompCoord[4]*mLocXIm*mLocYIm+mCompCoord[5]*tmp21_+mCompCoord[6]*tmp22_+mCompCoord[7]*mLocXIm*tmp20_+mCompCoord[8]*tmp21_*mLocYIm+mCompCoord[9]*tmp23_);

  mCompDer[0][0] = tmp24_;
  mCompDer[0][1] = tmp53_;
  mCompDer[0][2] = tmp54_;
  mCompDer[0][3] = tmp55_;
  mCompDer[0][4] = tmp57_;
  mCompDer[0][5] = tmp58_;
  mCompDer[0][6] = tmp59_;
  mCompDer[0][7] = tmp61_;
  mCompDer[0][8] = tmp63_;
  mCompDer[0][9] = tmp64_;
  mCompDer[0][10] = 0;
  mCompDer[0][11] = 0;
  mCompDer[0][12] = 0;
  mCompDer[0][13] = 0;
  mCompDer[0][14] = 0;
  mCompDer[0][15] = 0;
  mCompDer[0][16] = 0;
  mCompDer[0][17] = 0;
  mCompDer[0][18] = 0;
  mCompDer[0][19] = 0;
  mCompDer[0][20] = ((tmp47_*tmp2_*(tmp9_)+tmp25_*(tmp16_))*(tmp40_)-(tmp46_)*(tmp86_))/tmp50_;
  mCompDer[0][21] = ((tmp48_*tmp4_*(tmp9_)+tmp48_*tmp3_*(tmp16_)+tmp2_*(tmp19_))*(tmp40_)-(tmp46_)*(tmp96_))/tmp50_;
  mCompDer[0][22] = -((tmp46_)*(tmp108_))/tmp50_;
  mCompDer[0][23] = (tmp24_*tmp25_*(tmp40_)-(tmp46_)*tmp109_)/tmp50_;
  mCompDer[0][24] = (tmp24_*tmp42_*(tmp40_)-(tmp46_)*tmp110_)/tmp50_;
  mCompDer[0][25] = (tmp48_*(tmp40_)-(tmp46_)*tmp111_)/tmp50_;
  mCompDer[0][26] = (tmp25_*(tmp40_)-(tmp46_)*(tmp30_))/tmp50_;
  mCompDer[0][27] = (tmp42_*(tmp40_)-(tmp46_)*(tmp35_))/tmp50_;
  mCompDer[0][28] = (tmp5_*(tmp40_)-(tmp46_)*tmp38_)/tmp50_;
  mVal[1] = (tmp78_)/(tmp40_)-(mCompCoord[10]+mCompCoord[11]*mLocYIm+mCompCoord[12]*mLocXIm+mCompCoord[13]*tmp20_+mCompCoord[14]*mLocXIm*mLocYIm+mCompCoord[15]*tmp21_+mCompCoord[16]*tmp22_+mCompCoord[17]*mLocXIm*tmp20_+mCompCoord[18]*tmp21_*mLocYIm+mCompCoord[19]*tmp23_);

  mCompDer[1][0] = 0;
  mCompDer[1][1] = 0;
  mCompDer[1][2] = 0;
  mCompDer[1][3] = 0;
  mCompDer[1][4] = 0;
  mCompDer[1][5] = 0;
  mCompDer[1][6] = 0;
  mCompDer[1][7] = 0;
  mCompDer[1][8] = 0;
  mCompDer[1][9] = 0;
  mCompDer[1][10] = tmp24_;
  mCompDer[1][11] = tmp53_;
  mCompDer[1][12] = tmp54_;
  mCompDer[1][13] = tmp55_;
  mCompDer[1][14] = tmp57_;
  mCompDer[1][15] = tmp58_;
  mCompDer[1][16] = tmp59_;
  mCompDer[1][17] = tmp61_;
  mCompDer[1][18] = tmp63_;
  mCompDer[1][19] = tmp64_;
  mCompDer[1][20] = (((tmp65_*tmp13_+tmp66_*tmp10_)*(tmp9_)+(tmp47_*tmp13_+tmp67_)*(tmp16_))*(tmp40_)-(tmp78_)*(tmp86_))/tmp50_;
  mCompDer[1][21] = ((tmp87_*tmp10_*(tmp9_)+tmp88_*tmp10_*(tmp16_)+tmp48_*tmp10_*(tmp19_))*(tmp40_)-(tmp78_)*(tmp96_))/tmp50_;
  mCompDer[1][22] = (((tmp52_*tmp26_+tmp13_*tmp28_)*(tmp9_)+(tmp52_*tmp4_+tmp13_*tmp33_)*(tmp16_)+tmp13_*tmp2_*(tmp19_))*(tmp40_)-(tmp78_)*(tmp108_))/tmp50_;
  mCompDer[1][23] = (tmp24_*(tmp69_)*(tmp40_)-(tmp78_)*tmp109_)/tmp50_;
  mCompDer[1][24] = (tmp24_*(tmp73_)*(tmp40_)-(tmp78_)*tmp110_)/tmp50_;
  mCompDer[1][25] = (tmp24_*tmp76_*(tmp40_)-(tmp78_)*tmp111_)/tmp50_;
  mCompDer[1][26] = ((tmp69_)*(tmp40_)-(tmp78_)*(tmp30_))/tmp50_;
  mCompDer[1][27] = ((tmp73_)*(tmp40_)-(tmp78_)*(tmp35_))/tmp50_;
  mCompDer[1][28] = (tmp76_*(tmp40_)-(tmp78_)*tmp38_)/tmp50_;
}


void cEqAppui_PTInc_C2MDPol3::ComputeValDerivHessian()
{
  ELISE_ASSERT(false,"Foncteur cEqAppui_PTInc_C2MDPol3 Has no Der Sec");
}

void cEqAppui_PTInc_C2MDPol3::SetXIm(double aVal){ mLocXIm = aVal;}
void cEqAppui_PTInc_C2MDPol3::SetYIm(double aVal){ mLocYIm = aVal;}



double * cEqAppui_PTInc_C2MDPol3::AdrVarLocFromString(const std::string & aName)
{
   if (aName == "XIm") return & mLocXIm;
   if (aName == "YIm") return & mLocYIm;
   return 0;
}


cElCompiledFonc::cAutoAddEntry cEqAppui_PTInc_C2MDPol3::mTheAuto("cEqAppui_PTInc_C2MDPol3",cEqAppui_PTInc_C2MDPol3::Alloc);


cElCompiledFonc *  cEqAppui_PTInc_C2MDPol3::Alloc()
{  return new cEqAppui_PTInc_C2MDPol3();
}


