Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need the code in C++ please =( You will employ each of these methods to solve each of the following three problems to find

I need the code in C++ please =(

You will employ each of these methods to solve each of the following three problems to find the area under the respective curves over the interval (-1, 1).

your program will use three different 5-point numerical quadrature methods (Closed Newton Cotes, Gaussian Quadrature, and Lobatto Quadrature)

You will employ each of these methods to solve each of the following three problems to find the area under the respective curves over the interval (-1, 1).

1) f(x) = 1 - sin(1 - x) (The true area under the above curve is (to 20 digits) 0.58385316345285761300)

2) f(x) = sqrt(x + 1) + 1 (The true area under the above curve is (to 20 digits) 3.8856180831641267317)

3) f(x) = tanh(x + 1) (The true area under the above curve is (to 20 digits) 1.3250027473578644309)

First, print out the values of the weights and the nodes for each quadrature formula, Then for each function (or curve), print out your approximation to the area under the curve, the true value of the area, and the error in the approximation for each of the three quadrature formulae.

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

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

Which team solution is more likely to be pursued and why?

Answered: 1 week ago

Question

4. I can tell when team members dont mean what they say.

Answered: 1 week ago