Question: f ( x ) = 0 . 2 5 x 2 - 2 . 7 5 x + 6 . 6 6 fonksiyonu i in
fonksiyonu iin aadaki admlar izleyinz ve sorua cevaplaymiz.
a Python'da NumPy ktphanesi ierisindeki linspace komutunu kullanarak aralnd noktada i elde ediniz. Elde ettiiniz ile fonksiyonunun degerlerini elde ediniz ve Matplotlib ktphanesi ierisinde yer alan pyplot alt modln kullanarak fonksiyonunu e gre izdirinizizdirdiinz grafige izgaralargrid ekleyiniz ve fonksiyonunun kklerinin yerini ve bulunduklar aral grafige bakarak tahmin ve tespit edip yaznz
b fonksiyonunun kklerini analitik olarak bulunuz ve aikknda elde ettiiniz grafie bakarak tahmin ettiiniz kklerle karlatrnz
cakkndaki bulgularnzdan hareketle derste ilenen tm kk bulma yntemlerini sirasiyla Bisection Fixed Point Iteration, Newton ve Secant her bir kkn bulunduu aralk iin verilen fonksiyonu iin gerekleyiniz Bunun iin Python'da yazdnz her bir kod satrnda yaptnz ilemi aklaynz Raporunuzda her bir yntem iin iterasyon admlarn gsteren bir tablo oluturunuz ve kk hangi hata toleransyla ve kanc iterasyonda bulduunuzu belirtiniz.
dbkknda farkl kk bulma yntemlerinden elde ettiiniz tm kkleri listeleyiniz ve analitik hesapladnz kk deerleriyle ba hatalarm hesaplaynz Derste ilediklerinizi de gz nnde bulundurarak yntemlerin hatalarn irdeleyiniz.
e Yukardaki tm klarda yaptklarnz gzden geiriniz Bulgularnz ve rendiklerinizi yorumlaynz ve yaznz
For the function follow the steps below and answer the questions:
a Using the linspace command in the NumPy library in Python, obtain in points in the range Obtain the values of with the obtained and plot against using the pyplot submodule within the Matplotlib library. Add grids to the graph and make an estimate of the locations of the roots of the function by examining the graph, then write down your predictions.
b Find the roots of the function analytically and compare them with the roots you estimated in part a
c Based on the findings from part a implement all rootfinding methods covered in the class Bisection Fixed Point Iteration, Newton, and Secant for the given function in each root's respective interval. Explain each step in the Python code you write. Create a table in your report for each method showing the iteration steps and specify the error tolerance and the iteration number at which the root was found.
d List all the roots obtained from different rootfinding methods in part b and calculate their relative errors compared to the analytically calculated root values. Examine the errors of the methods in consideration of what was covered in the class.
e Review all the steps you took in the above sections. Interpret and write down your findings and what you have learned.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
