Compute tangent.