Fix precedences

First part of this patch fixes https://github.com/hoaproject/Math/issues/4.