1 #ifndef PhysicsTools_Utilities_SimplifyTrigonometric_h 2 #define PhysicsTools_Utilities_SimplifyTrigonometric_h 108 static constexpr
int p =
n <
m ?
n :
m;
#define TAN_RULE(TMPL, T, RES, COMB)
Product< typename Power< typename Cos< A >::type, B >::type, typename Power< typename Tan< A >::type, B >::type >::type type
typedef POWER(A, NUM(n)) arg
Sum< typename Product< Numerical< n >, typename Sin2< A >::type >::type, typename Product< Numerical< m >, typename Cos2< A >::type >::type >::type type
static type combine(const typename Cos2< A >::type &_1, const typename Sin2< A >::type &_2)
Sin< T >::type sin(const T &t)
Sum< typename Product< Numerical< n >, typename Sin2< A >::type >::type, typename Product< Numerical< m >, typename Cos2< A >::type >::type >::type type
#define SIN_RULE(TMPL, T, RES, COMB)
static type combine(const typename Product< Numerical< m >, typename Cos2< A >::type >::type &_1, const typename Product< Numerical< n >, typename Sin2< A >::type >::type &_2)
Product< typename Cos< A >::type, typename Tan< A >::type >::type type
TEMPL(T2) struct Divides B
RatioStruct< typename Sin< A >::type, typename Tan< A >::type > type
Cos< T >::type cos(const T &t)
Tan< T >::type tan(const T &t)
Sum< typename Sin2< A >::type, typename Cos2< A >::type >::type type
#define PROD_RULE(TMPL, T1, T2, RES, COMB)
#define COS_RULE(TMPL, T, RES, COMB)
TEMPL(T1) struct Divides0
Power< typename Sin< A >::type, B >::type type
typedef PROD(F, SUM(RATIO(A, F), RATIO(B, F))) type
#define COMBINE(A, B, RES)
Product< typename Sin< A >::type, typename Cos< A >::type >::type type
Sum< typename Sum< typename Product< Numerical< n - p >, typename Sin2< A >::type >::type, typename Product< Numerical< m - p >, typename Cos2< A >::type >::type >::type, Numerical< p > >::type type
RatioStruct< typename Sin< A >::type, typename Cos< A >::type > type
Power< A, B >::type pow(const A &a, const B &b)