RandomPolynomial 指令

来自GeoGebra Manual
跳转至: 导航搜索
Accessories dictionary.png
本页为官方文件,一般使用者无法修改,若有任何误谬,请与官方联络。如欲编辑,请至本页的开放版

此指令只能用在运算区

RandomPolynomial[ <Degree> , <Minimum for Coefficients>, <Maximum for Coefficients> ]
UnderConstruction.png
目前本页中文说明尚未翻译完成,请先连至英文说明。如果您有权限,请帮忙翻译本页的官方手册
RandomPolynomial[ <Variable>, <Degree> , <Minimum for Coefficients>, <Maximum for Coefficients> ]
UnderConstruction.png
目前本页中文说明尚未翻译完成,请先连至英文说明。如果您有权限,请帮忙翻译本页的官方手册
RandomPolynomial[ <Degree d> , <Minimum for Coefficients min>, <Maximum for Coefficients max> ]
Returns a randomly generated polynomial in x of degree d, whose (integer) coefficients are in the range from min to max, both included.
范例:
  • RandomPolynomial[0, 1, 2] yields either 1 or 2 and
  • RandomPolynomial[2, 1, 2] yields a random polynomial with a degree of two and only 1 and 2 as coefficients, for example 2x2 + x + 1.
RandomPolynomial[ <Variable Var>, <Degree d> , <Minimum for Coefficients min>, <Maximum for Coefficients max> ]
Returns a randomly generated polynomial in Var of degree d, whose (integer) coefficients are in the range from min to max, both included.
范例:
  • RandomPolynomial[a, 0, 1, 2] yields either 1 or 2 and
  • RandomPolynomial[a, 2, 1, 2] yields a random polynomial with a degree of two and only 1 and 2 as coefficients, for example 2a2 + a + 1.
备注: In both cases if min or max are not integers, round(min) and round(max) are used instead.
© 2024 International GeoGebra Institute