The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
209 views

The trapezoidal method to numerically obtain $\int_a^b f(x) dx$ has an error E bounded by $\frac{b-a}{12} h^2 \max f’’(x), x \in [a, b]$ where $h$ is the width of the trapezoids. The minimum number of trapezoids guaranteed to ensure $E \leq 10^{-4}$ in computing $\ln 7$ using $f=\frac{1}{x}$ is

  1. 60
  2. 100
  3. 600
  4. 10000
asked in Numerical Methods by Veteran (59.6k points) | 209 views
0
Plz explain
0
a and b not given.
0
Interval [a    b] = [1    7]
0

where is it given? surprise

1 Answer

0 votes
Interval [a b] = [1 7]

f(x) = 1/x

Max f"(x) in [a b] is 2 only ..  // f"(x) = 2/x^3

Error = (b -a)*h*h*max f"(x)/12.   // given

         = (7-1)*h*h*2/12

         = h*h

Error <= 10^(-4)         // given

h*h <= 10^(-4)

h <= 10^(-2)

 

(b - a)/n = h                // n is no of trapezoid

(7-1)/n >=10^(-4)

n <= 600

MinimumMinimum value of n is 600..
answered by Veteran (55.6k points)

Related questions



Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

42,599 questions
48,601 answers
155,674 comments
63,743 users