SUNY Geneseo Department of Mathematics
Friday, October 17
Math 230 01
Fall 2014
Prof. Doug Baldwin
% Function handle:
>> @sqrt
ans =
@sqrt
>> riemann( @sqrt, 0, 4, 5 )
ans =
4.3979
% Riemann approximation with many rectangles
>> riemann( @sqrt, 0, 4, 50 )
ans =
5.2488
>> compare