Plot signum(sin^2x - sinx-1) from 0 to pi