Reimplemented sin, cos, and tan for non-empty intervals.