$active_trial = "active"; // see header.php include "../files/user.php"; // also includes site.php include "../header.php"; ?>
To determine the square root of a positive real number k, given any approximation xi > 0 calculate
Write a program that calculates the square root of a number read from input. The initial approximation can be 1 or k, as the algorithm converges quite quickly.
Run your program on the following three test cases. In the main competition mostly there will usually be one test file to minimise time spent on submission.
Test Input |
---|
2 |
9.8696044010893586188344909998762 |
1000000 |
You may submit multiple times. Only your most recent submission for each task in the open round will be marked. include "../footer.php"; ?>