next up previous contents index
suivant: Change the order of monter: Polynomials précédent: Convert a series expansion   Table des matières   Index


Random polynomial : randpoly randPoly

randpoly (or randPoly) takes two arguments: the name of a variable (by default x) and an integer n (the order of the arguments is not important).
randpoly returns a polynomial with respect to the variable given argument (or x if none was provided), of degree the second argument, having as coefficients random integers evenly distributed on -99..+99.
Input :
randpoly(t,4)
Output for example:
-8*t^4-87*t^3-52*t^2+94*t+80
Input :
randpoly(4)
Output for example:
70*x^4-46*x^3-7*x^2-24*x+52
Input :
randpoly(4,u)
Output for example:
2*u^4+33*u^3-6*u^2-92*u-12



giac documentation written by Renée De Graeve and Bernard Parisse