Question: Exercise 1: Using Romberg Method Given the function f(x) in the template, write a MATLAB function that integrates the function from x=a to x=b. function
Exercise 1: Using Romberg Method Given the function f(x) in the template, write a MATLAB function that integrates the function from x=a to x=b. function [estimates, romberg]=integral (a,b, order) end function y=f(x) y=2000log(140000/(1400002100x))9.8x; end Code to call your function: a=5; b=5+30 rand (); order =1+ round (5 rand (),0) estimate, romberg=integral (a,b, order)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
