source:
issm/oecreview/Archive/16554-17801/ISSM-17739-17740.diff@
17802
Last change on this file since 17802 was 17802, checked in by , 11 years ago | |
---|---|
File size: 656 bytes |
-
../trunk-jpl/src/c/shared/Numerics/NewtonSolveDnorm.cpp
31 31 while(true){ 32 32 33 33 /*Newton step*/ 34 y2 = y1 - (c1*pow(pow(10.,y1),s-1.) + c2*pow(10.,y1) - c3)/((s-1)*c1*log(10 )*pow(pow(10.,y1),s-1.) + c2*log(10.)*pow(10.,y1));34 y2 = y1 - (c1*pow(pow(10.,y1),s-1.) + c2*pow(10.,y1) - c3)/((s-1)*c1*log(10.)*pow(pow(10.,y1),s-1.) + c2*log(10.)*pow(10.,y1)); 35 35 36 36 if( fabs(y2-y1)/(fabs(y2))<threshold ){ 37 37 break;
Note:
See TracBrowser
for help on using the repository browser.