extends roots() to optionally do real roots only