Diff for /imach/src/imach.c between versions 1.279 and 1.280

version 1.279, 2017/07/20 13:35:01 version 1.280, 2018/02/21 07:58:13
Line 1 Line 1
 /* $Id$  /* $Id$
   $State$    $State$
   $Log$    $Log$
     Revision 1.280  2018/02/21 07:58:13  brouard
     Summary: 0.99r15
   
     New Makefile with recent VirtualBox 5.26. Bug in sqrt negatve in imach.c
   
   Revision 1.279  2017/07/20 13:35:01  brouard    Revision 1.279  2017/07/20 13:35:01  brouard
   Summary: temporary working    Summary: temporary working
   
Line 6642  To be simple, these graphs help to under Line 6647  To be simple, these graphs help to under
                  }                   }
                                                                                                                                   
                  /* Eigen vectors */                   /* Eigen vectors */
                  v11=(1./sqrt(1+(v1-lc1)*(v1-lc1)/cv12/cv12));                   if(1+(v1-lc1)*(v1-lc1)/cv12/cv12 <1.e-5){
                      printf(" Error sqrt of a negative number: %lf\n",1+(v1-lc1)*(v1-lc1)/cv12/cv12);
                      fprintf(ficlog," Error sqrt of a negative number: %lf\n",1+(v1-lc1)*(v1-lc1)/cv12/cv12);
                      v11=(1./sqrt(fabs(1+(v1-lc1)*(v1-lc1)/cv12/cv12)));
                    }else
                      v11=(1./sqrt(1+(v1-lc1)*(v1-lc1)/cv12/cv12));
                  /*v21=sqrt(1.-v11*v11); *//* error */                   /*v21=sqrt(1.-v11*v11); *//* error */
                  v21=(lc1-v1)/cv12*v11;                   v21=(lc1-v1)/cv12*v11;
                  v12=-v21;                   v12=-v21;
Line 6673  To be simple, these graphs help to under Line 6683  To be simple, these graphs help to under
                    fprintf(ficgp,"\nset label \"%d\" at %11.3e,%11.3e center",(int) age, mu1,mu2);                     fprintf(ficgp,"\nset label \"%d\" at %11.3e,%11.3e center",(int) age, mu1,mu2);
                    fprintf(ficgp,"\n# Age %d, p%1d%1d - p%1d%1d",(int) age, k1,l1,k2,l2);                     fprintf(ficgp,"\n# Age %d, p%1d%1d - p%1d%1d",(int) age, k1,l1,k2,l2);
                    fprintf(ficgp,"\nplot [-pi:pi] %11.3e+ %.3f*(%11.3e*%11.3e*cos(t)+%11.3e*%11.3e*sin(t)), %11.3e +%.3f*(%11.3e*%11.3e*cos(t)+%11.3e*%11.3e*sin(t)) not",      \                     fprintf(ficgp,"\nplot [-pi:pi] %11.3e+ %.3f*(%11.3e*%11.3e*cos(t)+%11.3e*%11.3e*sin(t)), %11.3e +%.3f*(%11.3e*%11.3e*cos(t)+%11.3e*%11.3e*sin(t)) not",      \
                            mu1,std,v11,sqrt(lc1),v12,sqrt(fabs(lc2)),   \                             mu1,std,v11,sqrt(fabs(lc1)),v12,sqrt(fabs(lc2)), \
                            mu2,std,v21,sqrt(lc1),v22,sqrt(fabs(lc2))); /* For gnuplot only */                             mu2,std,v21,sqrt(fabs(lc1)),v22,sqrt(fabs(lc2))); /* For gnuplot only */
                  }else{                   }else{
                    first=0;                     first=0;
                    fprintf(fichtmcov," %d (%.3f),",(int) age, c12);                     fprintf(fichtmcov," %d (%.3f),",(int) age, c12);

Removed from v.1.279  
changed lines
  Added in v.1.280


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>