Changeset 16378


Ignore:
Timestamp:
05/28/13 13:41:47 (12 years ago)
Author:
tbretz
Message:
The argument for cos() must be float
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/makedata.cc

    r16377 r16378  
    190190        //const double cs = cos((90+hrz.alt)*M_PI/180);
    191191        //const double ratio = (10.*sqrt(409600.*cs*cs+9009.) + 6400.*cs - 60.)/10.;
    192         const double ratio = pow(cos((90-hrz.alt)*M_PI/180, -2.664);
     192        const double ratio = pow(cos((90.-hrz.alt)*M_PI/180, -2.664);
    193193
    194194        // Add points to curve
  • trunk/FACT++/src/makeplots.cc

    r16377 r16378  
    311311            //const double cs = cos((90+hrz.alt)*M_PI/180);
    312312            //const double ratio = (10.*sqrt(409600.*cs*cs+9009.) + 6400.*cs - 60.)/10.;
    313             const double ratio = pow(cos((90-hrz.alt)*M_PI/180, -2.664);
     313            const double ratio = pow(cos((90.-hrz.alt)*M_PI/180, -2.664);
    314314
    315315            // Add points to curve
Note: See TracChangeset for help on using the changeset viewer.