We retake the example of Laws of trigonometry 1 but with a different lexical ordering.
|
|
And voilà, we immediately find the result we were looking for: the law of sines and an expression that looks very much like it. I.e., $\frac{\sin \beta}b = \frac{\sin \gamma}c$ or $\frac{\sin \beta}b = - \frac{\sin \gamma}c$.
The additional rule is not very surprising, because the cosine laws cannot distinguish between an angle and its negative as their cosines remain the same.
Finally, we compute a Gröbner basis using total degree ordering degrevlex (the default)
|
Note that the monomial ordering is indeed different:
|
The higher degree terms are now in front.
The resulting Gröbner basis is now shorter than in the lexicographical case:
|
The resulting basis is now ordered by degree.
|
The last three basis elements are essentially the original laws of cosine.
|
However. This time it is not so easy to find a 'useful' and 'elegant' formula among the basis elements.
We have better luck if we add the requirement $\alpha+\beta+\gamma=\pi$:
|
|
This translates to \[\frac{\cot\alpha}{-a+b+c} = \frac{\cot{\gamma}}{a+b-c}\] which is the less known law of cotangents
|