Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

lab2 - MATH 2242 B,G-Calcula The Expert TA Human-like Gr x+ thern.desire2learn.com/d2/le/content/485354/viewContent/6971077/Niew?ou 485354 Problems: (1) Use the symbolic function int0 to evaluate the following improper

image text in transcribed
lab2 - MATH 2242 B,G-Calcula The Expert TA Human-like Gr x+ thern.desire2learn.com/d2/le/content/485354/viewContent/6971077/Niew?ou 485354 Problems: (1) Use the symbolic function int0 to evaluate the following improper integrals: (2) Evaluate the following approximations to the integral and display using formatted output Compute he numerical approximation using "integral0. . Plot data for numerical integration with 60 intervals. Compute the left rectangle estimate and error. Compute the right recangle estimate and error. Compute the trapezoidal estimate and error. Compute the Simpson estimate and error. Sample Matlab Input: clear all, format compact, format long, clf, clc disp('Your Name, Lab 2, Calculus II, Spring 2019'); disp(Problem 1; syms x; int (5/x,1,inf) disp-Problem 2- f a(x) exp (-x. "2); a-o; b-1; I integral(f,a,b); n 40; dx (b-a); x linspace (a, b,n+1); y = f(x); plot (x,y,) print ('1ab2.jpg','-djpeg'); print ('lab2.eps','-deps'); fprintf(,Numerical Value: %14.12f ',1); value - dx sum (y (1:end-1)) err abs (I-value); fprintf ('Left rectangles : %14.121 , Error: %4.2ein ,,value , err); Sample Matlab Output acBook Ai

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2014 Nancy France September 15 19 2014 Proceedings Part 2 Lnai 8725

Authors: Toon Calders ,Floriana Esposito ,Eyke Hullermeier ,Rosa Meo

2014th Edition

3662448505, 978-3662448502

More Books

Students also viewed these Databases questions