1 /* Taylor expansion of a function
28 if (p2
== symbol(NIL
))
39 if (p2
== symbol(NIL
))
40 push_integer(24); // default number of terms
50 if (p2
== symbol(NIL
))
51 push_integer(0); // default expansion point
78 if (k
== (int) 0x80000000) {
98 for (i
= 1; i
<= k
; i
++) {
108 push(C
); // c = c * (x - a)
137 "taylor(1/(5+4*cos(x)),x,6,0)-(1/9+2/81*x^2+5/1458*x^4+49/131220*x^6)",
140 "taylor(1/(5+4*cos(x)),x,6)-(1/9+2/81*x^2+5/1458*x^4+49/131220*x^6)",
147 test(__FILE__
, s
, sizeof s
/ sizeof (char *));