//! *this file is freware. Use it at your own risk. //! @file trig.hpp //! @author Dejan D. M. Milosavljevic //! @version 1.0 //! @date 2003 //! Missig trigonometrics functions from standard math library. //! *this file is freware. Use it at your own risk. #ifndef _DDMRM_trigonometry_HPP_ #define _DDMRM_trigonometry_HPP_ #include //namespace S_DDMRM //{ //namespace S_math //{ template< typename N_number > inline N_number sec ( N_number const& x ) { return N_number( N_number(1)/sin(x) ); } template< typename N_number > inline N_number asec ( N_number const& x ) { return N_number( asin( N_number(1)/x) ); } template< typename N_number > inline N_number csec ( N_number const& x ) { return N_number( N_number(1)/cos(x) ); } template< typename N_number > inline N_number acsec ( N_number const& x ) { return N_number( acos( N_number(1)/x) ); } template< typename N_number > inline N_number ctan ( N_number const& x ) { return N_number( cos(x)/sin(x) ); } template< typename N_number > inline N_number actan ( N_number const& x ) { return N_number( atan( N_number(1)/x) ); } // } // } #endif