Professional Documents
Culture Documents
25 April 19.2 Romberg PDF
25 April 19.2 Romberg PDF
>> trap
Error using trap (line 12)
at least 3 input arguments required
>> y=@(x)*+4*cos(x)
y=@(x)*+4*cos(x)
>> y=@(x)8+4*cos(x)
y =
@(x)8+4*cos(x)
ans =
16.533417689378080
ans =
16.558142559776606
>> romberg
Error using romberg (line 15)
at least 3 input arguments required
>> romberg
Error using romberg (line 15)
at least 3 input arguments required
ans =
16.566370646935255
MATLAB Command Window Page 2
>>