1 #ifndef PhysicsTools_Utilities_SimplifyTrigonometric_h
2 #define PhysicsTools_Utilities_SimplifyTrigonometric_h
97 pow(
sin(_1._1._), _1._2 ));
119 static const int p = ::boost::mpl::if_c<(n <
m),
120 ::boost::mpl::int_<n>, ::boost::mpl::int_<m> >::
type::value;
125 num<m - p>() * _2._2) +
num<p>());
SIN_RULE(TYPT1, MINUS_S(A), MINUS(SIN(A)),-sin(_._))
const Numerical< n > & num()
typedef POWER(A, NUM(n)) arg
COMBINE(A, NUM(n), num< 1 >()/pow(_1, num<-n >()))
typedef PROD(POWER(COS(A), B), POWER(TAN(A), B)) type
typedef RATIO_S(SIN(A), COS(A)) type
typedef PROD(COS(A), TAN(A)) type
typedef SUM(PROD(NUM(n), SIN2(A)), PROD(NUM(m), COS2(A))) type
typedef RATIO_S(SIN(A), TAN(A)) type
Sin< T >::type sin(const T &t)
COMBINE(COS_S(A), TAN_S(A), _1 *_2)
typedef SUM(SUM(PROD(NUM(n-p), SIN2(A)), PROD(NUM(m-p), COS2(A))), NUM(p)) type
PROD_RULE(TYPT2, EXP_S(A), EXP_S(B), EXP(SUM(A, B)), exp(_1._+_2._))
COMBINE(SIN_S(A), TAN_S(A), _1/_2)
static type combine(const A &_1, const B &_2)
Cos< T >::type cos(const T &t)
Tan< T >::type tan(const T &t)
COMBINE(SIN_S(A), COS_S(A), _1/_2)
COMBINE(POWER_S(COS_S(A), B), POWER_S(TAN_S(A), B), _1 *_2)
typedef PROD(F, SUM(RATIO(A, F), RATIO(B, F))) type
COMBINE(PROD(NUM(n), SIN2(A)), PROD(NUM(m), COS2(A)), _1+_2)
TAN_RULE(TYPT1, MINUS_S(A), MINUS(TAN(A)),-tan(_._))
Power< A, B >::type pow(const A &a, const B &b)
COS_RULE(TYPT1, MINUS_S(A), COS(A), cos(_._))