6.27.26 Random polynomial: randpoly randPoly
The randpoly command finds random polynomials.
randPoly is a synonym for randpoly.
-
randpoly takes two optional
arguments:
-
Optionally x, the name of a variable (by default x).
- Optionally n, an integer (by default 10).
The order of the arguments is not important.
- randpoly(⟨ x⟩ ⟨ ,n⟩)
returns a monic polynomial in the variable x of degree n,
having as coefficients random integers evenly
distributed on -99..+99.
Examples.
-
Input:
randpoly(t,4)
Output (for example):
- Input:
randpoly(4)
Output (for example):
- Input:
randpoly(4,u)
Output (for example):