Gapplet

Let K be the field Q[X]/(d), where d is an irreducible polynomial in Q[X] of degree n. For given f Q[X], the matrix of the map "multiplication by f", which is a linear map on the vector space K over Q, with respect to the basis 1, X, ..., Xn-1 is given.

Input d, e.g., X^5-X-3 
</COMMENT>
 
Input f, e.g., X-3  
</COMMENT>
 
compute the matrix </COMMENT>  
 
</COMMENT>