Changeset 3501 for trunk/test_more


Ignore:
Timestamp:
Dec 24, 2014 8:10:32 PM (5 years ago)
Author:
bradbell
Message:

erf.cpp: fix test of case where compiler has erf.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/erf.cpp

    r3498 r3501  
    6565        ok   &= NearEqual(check[0] / 2.0, y2[0], 0., 2e-3);
    6666# if CPPAD_COMPILER_HAS_ERF
    67         ok   &= NearEqual(check[0], y2[0], eps, eps);
     67        ok   &= NearEqual(check[0] / 2.0, y2[0], eps, eps);
    6868# endif
    6969
     
    7575        ok   &= NearEqual(check[0] / 3.0, y3[0], 0., 2e-3);
    7676# if CPPAD_COMPILER_HAS_ERF
    77         ok   &= NearEqual(check[0], y3[0], eps, eps);
     77        ok   &= NearEqual(check[0] / 3.0, y3[0], eps, eps);
    7878# endif
    7979
Note: See TracChangeset for help on using the changeset viewer.