Pretty sure tan(pi/9) is positive (I guess you could store the value of the tan in the define to save a couple of tan() calls)