square - multiply a number by itself
(import (scheme base)) ;R7RS
Returns the square of z. This is equivalent to (*
z z).
Returns a single value which is a number.
(square 42) => 1764
(square 2.0) => 4.0
Only exists in R7RS. Can be replaced with (lambda (z) (* z
z)).
It is an error for this procedure to be passed the wrong number of arguments,
and it is an error if z is not a complex number object. Implementations
may signal an error, extend the procedure's domain of definition to include
such arguments, or fail catastrophically.
sqrt(3scm), expt(3scm), *(3scm)
The square procedure first appears in R7RS.