Generic polynomial event detection implemented and tested up to quartics