Integrate[Tan[x],{x,0,Pi/2},PrincipalValue->True]