Skip to content

Square

The second power of x: .

Square(x)the second power .

Domain: Arithmetic

Details
  • Canonicalizes to : and are the same expression. See Sqrt.
  • Even function: , so the sign of the input is lost.
  • Always non-negative for real x; for a complex number it need not be, e.g. .
  • Threads element-wise over a list.
  • Square is purely a convenience head: it canonicalizes away to (Power).

Examples

See also: Sqrt, Root