Handbook
Glossary
p-sq ( p -- p^2 )
Polynomials
Prev:
p* ( p q -- r )
Next:
p^ ( p n -- p^n )
Vocabulary
math
.
polynomials
Inputs
p
a polynomial
Outputs
p^2
a polynomial
Word description
Squares a polynomial.
Examples
USING: math.polynomials prettyprint ; { 1 2 0 } p-sq .
{ 1 4 4 0 0 }
Definition
USING:
kernel
;
IN:
math.polynomials
:
p-sq
( p -- p^2 )
dup
p*
;
inline