Google
 

Trailing-Edge - PDP-10 Archives - decuslib10-02 - 43,50145/padd.doc
There are 2 other files named padd.doc in the archive. Click here to see a list.
SUBROUTINE PADD

PURPOSE
   ADD TWO POLYNOMIALS

USAGE
   CALL PADD(Z,IDIMZ,X,IDIMX,Y,IDIMY)

DESCRIPTION OF PARAMETERS
   Z	 - VECTOR OF RESULTANT COEFFICIENTS, ORDERED FROM
	   SMALLEST TO LARGEST POWER
   IDIMZ - DIMENSION OF Z (CALCULATED)
   X	 - VECTOR OF COEFFICIENTS FOR FIRST POLYNOMIAL, ORDERED
	   FROM SMALLEST TO LARGEST POWER
   IDIMX - DIMENSION OF X (DEGREE IS IDIMX-1)
   Y	 - VECTOR OF COEFFICIENTS FOR SECOND POLYNOMIAL,
	   ORDERED FROM SMALLEST TO LARGEST POWER
   IDIMY - DIMENSION OF Y (DEGREE IS IDIMY-1)

REMARKS
   VECTOR Z MAY BE IN SAME LOCATION AS EITHER VECTOR X OR
   VECTOR Y ONLY IF THE DIMENSION OF THAT VECTOR IS NOT LESS
   THAN THE OTHER INPUT VECTOR
   THE RESULTANT POLYNOMIAL MAY HAVE TRAILING ZERO COEFFICIENTS

SUBROUTINES AND FUNCTION SUBPROGRAMS REQUIRED
   NONE

METHOD
   DIMENSION OF RESULTANT VECTOR IDIMZ IS CALCULATED AS THE
   LARGER OF THE TWO INPUT VECTOR DIMENSIONS. CORRESPONDING
   COEFFICIENTS ARE THEN ADDED TO FORM Z.