Rosetta  3.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Functions
trig.functions.hh File Reference

Trigonometric functions. More...

#include <numeric/numeric.functions.hh>
#include <utility/exit.hh>
#include <utility/assert.hh>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <utility/excn/Exceptions.hh>

Namespaces

 numeric
 Unit headers.
 

Functions

template<typename T >
numeric::sec (T const &x)
 Secant. More...
 
template<typename T >
numeric::csc (T const &x)
 Cosecant. More...
 
template<typename T >
numeric::cot (T const &x)
 Cotangent. More...
 
template<typename T >
bool numeric::in_sin_cos_range (T const &x, T const &tol=T(.001))
 Is a sine or cosine value within a specified tolerance of the valid [-1,1] range? More...
 
template<typename T >
numeric::sin_cos_range (T const &x, T const &tol=T(.001))
 Adjust a sine or cosine value to the valid [-1,1] range if within a specified tolerance or exit with an error. More...
 
template<typename T >
numeric::arccos (T const x)
 like std::acos but with range checking More...
 

Detailed Description

Trigonometric functions.

Author
Frank M. D'Ippolito (Objex.nosp@m.x@ob.nosp@m.jexx..nosp@m.com)
Stuart G. Mentzer (Stuar.nosp@m.t_Me.nosp@m.ntzer.nosp@m.@obj.nosp@m.exx.c.nosp@m.om)