Calling  f = chebfun(@sin,'trunc',10) will give the truncated approximation to sin(x), which of course is different to  f = chebfun(@sin,10).
Calling
 f = chebfun(@sin,'trunc',10)
will give the truncated approximation to sin(x),
which of course is different to
 f = chebfun(@sin,10).

There's some support for piecewise functions and  blow up,
but I'm very jet-lagged, so who knows if it's correct ...




nickhale/chebfunV4,chebfun/chebfun_v4