limit x to 1 ((1-x)(tan((pi*x)/2))