ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/math/LegendrePolynomial.cpp
(Generate patch)

Comparing trunk/OOPSE-4/src/math/LegendrePolynomial.cpp (file contents):
Revision 2576 by tim, Mon Jan 30 22:25:27 2006 UTC vs.
Revision 2588 by tim, Fri Feb 10 15:12:14 2006 UTC

# Line 60 | Line 60 | namespace oopse {
60      for (int i = 2; i <= maxPower; ++i) {
61        DoublePolynomial pn;
62          
63 <      pn = polyList_[i-1] * x * static_cast<double>((2*i+1)/(i+1)) - polyList_[i-2] * static_cast<double>(i/(i+1));
63 >      pn = polyList_[i-1] * x * ((2.0*i-1.0)/i) - polyList_[i-2] * ((i-1.0)/i);
64        polyList_.push_back(pn);
65      }
66    }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines