Evaluate in matlab please Part d
Program code screenshot:
main.m
Sample output:
program code to copy:
%main.m
%% clear the screen
clc;
%% close all the previous task on command prompt
close all;
%% use for display the result in long
%% to get the result up to 4 decimal places
format long;
%% define the given integral equation
fun = @(x) -0.055*x.^4 + 0.86*x.^3 - 4.2 * x.^2 + 6.3*x + 2;
%% evaluate the integral by using inbuilt integral function
%% here integration range going from 0 to 8
q = integral(fun,0,8);
%% display the integration message
fprintf('The evaluate integration of the given function is: %f\n', +q)
Evaluate in matlab please Part d Faculty of Engineering Question 1 Consider the integral 8 1-0.055x4...
please solve part a and b Faculty of Engineering Question 1 Consider the integral 8 1-0.055x4 0.86x3 - 4.2x2 + 6.3x + 2)d:x 0 Evaluate the integral analytically to four decimal places. Use Romberg integration to evaluate the integral to an accuracy of to three decimal places. Evaluate the given integral using the three-point Gauss quadrature formula, rounding the final answer to three decimal places. a) b) c) d) Evaluate the integral in MATLAB using the integral function ,-0.5%, rounding...
just c please please I only need the solution for c Question 1 Consider the following integral: (-0.055x* +0.86x? - 4.2x2 + 6.3x + 2)dx a) Evaluate the integral analytically. (Round the final answer to four decimal places.) b) Use Romberg integration to evaluate the integral to an accuracy of Es=0.5%. Calculate bother and Eg for each level (i.e. for each value, 176, as shown in the class notes) and stop calculating integral estimates once Eg SE. (Round the final...
Please show all your steps and calculations. 1-1 Consider the integral: 8 I = | (-0.055x4 + 0.86x3-4.2x2 + 6.3x + 2)dx 08 b) Use Romberg integration to evaluate the integral to an accuracy of Es = 0.5%, rounding the answer to three decimal places. (Analytical value of I-20.9920) 1-1 Consider the integral: 8 I = | (-0.055x4 + 0.86x3-4.2x2 + 6.3x + 2)dx 08 b) Use Romberg integration to evaluate the integral to an accuracy of Es = 0.5%,...
Evaluate the integral integral_0 15^2x dx analytically, using the Trapezoidal Rule (1-segment), and Simpson's 1/3 Rule (1-segment). Then use the Matlab trap() function presented in class to find a solution exact to 4 decimal places. How many segments were required for this accuracy?
Question 1 (Quadrature) [50 pts I. Recall the formula for a (composite) trapezoidal rule T, (u) for 1 = u(a)dr which requires n function evaluations at equidistant quadrature points and where the first and the last quadrature points coincide with the integration bounds a and b, respectively. 10pts 2. For a given v(r) with r E [0,1] do a variable transformation g() af + β such that g(-1)-0 and g(1)-1. Use this to transform the integral に1, u(z)dz to an...
Required information Consider the following double integral. $ 14 (x2 – 6y2 + xy3 )dxdy Evaluate the double integral using single applications of Simpson's 1 / 3 rule. Also, compute the percent relative error. (Round the final answers to three decimal places.) The solution of the double integral is True percent relative error is %.
please explain and do in matlab Problem 6. Consider the definite integral fo, sin(VE) cos( dz. Use n-100 and n = 300 separately, to find the Riemann sum for this integral. Keep at least four decimal places for your answer Problem 6. Consider the definite integral fo, sin(VE) cos( dz. Use n-100 and n = 300 separately, to find the Riemann sum for this integral. Keep at least four decimal places for your answer
4. This question is about using the composite Simpson's Rule to estimate the integral 1 = (exp() dr to ten decimal places. (a) Enter and save the following Matlab function function y = f(x) y =exp(x/2); end [O marks) (b) Now complete the following Matlab function function y = compSR (a,b,N) end The function is to return the estimate of I found by applying Simpson's Rule N times. The Matlab function from the previous part of the question should be...
Numerical analysis Question 1 The Runge's function is written as follows: f ()125x2 f (x) 1 + 25x2 a) Evaluate the given function at five equidistantly spaced values over the interval [-1,1]. (Round the b) c) d) final answers to four decimal places.) Using MATLAB, fit the obtained data with a fourth-order polynomial, and plot the result. Using MATLAB, fit the obtained data with a linear spline, and plot the result. Using MATLAB, fit the obtained data with a cubic...
8. Use the shell method to set up and evaluate the integral y- 3x that gives the volume of the solid generated by revolving the plane region about the y-axis. a. 192R b. 384x C. 192x d. 384x e. 96x 7 9. Set up and evaluate the definite integral for the area of the surface formed by revolving graph of y-9-2 about the y-axis. Round your answer to three decimal places. 8. Use the shell method to set up and...