/**
* Function for solving linear equation using numerical method.
*
* @author : irfanudin ridho
* @email : irfan.ub@gmail.com
* @date : December 28, 2010
* @version : 1.0
*/
/**
* @return x number value expected
*/
function getByNumericalMethod(){
var x=100;
for(i=0;i<110;i++){
var y = x-10;
if(y>0)
x--;
else if(y<0)
x++;
}
return x;
}
No comments:
Post a Comment