HW4 - CSci 5302 HW4 Due: 1 Apr 2010 1. This problem...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CSci 5302 HW4 Due: 1 Apr 2010 1. This problem requires that you write a program in any language you like. The program is not very big, but can behave in different ways. You should not use any pre-written integration programs. (a) Use Trapezoidal rule to compute the following integrals (i) integraldisplay 1- 1 x 4 dx (iv) integraldisplay 1 √ x dx. (ii) integraldisplay π/ 2 cos x dx [ x in radians], (v) integraldisplay 5 e- x 2 / 2 dx, (iii) integraldisplay 10 1 1 + 100 x 2 dx, (vi) integraldisplay 1 x log x dx. In the expressions above, the log is the natural logarithm, and the function x log x takes the value 0 at x = 0. Divide the interval into n = 8 , 16 , 32 , 64 , 128 , 256 subintervals and assemble the results into a table. The table should show the four different approximations, the error estimates obtained using Richardson Extrapolation and the ratios between them. Do not compute the true errors....
View Full Document

This note was uploaded on 10/21/2011 for the course CSCI 5302 taught by Professor Boley,d during the Spring '08 term at Minnesota.

Page1 / 2

HW4 - CSci 5302 HW4 Due: 1 Apr 2010 1. This problem...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online