home *** CD-ROM | disk | FTP | other *** search
- cxpoev(x,y,nd,a,b,c,d)
-
- /*this function evaluates a complex polynomial with*/
- /*complex coeffieicents*/
-
- int nd;
- float x,y,a[],b[],*c,*d;
-
- {
- register int i;
- float r,s,t;
-
- r=0.;
- s=0.;
- for(i = 0; i <= nd-1; i++)
- {
- t = ((r + a[i]) * x) - ((s + b[i]) * y);
- s = ((s + b[i]) * x) + ((r + a[i]) * y);
- r = t;
- }
- *c = r + a[nd];
- *d = s + b[nd];
- }
-