square - multiply a number by itself
(import (scheme base)) ;R7RS
Returns the square of
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
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.
procedure first appears in R7RS.
This page is part of the
It includes materials from the RnRS documents.
More information can be found at
Markup created by unroff 1.0sc, March 04, 2023.