[math] remove duplicate const definition and unnecessary det