I need help in numerical methods coding in Matlab!
显示 更早的评论
f(x)=1/8(35x^4-30x^2+3)
This Function requires a solution for f(x) =0. You are requested to perform the following tasks:
Design a Matab script to solve f(x) =0 for x using the following numerical methods:
· Fixed point solution
· Newton Method
Your Matlab script needs to perform the following:
1. Plotting the function f(x) and determine the value x which satisfy f(x) =0 from the plot.
2. Implementing the fixed point algorithm and the Newton method for solving f(x)=0 using a for loop which calculates the value of x at each iteration.
3. Computing the absolute error at each iteration, plotting the value of x versus iteration number, plotting the error versus the iteration number and any other plots you feel necessary to show your results.
4. Repeating the above steps for a different initial value.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!