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>


namespace  numeric

A 1D histogram based upon a map structure.


template<typename T >
numeric::sec (T const &x)
template<typename T >
numeric::csc (T const &x)
template<typename T >
numeric::cot (T const &x)
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.

Frank M. D'Ippolito (
Stuart G. Mentzer (
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines