home *** CD-ROM | disk | FTP | other *** search
- cxplym(a,b,c,d,nda,ndc,e,f,nde)
-
- /*the purpose of this function is to multply two polynomials*/
- /*with complex coefficients.*/
-
- int nda,ndc,*nde;
- float a[],b[],c[],d[],e[],f[];
-
- {
- int i,j,ipj,n;
-
- *nde = nda + ndc;
- n = *nde;
-
- for(i = 0;i <= n; i++)
- {
- e[i] = 0.0;
- f[i] = 0.0;
- }
-
- for(i = 0;i <= nda; i++)
- for(j = 0;j <= ndc; j++)
- {
- ipj = i + j;
- e[ipj] += (a[i]*c[j]) - (b[i]*d[j]);
- f[ipj] += (b[i]*c[j]) + (a[i]*d[j]);
- }
- }
-
-