1 // Tangent function of numerical and symbolic arguments
30 if (car(p1
) == symbol(ARCTAN
)) {
43 // tan function is antisymmetric, tan(-x) = -tan(x)
133 // check against the floating point math library
135 "f(a,x)=1+tan(float(a/360*2*pi))-float(x)+tan(a/360*2*pi)-x",
171 "f(-225,-1)", // -225
177 "f(30,sqrt(3)/3)", // 30
180 "f(150,-sqrt(3)/3)", // 150
183 "f(210,sqrt(3)/3)", // 210
186 "f(330,-sqrt(3)/3)", // 330
189 "f(-30,-sqrt(3)/3)", // -30
192 "f(-150,sqrt(3)/3)", // -150
195 "f(-210,-sqrt(3)/3)", // -210
198 "f(-330,sqrt(3)/3)", // -330
201 "f(60,sqrt(3))", // 60
204 "f(120,-sqrt(3))", // 120
207 "f(240,sqrt(3))", // 240
210 "f(300,-sqrt(3))", // 300
213 "f(-60,-sqrt(3))", // -60
216 "f(-120,sqrt(3))", // -120
219 "f(-240,-sqrt(3))", // -240
222 "f(-300,sqrt(3))", // -300
231 // check the default case
240 test(__FILE__
, s
, sizeof s
/ sizeof (char *));