21 if (car(p1
) == symbol(TAN
)) {
31 stop("arctan function error");
52 // arctan(sin(a) / cos(a)) ?
54 if (find(p1
, symbol(SIN
)) && find(p1
, symbol(COS
))) {
61 if (car(p2
) == symbol(SIN
) && car(p3
) == symbol(COS
) && equal(cadr(p2
), cadr(p3
))) {
68 // arctan(1/sqrt(3)) -> pi/6
70 if (car(p1
) == symbol(POWER
) && equaln(cadr(p1
), 3) && equalq(caddr(p1
), -1, 2)) {
88 // arctan(sqrt(3)) -> pi/3
90 if (car(p1
) == symbol(POWER
) && equaln(cadr(p1
), 3) && equalq(caddr(p1
), 1, 2)) {