math: make new handle_known_binop() function