add function tan(double x)