Square
The second power of x: .
Wikipedia
Square functionWikidataQ3075175Square(x)the second power .Julia
enumeratio_pow(x, 2)Rustpower(x, n(2))Typed signatures
| Type | Package | Applies |
|---|---|---|
(number) -> number | compute-engine | always |
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).
Plot
Examples
About
| Examples | 9 |
|---|---|
| Checked against | Wolfram Language 9 agreeSageMath 8 agree1 errorSymPy 8 agree1 errormpmath 6 agree1 errorJulia 7 agree1 errorRust 6 agree |
| Crosswalk | WikipediaWikidataJuliaRust |
Implementation
mapped
wolframpackages/oracle/src/mappings.tsmapped
sympypackages/oracle/src/mappings.tsmapped
mpmathpackages/oracle/src/mappings.tsmapped
sagepackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
rustpackages/oracle/src/mappings.ts