Difference between revisions of "RandomPolynomial Command"
From GeoGebra Manual
Line 5: | Line 5: | ||
;RandomPolynomial[ <Variable Var>, <Degree> , <Minimum for Coefficients min>, <Maximum for Coefficients max> ] | ;RandomPolynomial[ <Variable Var>, <Degree> , <Minimum for Coefficients min>, <Maximum for Coefficients max> ] | ||
:Returns a randomly generated polynomial in ''Var'', whose (integer) coefficients are in the range from ''min'' to ''max'', both included. | :Returns a randomly generated polynomial in ''Var'', whose (integer) coefficients are in the range from ''min'' to ''max'', both included. | ||
+ | {{note|If ''min'' or ''max'' are not integers, ''round(min)'' and ''round(max)'' are used insttead.}} |
Revision as of 12:54, 11 June 2011
This command works in CAS View only.
- RandomPolynomial[ <Degree> , <Minimum for Coefficients min>, <Maximum for Coefficients max> ]
- Returns a randomly generated polynomial in x, whose (integer) coefficients are in the range from min to max, both included.
- RandomPolynomial[ <Variable Var>, <Degree> , <Minimum for Coefficients min>, <Maximum for Coefficients max> ]
- Returns a randomly generated polynomial in Var, whose (integer) coefficients are in the range from min to max, both included.
Note: If min or max are not integers, round(min) and round(max) are used insttead.