Changeset 3083 for trunk/test_more


Ignore:
Timestamp:
Jan 10, 2014 1:35:07 PM (6 years ago)
Author:
bradbell
Message:

atan2.hpp: Make conversion from double explicit.
optimize.hpp: fix which is debug and wich is speed case.
whats_new_14.omh: start this years whats new.
whats_new.omh:start this years whats new.
atan2.cpp: add test that demonstrates bug.
test_more.cpp: change Atan2 to atan2.

Location:
trunk/test_more
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/atan2.cpp

    r2506 r3083  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-14 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    1818# include <cmath>
    1919
    20 bool Atan2(void)
     20namespace { // begin empty namespace
     21
     22bool ad_ad(void)
     23{       bool ok = true;
     24        using CppAD::AD;
     25
     26        AD< AD<double> > x(2.), y(2.);
     27        AD< AD<double> > z = atan2(y, x);
     28        CppAD::NearEqual( Value( Value(z) ), atan(1.), 1e-10, 1e-10 );
     29
     30        return ok;
     31}
     32
     33bool general(void)
    2134{       bool ok = true;
    2235
     
    90103        return ok;
    91104}
     105
     106} // end empty namespace
     107
     108bool atan2(void)
     109{       bool ok = true;
     110        ok     &= ad_ad();
     111        ok     &= general();
     112
     113        return ok;
     114}
  • trunk/test_more/test_more.cpp

    r2859 r3083  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-13 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-14 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
     
    2727extern bool assign(void);
    2828extern bool Atan(void);
    29 extern bool Atan2(void);
     29extern bool atan2(void);
    3030extern bool base_adolc(void);
    3131extern bool base_alloc_test(void);
     
    139139        ok &= Run( assign,          "assign"         );
    140140        ok &= Run( Atan,            "Atan"           );
    141         ok &= Run( Atan2,           "Atan2"          );
     141        ok &= Run( atan2,           "atan2"          );
    142142        ok &= Run( check_simple_vector, "check_simple_vector" );
    143143        ok &= Run( checkpoint,      "checkpoint"     );
Note: See TracChangeset for help on using the changeset viewer.