');
for (var i=1; i<=(parseFloat(document.input.elements[0].value,10)); i++) {
ans=guess-(findequation(box,guess))/(findderivative(der,guess));
wincool.document.writeln('
',i,'
',ans,'
');
guess=ans;
}
wincool.document.writeln('
');
wincool.document.close();
}
return(true);
}
/* The function above calculates the root of the equation. */
/* Below is the body of the program. */
document.writeln('
');
document.writeln('
PROGRAM BY MR.GEEKY
');
document.writeln('');
document.writeln('DERIVATIVE=DY/DX (* THIS PROGRAM ASSUMES THAT YOU KNOW CALCULUS *)');
document.close();