Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cmath.hpp File Reference

Overloads of functions in <cmath> for quantities. More...

#include <boost/config/no_tr1/cmath.hpp>
#include <cstdlib>
#include <boost/math/special_functions/fpclassify.hpp>
#include <boost/math/special_functions/hypot.hpp>
#include <boost/math/special_functions/next.hpp>
#include <boost/math/special_functions/round.hpp>
#include <boost/math/special_functions/sign.hpp>
#include <boost/units/dimensionless_quantity.hpp>
#include <boost/units/pow.hpp>
#include <boost/units/quantity.hpp>
#include <boost/units/detail/cmath_impl.hpp>
#include <boost/units/detail/dimensionless_unit.hpp>
#include <boost/units/systems/si/plane_angle.hpp>
Include dependency graph for cmath.hpp:

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::units
 

Functions

template<class Unit , class Y >
bool isfinite boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
bool isinf boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
bool isnan boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
bool isnormal boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
bool isgreater boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
bool isgreaterequal boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
bool isless boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
bool islessequal boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
bool islessgreater boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
bool isunordered boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > abs boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
quantity< Unit, Y > ceil boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
quantity< Unit, Y > copysign boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > fabs boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
quantity< Unit, Y > floor boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
quantity< Unit, Y > fdim boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > fmax boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > fmin boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
int fpclassify boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
root_typeof_helper< typename
add_typeof_helper< typename
power_typeof_helper< quantity
< Unit, Y >, static_rational
< 2 > >::type, typename
power_typeof_helper< quantity
< Unit, Y >, static_rational
< 2 > >::type >::type,
static_rational< 2 > >::type
hypot 
boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > nextafter boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > nexttoward boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > round boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
int signbit boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
quantity< Unit, Y > trunc boost::units::BOOST_PREVENT_MACRO_SUBSTITUTION (const quantity< Unit, Y > &q)
 
template<class Unit , class Y >
quantity< Unit, Y > boost::units::fmod (const quantity< Unit, Y > &q1, const quantity< Unit, Y > &q2)
 
template<class Unit , class Y >
quantity< Unit, Y > boost::units::modf (const quantity< Unit, Y > &q1, quantity< Unit, Y > *q2)
 
template<class Unit , class Y , class Int >
quantity< Unit, Y > boost::units::frexp (const quantity< Unit, Y > &q, Int *ex)
 
template<class S , class Y >
quantity
< BOOST_UNITS_DIMENSIONLESS_UNIT(S),
Y > 
boost::units::pow (const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &q1, const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &q2)
 For non-dimensionless quantities, integral and rational powers and roots can be computed by pow<Ex> and root<Rt> respectively. More...
 
template<class S , class Y >
quantity
< BOOST_UNITS_DIMENSIONLESS_UNIT(S),
Y > 
boost::units::exp (const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &q)
 
template<class Unit , class Y , class Int >
quantity< Unit, Y > boost::units::ldexp (const quantity< Unit, Y > &q, const Int &ex)
 
template<class S , class Y >
quantity
< BOOST_UNITS_DIMENSIONLESS_UNIT(S),
Y > 
boost::units::log (const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &q)
 
template<class S , class Y >
quantity
< BOOST_UNITS_DIMENSIONLESS_UNIT(S),
Y > 
boost::units::log10 (const quantity< BOOST_UNITS_DIMENSIONLESS_UNIT(S), Y > &q)
 
template<class Unit , class Y >
root_typeof_helper< quantity
< Unit, Y >, static_rational
< 2 > >::type 
boost::units::sqrt (const quantity< Unit, Y > &q)
 
template<class Y >
dimensionless_quantity
< si::system, Y >::type 
boost::units::cos (const quantity< si::plane_angle, Y > &theta)
 cos of theta in radians More...
 
template<class Y >
dimensionless_quantity
< si::system, Y >::type 
boost::units::sin (const quantity< si::plane_angle, Y > &theta)
 sin of theta in radians More...
 
template<class Y >
dimensionless_quantity
< si::system, Y >::type 
boost::units::tan (const quantity< si::plane_angle, Y > &theta)
 tan of theta in radians More...
 
template<class System , class Y >
dimensionless_quantity< System,
Y >::type 
boost::units::cos (const quantity< unit< plane_angle_dimension, System >, Y > &theta)
 cos of theta in other angular units More...
 
template<class System , class Y >
dimensionless_quantity< System,
Y >::type 
boost::units::sin (const quantity< unit< plane_angle_dimension, System >, Y > &theta)
 sin of theta in other angular units More...
 
template<class System , class Y >
dimensionless_quantity< System,
Y >::type 
boost::units::tan (const quantity< unit< plane_angle_dimension, System >, Y > &theta)
 tan of theta in other angular units More...
 
template<class Y , class System >
quantity< unit
< plane_angle_dimension,
homogeneous_system< System >
>, Y > 
boost::units::acos (const quantity< unit< dimensionless_type, homogeneous_system< System > >, Y > &val)
 acos of dimensionless quantity returning angle in same system More...
 
template<class Y >
quantity
< angle::radian_base_unit::unit_type,
Y > 
boost::units::acos (const quantity< unit< dimensionless_type, heterogeneous_dimensionless_system >, Y > &val)
 acos of dimensionless quantity returning angle in radians More...
 
template<class Y , class System >
quantity< unit
< plane_angle_dimension,
homogeneous_system< System >
>, Y > 
boost::units::asin (const quantity< unit< dimensionless_type, homogeneous_system< System > >, Y > &val)
 asin of dimensionless quantity returning angle in same system More...
 
template<class Y >
quantity
< angle::radian_base_unit::unit_type,
Y > 
boost::units::asin (const quantity< unit< dimensionless_type, heterogeneous_dimensionless_system >, Y > &val)
 asin of dimensionless quantity returning angle in radians More...
 
template<class Y , class System >
quantity< unit
< plane_angle_dimension,
homogeneous_system< System >
>, Y > 
boost::units::atan (const quantity< unit< dimensionless_type, homogeneous_system< System > >, Y > &val)
 atan of dimensionless quantity returning angle in same system More...
 
template<class Y >
quantity
< angle::radian_base_unit::unit_type,
Y > 
boost::units::atan (const quantity< unit< dimensionless_type, heterogeneous_dimensionless_system >, Y > &val)
 atan of dimensionless quantity returning angle in radians More...
 
template<class Y , class Dimension , class System >
quantity< unit
< plane_angle_dimension,
homogeneous_system< System >
>, Y > 
boost::units::atan2 (const quantity< unit< Dimension, homogeneous_system< System > >, Y > &y, const quantity< unit< Dimension, homogeneous_system< System > >, Y > &x)
 atan2 of value_type returning angle in radians More...
 
template<class Y , class Dimension , class System >
quantity
< angle::radian_base_unit::unit_type,
Y > 
boost::units::atan2 (const quantity< unit< Dimension, heterogeneous_system< System > >, Y > &y, const quantity< unit< Dimension, heterogeneous_system< System > >, Y > &x)
 atan2 of value_type returning angle in radians More...
 

Detailed Description

Overloads of functions in <cmath> for quantities.

Only functions for which a dimensionally-correct result type can be determined are overloaded. All functions work with dimensionless quantities.