A function like
double func(double *x, double*)
{
if (x[0] < 1.) {
return x[0];
} else {
return 0.;
}
}
is discontinuous at 1. TF1, when used to draw func, draws the discontinuity using a straight line.
How can I stop TF1 from drawing this straight line?