Bugfix of F2 derivative

This commit is contained in:
Marcel Kronfeld 2010-08-05 09:36:45 +00:00
parent 16634440b0
commit 57ee6d7dfb

View File

@ -61,8 +61,8 @@ public class F2Problem extends AbstractProblemDoubleOffset implements InterfaceL
xi=x[i]-m_XOffSet;
xii=x[i+1]-m_XOffSet;
result[i] += (-200.*xii+200.*xi+2.*xi-2);
result[i+1] += (200.*xii-200*xi);
result[i] += 400*xi*(xi*xi-xii) + 2*xi-2;
result[i+1] += -200 * (xi*xi - xii);
}
return result;
}