square#
Compute the square of a value. The square of x is x * x.
Available in: math cells, REPL.
Syntax#
square(x)
square(center, side)
Arguments and behavior#
Arguments must match one of the syntax forms above. Inside plot(...), the two-argument form square([cx, cy], side) draws a centered square; every other call keeps the arithmetic meaning and its existing diagnostics. The example returns scalar (number).
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
square(3)
plot(square([0, 0], 2))Interactive examples could not load. You can still copy the expressions.
Expected result: plot.