ABgAAAAAAwGQEMAAAAAAAACb7f6K8ojoZfk41AAAAAElFTkSuQmCC" style="width: 560px; white-space: normal; font-style: normal; color: rgb(64, 64, 64); font-size: 12px;"></div></div></div></div></div></div></div>
<!-- 
##### SOURCE BEGIN #####
[I,x] = intadapt(@sqrt,0,1,1e-10);
err = I - 2/3
number_of_nodes = length(x)
%% 
% The adaptive integrator was reasonably successful. But if we integrate 
% $1/\sqrt{x}$, which in unbounded at the origin, the number of nodes goes up 
% dramatically. 
%%
[I,x] = intadapt(@(x) 1./