polynomial functions elective math