Code covered by the BSD License  

Highlights from
Chebfun V4

image thumbnail

Chebfun V4



30 Apr 2009 (Updated )

Numerical computation with functions instead of numbers.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

function pass = maxdoubleroots

% Tests max(f,g) when f-g has double roots.

f = chebfun(@(x) sin(100*x));
g = chebfun(1);

pass = min(max(f,g)) == 1;

Contact us