Commit 3e6b0c86 authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

исправлен подсчет ODDFYIELD

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56184 954022d7-b5bf-4e40-9824-e11837661b57
parent a9dd5f94
......@@ -3563,7 +3563,7 @@ cODDFYIELD.prototype.Calculate = function ( arg ) {
function iterF(yld) {return pr - oddFPrice( settl, matur, iss, firstCoup, rate, yld, redemption, frequency, basis)}
while ( eps > g_Eps && nMC < nIM ) {
xN = x - iterF( x ) / (iterF( x + g_Eps ) - iterF( x - g_Eps )) / (2 * g_Eps);
xN = x - iterF( x ) / ( (iterF( x + g_Eps ) - iterF( x - g_Eps )) / (2 * g_Eps) );
nMC++;
eps = Math.abs( xN - x );
x = xN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment