Please help me with this question in Python, but do not use ready-made software like NumPy. Thank you for your help.
3. We want to find a root of f() = e^-(x - ln2)^2 - 2x - 2 + 2ln2 = 0 near xo = 1. Use double precision in all calculations.
3.1 Write a program (< 15 lines; you lose points if it is longer or too complicated) for the Newton-Raphson iteration with starting point xo = 1 to obtain an approximate root p*, satisfying |f(p*)| < 10^-10. Hand in p*, and the iteration sequence n: n = 0, 1, 2, ..., and the last value of n when the iteration stops. Hand in your program. (Again, hand in the program and the data as part of question 3.1, not after 3.2, etc.)