test02_fall07_6

test02_fall07_6 - 45 equally spaced samples between 30 and...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% 4/14/11 % Test 2 Fall09 #6a % % Given the following equation f (x) = 25x^2 + 10x + 7 % (a) Write a script to find the integration from 50 30 of f(x)dx. % Use the trapezoidal rule to find the integration, and
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % 45 equally spaced samples between 30 and 50. % x = linspace(30, 50, 45); y = polyval([25 10 7], x); dx = x(2) - x(1); k = .5 * dx * (y(1) + 2 * sum(y(2:end-1)) + y(end));...
View Full Document

This note was uploaded on 05/01/2011 for the course HCSC 110 taught by Professor Amosjohnson during the Spring '11 term at Morehouse.

Ask a homework question - tutors are online