Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Nextprime - next irreducible polynomial over a finite field
Prevprime - previous irreducible polynomial over a finite field
Nextpoly - next polynomial over a finite field
Prevpoly - previous polynomial over a finite field
Calling Sequence
Nextprime(f, x, alpha) mod p
Prevprime(f, x, alpha) mod p
Nextpoly(f, x, alpha) mod p
Prevpoly(f, x, alpha) mod p
Parameters
f
-
polynomial over a finite field
x
name
alpha
(optional) RootOf
p
integer
Description
Nextpoly(f, x) mod p returns the next polynomial from f in x in lexicographical order over the integers modulo p. Similarly, Prevpoly(f, x) mod p returns the previous polynomial from f in x in lexicographical order over the integers modulo p.
Nextprime(f, x) mod p returns the next irreducible polynomial from f in x in lexicographical order over the integers modulo p. Similarly, Prevprime(f, x) mod p returns the previous irreducible polynomial from f in x in lexicographical order over the integers modulo p.
The optional third argument alpha specifies a representation for the finite field . The field extension alpha is specified by a RootOf a monic univariate polynomial of degree k which must be irreducible. Thus, Nextprime(f, x, alpha) mod p computes the next irreducible polynomial from f in lexicographical order over .
Examples
See Also
alias, Randpoly, Randprime, RootOf
Download Help Document