1. Finding the square root of 2
Engineering studentBackground
The student needs to solve x² − 2 = 0 to approximate √2 to 10 decimal places for a numerical methods assignment.
Problem
Calculate the square root of 2 using Newton's method starting from x₀ = 1 without supplying an explicit derivative.
How to use
Enter `x^2 - 2` into f(x), leave f'(x) blank, set x₀ to 1, decimal places to 10, and run the calculation.
fxExpr = "x^2 - 2", dfxExpr = "", x0 = 1, tolerance = 1e-10, maxIter = 50, decimalPlaces = 10Outcome
The solver converges in 4 iterations to 1.4142135624 with an iteration table detailing each intermediate approximation.