x
Yes
No
Do you want to visit DriveHQ English website?
Inicio
Características
Precios
Prueba gratuita
Software cliente
Acerca de nosotros
Servidor de archivos
|
Solución de copias de seguridad
|
Servidor FTP
|
Servidor de correo electrónico
|
Alojamiento web
|
Software cliente
Servidor de archivos
Solución de copia de seguridad
Servidor FTP
Servidor de correo electrónico
Alojamiento web
Software cliente
cos_pi.hpp - Hosted on DriveHQ Cloud IT Platform
Arriba
Subir
Descargar
Compartir
Publicar
Nueva carpeta
Nuevo archivo
Copiar
Cortar
Eliminar
Pegar
Clasificación
Actualizar
Ruta de la carpeta: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\math\special_functions\cos_pi.hpp
Girar
Efecto
Propiedad
Historial
// Copyright (c) 2007 John Maddock // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_MATH_COS_PI_HPP #define BOOST_MATH_COS_PI_HPP #include
#include
#include
#include
#include
namespace boost{ namespace math{ namespace detail{ template
T cos_pi_imp(T x) { BOOST_MATH_STD_USING // ADL of std names // cos of pi*x: bool invert = false; if(x < 0.5) return cos(constants::pi
() * x); if(x < 1) { x = -x; } T rem = floor(x); if(tools::real_cast
(rem) & 1) invert = !invert; rem = x - rem; if(rem > 0.5f) { rem = 1 - rem; invert = !invert; } if(rem == 0.5f) return 0; rem = cos(constants::pi
() * rem); return invert ? -rem : rem; } } template
inline typename tools::promote_args
::type cos_pi(T x, const Policy&) { typedef typename tools::promote_args
::type result_type; return boost::math::detail::cos_pi_imp
(x); } template
inline typename tools::promote_args
::type cos_pi(T x) { typedef typename tools::promote_args
::type result_type; return boost::math::detail::cos_pi_imp
(x); } } // namespace math } // namespace boost #endif
cos_pi.hpp
Dirección de la página
Dirección del archivo
Anterior
8/35
Siguiente
Descargar
( 1 KB )
Comments
Total ratings:
0
Average rating:
No clasificado
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.