Rosetta 3.3
Namespaces | Functions
src/numeric/trig.functions.hh File Reference

Trigonometric functions. More...

#include <numeric/numeric.functions.hh>
#include <utility/exit.hh>
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>

Namespaces

namespace  numeric
 

A 1D histogram based upon a map structure.


Functions

template<typename T >
numeric::sec (T const &x)
 Secant.
template<typename T >
numeric::csc (T const &x)
 Cosecant.
template<typename T >
numeric::cot (T const &x)
 Cotangent.
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?
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.
template<typename T >
numeric::arccos (T const x)
 like std::acos but with range checking

Detailed Description

Trigonometric functions.

Author:
Frank M. D'Ippolito (Objexx@objexx.com)
Stuart G. Mentzer (Stuart_Mentzer@objexx.com)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines