C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
Public Member Functions | List of all members
cosine_deg< T > Struct Template Referencefinal
Inheritance diagram for cosine_deg< T >:
[legend]
Collaboration diagram for cosine_deg< T >:
[legend]

Public Member Functions

 cosine_deg ()
 
operator() (const T &v) override
 
 cosine_deg ()
 
operator() (const T &v)
 
 cosine_deg ()
 
operator() (const T &v)
 
 cosine_deg ()
 
operator() (const T &v)
 
- Public Member Functions inherited from exprtk::ifunction< T >
 ifunction (const std::size_t &pc)
 
virtual ~ifunction ()
 
virtual T operator() ()
 
virtual T operator() (const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
virtual T operator() (const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &, const T &)
 
- Public Member Functions inherited from exprtk::function_traits
 function_traits ()
 
bool & allow_zero_parameters ()
 
bool & has_side_effects ()
 
std::size_t & min_num_args ()
 
std::size_t & max_num_args ()
 

Additional Inherited Members

- Public Attributes inherited from exprtk::ifunction< T >
std::size_t param_count
 

Detailed Description

template<typename T>
struct cosine_deg< T >

Definition at line 40 of file exprtk_degree_trigonometry_example.cpp.

Constructor & Destructor Documentation

◆ cosine_deg() [1/4]

template<typename T >
cosine_deg< T >::cosine_deg ( )
inline

◆ cosine_deg() [2/4]

template<typename T >
cosine_deg< T >::cosine_deg ( )
inline

Definition at line 5413 of file exprtk_mpfr_test.cpp.

◆ cosine_deg() [3/4]

template<typename T >
cosine_deg< T >::cosine_deg ( )
inline

Definition at line 5411 of file exprtk_real_test.cpp.

◆ cosine_deg() [4/4]

template<typename T >
cosine_deg< T >::cosine_deg ( )
inline

Definition at line 5431 of file exprtk_test.cpp.

Member Function Documentation

◆ operator()() [1/4]

template<typename T >
T cosine_deg< T >::operator() ( const T &  v)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 5415 of file exprtk_mpfr_test.cpp.

5416 {
5417 static const T _pi = exprtk::details::numeric::details::const_pi_impl<T>(exprtk::details::numeric::details::mpfrreal_type_tag());
5418 return mpfr::cos((v * _pi) / T(180));
5419 }

◆ operator()() [2/4]

template<typename T >
T cosine_deg< T >::operator() ( const T &  v)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 5413 of file exprtk_real_test.cpp.

5414 {
5415 return real::cos((v * T(exprtk::details::numeric::constant::pi)) / T(180));
5416 }
type cos(const type v)

References real::cos(), and exprtk::details::numeric::constant::pi.

Here is the call graph for this function:

◆ operator()() [3/4]

template<typename T >
T cosine_deg< T >::operator() ( const T &  v)
inlinevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 5433 of file exprtk_test.cpp.

5434 {
5435 return std::cos((v * T(exprtk::details::numeric::constant::pi)) / T(180));
5436 }

References exprtk::details::numeric::constant::pi.

◆ operator()() [4/4]

template<typename T >
T cosine_deg< T >::operator() ( const T &  v)
inlineoverridevirtual

Reimplemented from exprtk::ifunction< T >.

Definition at line 46 of file exprtk_degree_trigonometry_example.cpp.

47 {
48 return std::cos((v * T(exprtk::details::numeric::constant::pi)) / T(180));
49 }

References exprtk::details::numeric::constant::pi.


The documentation for this struct was generated from the following files: