##// END OF EJS Templates
sync
paul -
r19:cc82265fd480 TCH
parent child
Show More
@@ -501,21 +501,23 float sqrt_ple( float x )
501 {
501 {
502 float y;
502 float y;
503
503
504 y = 0;
504 // y = 0;
505
505
506 if ( x < 0)
506 // if ( x < 0)
507 {
507 // {
508 printf("sqrt(<0)\n");
508 // printf("sqrt(<0)\n");
509 }
509 // }
510 else
510 // else
511 {
511 // {
512 y = sqrt( x );
512 // y = sqrt( x );
513 }
513 // }
514
514
515 if ( y == 0 )
515 // if ( y == 0 )
516 {
516 // {
517 y = 1e-9;
517 // y = 1e-9;
518 }
518 // }
519
520 y = sqrt( x );
519
521
520 return y;
522 return y;
521 }
523 }
General Comments 0
You need to be logged in to leave comments. Login now