Calculating tan (u-v) using given sin and cos values