16#ifndef dealii_differentiation_sd_symengine_math_h
17#define dealii_differentiation_sd_symengine_math_h
21#ifdef DEAL_II_WITH_SYMENGINE
25# include <type_traits>
59 pow(
const Expression &base,
const Expression &exponent);
70 template <
typename NumberType,
71 typename =
typename std::enable_if<
72 !std::is_same<NumberType, Expression>::value>::type>
89 template <
typename NumberType,
90 typename =
typename std::enable_if<
91 !std::is_same<NumberType, Expression>::value>::type>
106 sqrt(
const Expression &x);
115 cbrt(
const Expression &x);
125 exp(
const Expression &exponent);
134 log(
const Expression &x);
144 log(
const Expression &x,
const Expression &base);
155 template <
typename NumberType,
156 typename =
typename std::enable_if<
157 !std::is_same<NumberType, Expression>::value>::type>
174 template <
typename NumberType,
175 typename =
typename std::enable_if<
176 !std::is_same<NumberType, Expression>::value>::type>
191 log10(
const Expression &x);
208 sin(
const Expression &x);
218 cos(
const Expression &x);
228 tan(
const Expression &x);
238 csc(
const Expression &x);
248 sec(
const Expression &x);
258 cot(
const Expression &x);
269 asin(
const Expression &x);
280 acos(
const Expression &x);
291 atan(
const Expression &x);
302 atan2(
const Expression &y,
const Expression &x);
314 template <
typename NumberType,
315 typename =
typename std::enable_if<
316 !std::is_same<NumberType, Expression>::value>::type>
334 template <
typename NumberType,
335 typename =
typename std::enable_if<
336 !std::is_same<NumberType, Expression>::value>::type>
353 acsc(
const Expression &x);
364 asec(
const Expression &x);
375 acot(
const Expression &x);
393 sinh(
const Expression &x);
404 cosh(
const Expression &x);
415 tanh(
const Expression &x);
426 csch(
const Expression &x);
437 sech(
const Expression &x);
448 coth(
const Expression &x);
459 asinh(
const Expression &x);
470 acosh(
const Expression &x);
481 atanh(
const Expression &x);
492 acsch(
const Expression &x);
503 asech(
const Expression &x);
514 acoth(
const Expression &x);
530 abs(
const Expression &x);
540 fabs(
const Expression &x);
551 sign(
const Expression &x);
562 copysign(
const Expression &value,
const Expression &
sign);
572 floor(
const Expression &x);
582 ceil(
const Expression &x);
592 max(
const Expression &a,
const Expression &
b);
603 template <
typename NumberType,
604 typename =
typename std::enable_if<
605 !std::is_same<NumberType, Expression>::value>::type>
622 template <
typename NumberType,
623 typename =
typename std::enable_if<
624 !std::is_same<NumberType, Expression>::value>::type>
640 min(
const Expression &a,
const Expression &
b);
651 template <
typename NumberType,
652 typename =
typename std::enable_if<
653 !std::is_same<NumberType, Expression>::value>::type>
670 template <
typename NumberType,
671 typename =
typename std::enable_if<
672 !std::is_same<NumberType, Expression>::value>::type>
688 erf(
const Expression &x);
698 erfc(
const Expression &x);
718# define DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(func) \
719 using ::Differentiation::SD::func;
721# define DEAL_II_EXPOSE_SYMENGINE_BINARY_MATH_FUNCTION(func) \
722 using ::Differentiation::SD::func;
724 DEAL_II_EXPOSE_SYMENGINE_BINARY_MATH_FUNCTION(
pow)
725 DEAL_II_EXPOSE_SYMENGINE_BINARY_MATH_FUNCTION(
max)
726 DEAL_II_EXPOSE_SYMENGINE_BINARY_MATH_FUNCTION(
min)
727 DEAL_II_EXPOSE_SYMENGINE_BINARY_MATH_FUNCTION(
copysign)
729 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
exp)
730 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
log10)
731 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
sqrt)
732 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
cbrt)
733 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
erf)
734 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
erfc)
736 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
log)
738 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
abs)
739 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
fabs)
740 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
sign)
741 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
floor)
742 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
ceil)
744 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
sin)
745 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
cos)
746 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
tan)
747 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
csc)
748 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
sec)
749 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
cot)
751 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
asin)
752 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
acos)
753 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
atan)
754 DEAL_II_EXPOSE_SYMENGINE_BINARY_MATH_FUNCTION(
atan2)
755 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
acsc)
756 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
asec)
757 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
acot)
759 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
sinh)
760 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
cosh)
761 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
tanh)
762 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
csch)
763 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
sech)
764 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
coth)
766 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
asinh)
767 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
acosh)
768 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
atanh)
769 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
acsch)
770 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
asech)
771 DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION(
acoth)
773# undef DEAL_II_EXPOSE_SYMENGINE_BINARY_MATH_FUNCTION
774# undef DEAL_II_EXPOSE_SYMENGINE_UNARY_MATH_FUNCTION
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
Expression cbrt(const Expression &x)
Expression atanh(const Expression &x)
Expression atan2(const Expression &y, const Expression &x)
Expression asin(const Expression &x)
Expression asinh(const Expression &x)
Expression cosh(const Expression &x)
Expression csc(const Expression &x)
Expression atan2(const Expression &y, const NumberType &x)
Expression acsch(const Expression &x)
Expression abs(const Expression &x)
Expression fabs(const Expression &x)
Expression ceil(const Expression &x)
Expression coth(const Expression &x)
Expression sinh(const Expression &x)
Expression sec(const Expression &x)
Expression atan(const Expression &x)
Expression floor(const Expression &x)
Expression tanh(const Expression &x)
Expression acsc(const Expression &x)
Expression sin(const Expression &x)
Expression max(const Expression &a, const Expression &b)
Expression erfc(const Expression &x)
Expression exp(const Expression &exponent)
Expression asech(const Expression &x)
Expression pow(const Expression &base, const Expression &exponent)
Expression sign(const Expression &x)
Expression sech(const Expression &x)
Expression acos(const Expression &x)
Expression csch(const Expression &x)
Expression tan(const Expression &x)
Expression acosh(const Expression &x)
Expression min(const Expression &a, const Expression &b)
Expression asec(const Expression &x)
Expression cot(const Expression &x)
Expression cos(const Expression &x)
Expression erf(const Expression &x)
Expression acoth(const Expression &x)
Expression acot(const Expression &x)
Expression log(const Expression &x)
Expression sqrt(const Expression &x)
Expression log10(const Expression &x)
Expression copysign(const Expression &value, const Expression &sign)
SymmetricTensor< 2, dim, Number > b(const Tensor< 2, dim, Number > &F)
::VectorizedArray< Number, width > log(const ::VectorizedArray< Number, width > &)
::VectorizedArray< Number, width > exp(const ::VectorizedArray< Number, width > &)
::VectorizedArray< Number, width > tan(const ::VectorizedArray< Number, width > &)
::VectorizedArray< Number, width > min(const ::VectorizedArray< Number, width > &, const ::VectorizedArray< Number, width > &)
::VectorizedArray< Number, width > max(const ::VectorizedArray< Number, width > &, const ::VectorizedArray< Number, width > &)
::VectorizedArray< Number, width > cos(const ::VectorizedArray< Number, width > &)
::VectorizedArray< Number, width > sin(const ::VectorizedArray< Number, width > &)
::VectorizedArray< Number, width > sqrt(const ::VectorizedArray< Number, width > &)
::VectorizedArray< Number, width > pow(const ::VectorizedArray< Number, width > &, const Number p)
::VectorizedArray< Number, width > abs(const ::VectorizedArray< Number, width > &)