2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

Change generation to abs x<=1

This commit is contained in:
Matt Borland
2024-05-30 08:42:12 +02:00
parent cf0d343757
commit f4e547c2d8

View File

@@ -298,7 +298,7 @@ void print_rationals(int max_order)
"template <class T, class U, class V>\n"
"inline V evaluate_rational_c_imp(const T* a, const U* b, const V& x, const std::integral_constant<int, " << order << ">*)\n"
"{\n"
" if(x <= 1)\n"
" if((-1 <= x) && (x <= 1))\n"
" return static_cast<V>((";
for(int bracket = 2; bracket < order; ++bracket)
@@ -393,7 +393,7 @@ void print_rationals(int max_order)
"template <class T, class U, class V>\n"
"inline V evaluate_rational_c_imp(const T* a, const U* b, const V& x, const std::integral_constant<int, " << order << ">*)\n"
"{\n"
" if(x <= 1)\n {\n"
" if((-1 <= x) && (x <= 1))\n {\n"
" V x2 = x * x;\n"
" return static_cast<V>((";
@@ -609,7 +609,7 @@ void print_rationals(int max_order)
"template <class T, class U, class V>\n"
"inline V evaluate_rational_c_imp(const T* a, const U* b, const V& x, const std::integral_constant<int, " << order << ">*)\n"
"{\n"
" if(x <= 1)\n {\n"
" if((-1 <= x) && (x <= 1))\n {\n"
" V x2 = x * x;\n"
" V t[4];\n";