Posted by : Unknown
martes, 11 de noviembre de 2014
SDP04 - Exercise 04
November 11th, 2014
The activity we've done today was about calculating the square root of the number 2 using the Newton's method. This consists in getting closer and closer to the correct number through for iterations and number conversions.
We used some code lines that are found in last projects, which helped us to write the program; we could just rewrite the code according to the C++ programming language.
The result was correct and, it even showed us the most significant digits that are considered by the program in solving the problem.