If tan^-1x + tan^-1y + tan^-1z= pi or pi/2

then prove x+y+z=xyz or

xy +yz+zx=1