0
answers
0
watching
46
views
9 Nov 2019



Please show work


a) Conisder the function y = Ax^1/2 + Bsin^2(x-10) + ln(x).Write a MATLAB code which calculates the area using a trapezoidalrule with dx=.01 from x=1 to x=10.


b) Write a MATLAB code which uses the quad command to integratethe same area. You may either use the INLINE command or functionhandles to define the function y(x).


c) Write a MATLAB code with takes the derivative of this that isO(*delta*x^2). Use forward- and backward-difference formulas at theend-points and central difference in the middle.

For unlimited access to Homework Help, a Homework+ subscription is required.

Related textbook solutions

Related questions

Weekly leaderboard

Start filling in the gaps now
Log in