added tan and arctan functions