/
usr
/
include
/
boost
/
math
/
tools
/
detail
/
/usr/include/boost/math/tools/detail
mkdir
upload
Name
Size
Mode
Actions
is_const_iterable.hpp
1399
0644
edit
dl
rm
polynomial_horner1_2.hpp
1096
0644
edit
dl
rm
polynomial_horner1_3.hpp
1308
0644
edit
dl
rm
polynomial_horner1_4.hpp
1533
0644
edit
dl
rm
polynomial_horner1_5.hpp
1771
0644
edit
dl
rm
polynomial_horner1_6.hpp
2022
0644
edit
dl
rm
polynomial_horner1_7.hpp
2286
0644
edit
dl
rm
polynomial_horner1_8.hpp
2563
0644
edit
dl
rm
polynomial_horner1_9.hpp
2853
0644
edit
dl
rm
polynomial_horner1_10.hpp
3159
0644
edit
dl
rm
polynomial_horner1_11.hpp
3477
0644
edit
dl
rm
polynomial_horner1_12.hpp
3809
0644
edit
dl
rm
polynomial_horner1_13.hpp
4155
0644
edit
dl
rm
polynomial_horner1_14.hpp
4515
0644
edit
dl
rm
polynomial_horner1_15.hpp
4889
0644
edit
dl
rm
polynomial_horner1_16.hpp
5277
0644
edit
dl
rm
polynomial_horner1_17.hpp
5679
0644
edit
dl
rm
polynomial_horner1_18.hpp
6095
0644
edit
dl
rm
polynomial_horner1_19.hpp
6525
0644
edit
dl
rm
polynomial_horner1_20.hpp
6969
0644
edit
dl
rm
polynomial_horner2_2.hpp
1546
0644
edit
dl
rm
polynomial_horner2_3.hpp
1546
0644
edit
dl
rm
polynomial_horner2_4.hpp
1546
0644
edit
dl
rm
polynomial_horner2_5.hpp
1802
0644
edit
dl
rm
polynomial_horner2_6.hpp
2072
0644
edit
dl
rm
polynomial_horner2_7.hpp
2356
0644
edit
dl
rm
polynomial_horner2_8.hpp
2654
0644
edit
dl
rm
polynomial_horner2_9.hpp
2966
0644
edit
dl
rm
polynomial_horner2_10.hpp
3295
0644
edit
dl
rm
polynomial_horner2_11.hpp
3637
0644
edit
dl
rm
polynomial_horner2_12.hpp
3994
0644
edit
dl
rm
polynomial_horner2_13.hpp
4366
0644
edit
dl
rm
polynomial_horner2_14.hpp
4753
0644
edit
dl
rm
polynomial_horner2_15.hpp
5155
0644
edit
dl
rm
polynomial_horner2_16.hpp
5572
0644
edit
dl
rm
polynomial_horner2_17.hpp
6004
0644
edit
dl
rm
polynomial_horner2_18.hpp
6451
0644
edit
dl
rm
polynomial_horner2_19.hpp
6913
0644
edit
dl
rm
polynomial_horner2_20.hpp
7390
0644
edit
dl
rm
polynomial_horner3_2.hpp
1555
0644
edit
dl
rm
polynomial_horner3_3.hpp
1555
0644
edit
dl
rm
polynomial_horner3_4.hpp
1555
0644
edit
dl
rm
polynomial_horner3_5.hpp
1912
0644
edit
dl
rm
polynomial_horner3_6.hpp
2285
0644
edit
dl
rm
polynomial_horner3_7.hpp
2738
0644
edit
dl
rm
polynomial_horner3_8.hpp
3207
0644
edit
dl
rm
polynomial_horner3_9.hpp
3756
0644
edit
dl
rm
polynomial_horner3_10.hpp
4324
0644
edit
dl
rm
polynomial_horner3_11.hpp
4971
0644
edit
dl
rm
polynomial_horner3_12.hpp
5635
0644
edit
dl
rm
polynomial_horner3_13.hpp
6380
0644
edit
dl
rm
polynomial_horner3_14.hpp
7142
0644
edit
dl
rm
polynomial_horner3_15.hpp
7985
0644
edit
dl
rm
polynomial_horner3_16.hpp
8845
0644
edit
dl
rm
polynomial_horner3_17.hpp
9786
0644
edit
dl
rm
polynomial_horner3_18.hpp
10744
0644
edit
dl
rm
polynomial_horner3_19.hpp
11783
0644
edit
dl
rm
polynomial_horner3_20.hpp
12839
0644
edit
dl
rm
rational_horner1_2.hpp
1315
0644
edit
dl
rm
rational_horner1_3.hpp
1728
0644
edit
dl
rm
rational_horner1_4.hpp
2193
0644
edit
dl
rm
rational_horner1_5.hpp
2710
0644
edit
dl
rm
rational_horner1_6.hpp
3279
0644
edit
dl
rm
rational_horner1_7.hpp
3900
0644
edit
dl
rm
rational_horner1_8.hpp
4573
0644
edit
dl
rm
rational_horner1_9.hpp
5298
0644
edit
dl
rm
rational_horner1_10.hpp
6078
0644
edit
dl
rm
rational_horner1_11.hpp
6912
0644
edit
dl
rm
rational_horner1_12.hpp
7802
0644
edit
dl
rm
rational_horner1_13.hpp
8748
0644
edit
dl
rm
rational_horner1_14.hpp
9750
0644
edit
dl
rm
rational_horner1_15.hpp
10808
0644
edit
dl
rm
rational_horner1_16.hpp
11922
0644
edit
dl
rm
rational_horner1_17.hpp
13092
0644
edit
dl
rm
rational_horner1_18.hpp
14318
0644
edit
dl
rm
rational_horner1_19.hpp
15600
0644
edit
dl
rm
rational_horner1_20.hpp
16938
0644
edit
dl
rm
rational_horner2_2.hpp
1765
0644
edit
dl
rm
rational_horner2_3.hpp
1765
0644
edit
dl
rm
rational_horner2_4.hpp
1765
0644
edit
dl
rm
rational_horner2_5.hpp
2343
0644
edit
dl
rm
rational_horner2_6.hpp
2977
0644
edit
dl
rm
rational_horner2_7.hpp
3667
0644
edit
dl
rm
rational_horner2_8.hpp
4413
0644
edit
dl
rm
rational_horner2_9.hpp
5215
0644
edit
dl
rm
rational_horner2_10.hpp
6076
0644
edit
dl
rm
rational_horner2_11.hpp
6995
0644
edit
dl
rm
rational_horner2_12.hpp
7974
0644
edit
dl
rm
rational_horner2_13.hpp
9013
0644
edit
dl
rm
rational_horner2_14.hpp
10112
0644
edit
dl
rm
rational_horner2_15.hpp
11271
0644
edit
dl
rm
rational_horner2_16.hpp
12490
0644
edit
dl
rm
rational_horner2_17.hpp
13769
0644
edit
dl
rm
rational_horner2_18.hpp
15108
0644
edit
dl
rm
rational_horner2_19.hpp
16507
0644
edit
dl
rm
rational_horner2_20.hpp
17966
0644
edit
dl
rm
rational_horner3_2.hpp
1765
0644
edit
dl
rm
rational_horner3_3.hpp
1765
0644
edit
dl
rm
rational_horner3_4.hpp
1765
0644
edit
dl
rm
rational_horner3_5.hpp
2695
0644
edit
dl
rm
rational_horner3_6.hpp
3841
0644
edit
dl
rm
rational_horner3_7.hpp
5203
0644
edit
dl
rm
rational_horner3_8.hpp
6781
0644
edit
dl
rm
rational_horner3_9.hpp
8575
0644
edit
dl
rm
rational_horner3_10.hpp
10588
0644
edit
dl
rm
rational_horner3_11.hpp
12819
0644
edit
dl
rm
rational_horner3_12.hpp
15270
0644
edit
dl
rm
rational_horner3_13.hpp
17941
0644
edit
dl
rm
rational_horner3_14.hpp
20832
0644
edit
dl
rm
rational_horner3_15.hpp
23943
0644
edit
dl
rm
rational_horner3_16.hpp
27274
0644
edit
dl
rm
rational_horner3_17.hpp
30825
0644
edit
dl
rm
rational_horner3_18.hpp
34596
0644
edit
dl
rm
rational_horner3_19.hpp
38587
0644
edit
dl
rm
rational_horner3_20.hpp
42798
0644
edit
dl
rm
Edit:
/usr/include/boost/math/tools/detail/rational_horner2_9.hpp
(5215B)
// (C) Copyright John Maddock 2007. // 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) // // This file is machine generated, do not edit by hand // Polynomial evaluation using second order Horners rule #ifndef BOOST_MATH_TOOLS_RAT_EVAL_9_HPP #define BOOST_MATH_TOOLS_RAT_EVAL_9_HPP namespace boost{ namespace math{ namespace tools{ namespace detail{ template <class T, class U, class V> inline V evaluate_rational_c_imp(const T*, const U*, const V&, const boost::integral_constant<int, 0>*) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>(0); } template <class T, class U, class V> inline V evaluate_rational_c_imp(const T* a, const U* b, const V&, const boost::integral_constant<int, 1>*) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>(a[0]) / static_cast<V>(b[0]); } template <class T, class U, class V> inline V evaluate_rational_c_imp(const T* a, const U* b, const V& x, const boost::integral_constant<int, 2>*) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>((a[1] * x + a[0]) / (b[1] * x + b[0])); } template <class T, class U, class V> inline V evaluate_rational_c_imp(const T* a, const U* b, const V& x, const boost::integral_constant<int, 3>*) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>(((a[2] * x + a[1]) * x + a[0]) / ((b[2] * x + b[1]) * x + b[0])); } template <class T, class U, class V> inline V evaluate_rational_c_imp(const T* a, const U* b, const V& x, const boost::integral_constant<int, 4>*) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>((((a[3] * x + a[2]) * x + a[1]) * x + a[0]) / (((b[3] * x + b[2]) * x + b[1]) * x + b[0])); } template <class T, class U, class V> inline V evaluate_rational_c_imp(const T* a, const U* b, const V& x, const boost::integral_constant<int, 5>*) BOOST_MATH_NOEXCEPT(V) { if(x <= 1) { V x2 = x * x; return static_cast<V>(((a[4] * x2 + a[2]) * x2 + a[0] + (a[3] * x2 + a[1]) * x) / ((b[4] * x2 + b[2]) * x2 + b[0] + (b[3] * x2 + b[1]) * x)); } else { V z = 1 / x; V z2 = 1 / (x * x); return static_cast<V>(((a[0] * z2 + a[2]) * z2 + a[4] + (a[1] * z2 + a[3]) * z) / ((b[0] * z2 + b[2]) * z2 + b[4] + (b[1] * z2 + b[3]) * z)); } } template <class T, class U, class V> inline V evaluate_rational_c_imp(const T* a, const U* b, const V& x, const boost::integral_constant<int, 6>*) BOOST_MATH_NOEXCEPT(V) { if(x <= 1) { V x2 = x * x; return static_cast<V>((((a[5] * x2 + a[3]) * x2 + a[1]) * x + (a[4] * x2 + a[2]) * x2 + a[0]) / (((b[5] * x2 + b[3]) * x2 + b[1]) * x + (b[4] * x2 + b[2]) * x2 + b[0])); } else { V z = 1 / x; V z2 = 1 / (x * x); return static_cast<V>((((a[0] * z2 + a[2]) * z2 + a[4]) * z + (a[1] * z2 + a[3]) * z2 + a[5]) / (((b[0] * z2 + b[2]) * z2 + b[4]) * z + (b[1] * z2 + b[3]) * z2 + b[5])); } } template <class T, class U, class V> inline V evaluate_rational_c_imp(const T* a, const U* b, const V& x, const boost::integral_constant<int, 7>*) BOOST_MATH_NOEXCEPT(V) { if(x <= 1) { V x2 = x * x; return static_cast<V>((((a[6] * x2 + a[4]) * x2 + a[2]) * x2 + a[0] + ((a[5] * x2 + a[3]) * x2 + a[1]) * x) / (((b[6] * x2 + b[4]) * x2 + b[2]) * x2 + b[0] + ((b[5] * x2 + b[3]) * x2 + b[1]) * x)); } else { V z = 1 / x; V z2 = 1 / (x * x); return static_cast<V>((((a[0] * z2 + a[2]) * z2 + a[4]) * z2 + a[6] + ((a[1] * z2 + a[3]) * z2 + a[5]) * z) / (((b[0] * z2 + b[2]) * z2 + b[4]) * z2 + b[6] + ((b[1] * z2 + b[3]) * z2 + b[5]) * z)); } } template <class T, class U, class V> inline V evaluate_rational_c_imp(const T* a, const U* b, const V& x, const boost::integral_constant<int, 8>*) BOOST_MATH_NOEXCEPT(V) { if(x <= 1) { V x2 = x * x; return static_cast<V>(((((a[7] * x2 + a[5]) * x2 + a[3]) * x2 + a[1]) * x + ((a[6] * x2 + a[4]) * x2 + a[2]) * x2 + a[0]) / ((((b[7] * x2 + b[5]) * x2 + b[3]) * x2 + b[1]) * x + ((b[6] * x2 + b[4]) * x2 + b[2]) * x2 + b[0])); } else { V z = 1 / x; V z2 = 1 / (x * x); return static_cast<V>(((((a[0] * z2 + a[2]) * z2 + a[4]) * z2 + a[6]) * z + ((a[1] * z2 + a[3]) * z2 + a[5]) * z2 + a[7]) / ((((b[0] * z2 + b[2]) * z2 + b[4]) * z2 + b[6]) * z + ((b[1] * z2 + b[3]) * z2 + b[5]) * z2 + b[7])); } } template <class T, class U, class V> inline V evaluate_rational_c_imp(const T* a, const U* b, const V& x, const boost::integral_constant<int, 9>*) BOOST_MATH_NOEXCEPT(V) { if(x <= 1) { V x2 = x * x; return static_cast<V>(((((a[8] * x2 + a[6]) * x2 + a[4]) * x2 + a[2]) * x2 + a[0] + (((a[7] * x2 + a[5]) * x2 + a[3]) * x2 + a[1]) * x) / ((((b[8] * x2 + b[6]) * x2 + b[4]) * x2 + b[2]) * x2 + b[0] + (((b[7] * x2 + b[5]) * x2 + b[3]) * x2 + b[1]) * x)); } else { V z = 1 / x; V z2 = 1 / (x * x); return static_cast<V>(((((a[0] * z2 + a[2]) * z2 + a[4]) * z2 + a[6]) * z2 + a[8] + (((a[1] * z2 + a[3]) * z2 + a[5]) * z2 + a[7]) * z) / ((((b[0] * z2 + b[2]) * z2 + b[4]) * z2 + b[6]) * z2 + b[8] + (((b[1] * z2 + b[3]) * z2 + b[5]) * z2 + b[7]) * z)); } } }}}} // namespaces #endif // include guard
Save
cmd:
run