Task 2: Numerical Computation (11 Marks) Create a Python module called numerical.py. Within this module implement the following three tasks. Part A: Continued Fractions (3 Marks) Write a function continued fraction (n) that takes as input non-negative integer n and then computes an approximation for the value of e using the first n + 1 terms of the continued fraction: ex2+ 1+ 2 Input: a non-negative integer n. Output: an approximation for the value of e using the first n + 1 terms of the continued fraction. Examples a) Calling continued fraction (2) returns 2.7272727272727275. E.g. e^2+ + b) Calling continued fraction (3) returns 2.7169811320754715. E.g. e 2 + 1 Show transcribed image text Task 2: Numerical Computation (11 Marks) Create a Python module called numerical.py. Within this module implement the following three tasks. Part A: Continued Fractions (3 Marks) Write a function continued fraction (n) that takes as input non-negative integer n and then computes an approximation for the value of e using the first n + 1 terms of the continued fraction: ex2+ 1+ 2 Input: a non-negative integer n. Output: an approximation for the value of e using the first n + 1 terms of the continued fraction. Examples a) Calling continued fraction (2) returns 2.7272727272727275. E.g. e^2+ + b) Calling continued fraction (3) returns 2.7169811320754715. E.g. e 2 + 1

## Expert Answer

Answer to Task 2: Numerical Computation (11 Marks) Create a Python module called numerical.py. Within this module implement the fo…