solve S+P+sin(A)/2=pi, S/P=2, (S+sin(A)/2)/P=A/(pi-A) for A,S,P