Changeset 3675 for trunk/test_more


Ignore:
Timestamp:
May 5, 2015 10:26:18 AM (5 years ago)
Author:
bradbell
Message:

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: d54457d7204aae2cedec24a81bc6a97b1ec67d89
end hash code: bf9459823c22b7b496d632ebde31ca166a1cc81b

commit bf9459823c22b7b496d632ebde31ca166a1cc81b
Author: Brad Bell <bradbell@…>
Date: Tue May 5 06:53:28 2015 -0700

New doxygen requires GENERATE_HTML (default has changed from YES to NO).


doxyfile.sh: set GENERATE_HTML to YES.
cskip_op.hpp: fix error in doxygen command, remove trailing white space.

commit 158a03f245d13ec00b5474a428645f6712c9ea9f
Author: Brad Bell <bradbell@…>
Date: Tue May 5 06:09:24 2015 -0700

Remove trailing white space.

commit d501584454b6d99e639fafcaeead55f0158965f6
Author: Brad Bell <bradbell@…>
Date: Tue May 5 06:04:14 2015 -0700

  1. Add the inverse hyperbolic sine function asinh.
  2. Change the asin test name from Asin to asin.


base_require.hpp: remove spelling commands that are no longer used.
remove include: remove include commands that are no longer needed.
asin.cpp: use machine epsilon to gauge accuracy of this test result.

Location:
trunk/test_more
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/test_more/CMakeLists.txt

    r3666 r3675  
    6969        adfun_copy.cpp
    7070        asin.cpp
     71        asinh.cpp
    7172        assign.cpp
    7273        add.cpp
  • trunk/test_more/asin.cpp

    r2506 r3675  
    11/* $Id$ */
    22/* --------------------------------------------------------------------------
    3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-12 Bradley M. Bell
     3CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-15 Bradley M. Bell
    44
    55CppAD is distributed under multiple licenses. This distribution is under
    6 the terms of the 
     6the terms of the
    77                    Eclipse Public License Version 1.0.
    88
     
    1717# include <cppad/cppad.hpp>
    1818
    19 bool Asin(void)
     19bool asin(void)
    2020{       bool ok = true;
    2121
     
    2929
    3030        // a temporary values
    31         AD<double> x = sin(U[0]); 
     31        AD<double> x = sin(U[0]);
    3232
    33         // dependent variable vector 
     33        // dependent variable vector
    3434        CPPAD_TESTVECTOR(AD<double>) Z(1);
    3535        Z[0] = asin(x); // asin( sin(u) )
    3636
    3737        // create f: U -> Z and vectors used for derivative calculations
    38         ADFun<double> f(U, Z); 
     38        ADFun<double> f(U, Z);
    3939        CPPAD_TESTVECTOR(double) v(1);
    4040        CPPAD_TESTVECTOR(double) w(1);
    4141
    42         // check value 
     42        // check value
    4343        ok &= NearEqual(U[0] , Z[0],  1e-10 , 1e-10);
    4444
     
    5151        for(j = 1; j < p; j++)
    5252        {       jfac *= j;
    53                 w     = f.Forward(j, v);       
     53                w     = f.Forward(j, v);
    5454                ok &= NearEqual(jfac*w[0], value, 1e-10 , 1e-10); // d^jz/du^j
    5555                v[0]  = 0.;
     
    5858
    5959        // reverse computation of partials of Taylor coefficients
    60         CPPAD_TESTVECTOR(double) r(p); 
     60        CPPAD_TESTVECTOR(double) r(p);
    6161        w[0]  = 1.;
    6262        r     = f.Reverse(p, w);
  • trunk/test_more/test_more.cpp

    r3666 r3675  
    2525extern bool AddZero(void);
    2626extern bool alloc_openmp(void);
    27 extern bool Asin(void);
     27extern bool asin(void);
     28extern bool asinh(void);
    2829extern bool assign(void);
    2930extern bool Atan(void);
     
    139140        ok &= Run( AddEq,           "AddEq"          );
    140141        ok &= Run( AddZero,         "AddZero"        );
    141         ok &= Run( Asin,            "Asin"           );
     142        ok &= Run( asin,            "asin"           );
     143        ok &= Run( asinh,           "asinh"          );
    142144        ok &= Run( assign,          "assign"         );
    143145        ok &= Run( Atan,            "Atan"           );
Note: See TracChangeset for help on using the changeset viewer.