Implement mathabs