Changeset 1428 in Sophya for trunk/SophyaLib/Samba


Ignore:
Timestamp:
Mar 1, 2001, 11:58:30 AM (25 years ago)
Author:
ansari
Message:

correction bug (abs() -> fabs()) , Reza 1/3/2001

Location:
trunk/SophyaLib/Samba
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/lambdaBuilder.cc

    r1218 r1428  
    1616Legendre::Legendre(r_8 x, int_4 lmax)
    1717{
    18   if (abs(x) >1 )
     18  if (fabs(x) > 1. )
    1919    {
    2020      throw RangeCheckError("variable for Legendre polynomials must have modules inferior to 1" );
  • trunk/SophyaLib/Samba/sphericaltransformserver.cc

    r1328 r1428  
    467467     
    468468      //part of the sky out of the symetric cut
    469       bool keep_it = (abs(cth) >= cos_theta_cut);
     469      bool keep_it = (fabs(cth) >= cos_theta_cut);
    470470     
    471471      if (keep_it)
     
    750750      double cth = cos(theta);
    751751      //part of the sky out of the symetric cut
    752       bool keep_it = (abs(cth) >= cos_theta_cut);
     752      bool keep_it = (fabs(cth) >= cos_theta_cut);
    753753      if (keep_it)
    754754        {
Note: See TracChangeset for help on using the changeset viewer.