You are on page 1of 1

MATLAB Command Window Page 1

>> format long


y= @(x)1-exp(-x)

y =

function_handle with value:

@(x)1-exp(-x)

>> romberg(y,0,4,0.00001,5)

ans =

3.018315626070161

>> rombeg (y,0,4,0.00001,10)


Undefined function or variable 'rombeg'.

Did you mean:


>> romberg (y,0,4,0.00001,10)

ans =

3.018315626070161

>>

You might also like