25 #include <utility/vector1.hh>
28 #include <numeric/polynomial.hh>
29 #include <numeric/conversions.hh>
32 #include <ObjexxFCL/format.hh>
39 namespace ObjexxFCL {
namespace fmt { } }
using namespace ObjexxFCL::fmt;
46 using namespace utility;
49 Polynomial_1d::Polynomial_1d(
50 string const & polynomial_name,
60 numeric::
Polynomial_1d(polynomial_name, xmin, xmax, min_val, max_val, root1, root2, degree, coefficients),
61 geometric_dimension_(geometric_dimension)
66 geometric_dimension_(src.geometric_dimension_)
85 <<
"domain:(" << xmin() <<
"," << xmax() <<
") "
86 <<
"out_of_range_vals:(" << min_val() <<
"," << max_val() <<
") "
87 <<
"roots:[" << root1() <<
"," << root2() <<
"] "
88 <<
"degree:" << degree() <<
" "
90 for(
Size i=1; i <= degree(); ++i){
92 if (coefficients()[i] > 0 ){
94 }
else if (coefficients()[i] < 0 ){
100 out << std::abs(coefficients()[i]);
102 out <<
"x^" << degree()-i;
103 }
else if (degree()-i == 1){
112 using numeric::conversions::radians;
124 for (
Size i=120; i<= 300; i+=2 ){
125 Real const AHdist( 0.01 * i );
126 operator()(AHdist, energy, deriv);
127 out << F(9, 3, energy) <<
" ";
132 for (
Size i=60; i<= 180; i+=2 ) {
133 Real const xH( cos( radians( 180.0 - i ) ) );
134 operator()(xH, energy, deriv);
135 out << F(9, 3, energy) <<
" ";
140 for (
Size i=60; i<= 180; i+=2 ) {
141 Real const xD( cos( radians( 180.0 - i ) ) );
142 operator()(xD, energy, deriv);
143 out << F(9, 3, energy) <<
" ";
154 for (
Size i=0; i<=360; i+=6) {
155 Real const chi( cos( radians( 180.0 - i ) ) );
156 operator()(chi, energy, deriv);
157 out << F(9, 3, energy) <<
" ";