Home / Expert Answers / Mechanical Engineering / nbsp-problem-4-for-the-same-function-given-in-eq-1-f-x-2x-sin-2x-3e-x-3x-ln-x-pa436

(Solved):   Problem #4. For the same function given in Eq. (1), f(x) = 2x sin(2x) - 3e-x + 3x ln x ...



Problem #4. For the same function given in Eq. (1),
f(x) = 2x³ sin(2x) - 3e-x + 3x ln x²
(1)
There is a local minimum between

 

Problem #4. For the same function given in Eq. (1), f(x) = 2x³ sin(2x) - 3e-x + 3x ln x² (1) There is a local minimum between x = 5 and x = 6. Develop a MATLAB script file named to locate this minimum by using the golden-section search method. Display the iteration process in a form of table output.


We have an Answer from Expert

View Expert Answer

Expert Answer


Code clear;clc; function y = f(x) y = 2*x^3*sin(2*x)-3*exp(-x)+3*x*log(x^2); end ##boundaries x1 = 5; x2 = 6; err = 1; printf('x1\t\ta\t\tb\t\tx2\n'); printf('------------------------------------------------------
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe