modsr.tex 977 B

1234567891011121314151617181920212223242526272829303132
  1. \chapter{MODSR: Modular solve and roots}
  2. \label{MODSR}
  3. \typeout{{MODSR: Modular solve and roots}}
  4. {\footnotesize
  5. \begin{center}
  6. Herbert Melenk \\
  7. Konrad--Zuse--Zentrum f\"ur Informationstechnik Berlin \\
  8. Takustra\"se 7 \\
  9. D--14195 Berlin--Dahlem, Germany \\[0.05in]
  10. e--mail: melenk@zib.de
  11. \end{center}
  12. }
  13. \ttindex{MODSR}
  14. This package supports solve (\f{M\_SOLVE}\ttindex{M\_SOLVE}) and roots
  15. (\f{M\_ROOTS}\ttindex{M\_ROOTS}) operators for modular polynomials and
  16. modular polynomial systems. The moduli need not be primes. {\tt
  17. M\_SOLVE} requires a modulus to be set. {\tt M\_ROOTS} takes the
  18. modulus as a second argument. For example:
  19. \begin{verbatim}
  20. on modular; setmod 8;
  21. m_solve(2x=4); -> {{X=2},{X=6}}
  22. m_solve({x^2-y^3=3});
  23. -> {{X=0,Y=5}, {X=2,Y=1}, {X=4,Y=5}, {X=6,Y=1}}
  24. m_solve({x=2,x^2-y^3=3}); -> {{X=2,Y=1}}
  25. off modular;
  26. m_roots(x^2-1,8); -> {1,3,5,7}
  27. m_roots(x^3-x,7); -> {0,1,6}
  28. \end{verbatim}