Assignment1-FIT3139
Due:Monday 11:55pmonWeek 5
worth 15% of your final mark
March 8, 2024
Python代写 do not hesitate to contact me!
WeChat:lovexc60
This assignment covers content taught in weeks 1-3. You may use any of the following
programming languages: Julia. Python or MATLAB.
You can present your report as a PDF, including the code separately or you can use a Jupyter
notebook containing the report and the code. It is in your best interest for us to understand
easily what you are doing in the code and the report. Take your time ensuring the report
and the code are readable and easy to understand.
For marking each task we will look at:
• Code correctness
• Quality of plots and figures
• Quality of analysis
Part 1 - Model Error (7.5 marks total)
Part 1.1 (3 marks)
Consider the following function f(x) = cos(x).
This function can be expressed equivalently using an infinite Taylor Series, but since our finite
precision machines cannot evaluate the infinite Taylor Series, we must content ourselves with
truncating the Taylor Series after a finite number of terms and accept a level of error.
Implement a function which approximates cos(x) using a truncated Taylor Series around the
point 0. Compare the accuracy of this function to the inbuilt cos(x) function. Make this
comparison for different levels of accuracy and for different points of interest in the domain.