Square a variable. It returns the square of x. If x is a vector, matrix or signal this operation is performed element-wise.
Syntax
x^2
Types
Variable Name | Value Type | Variable Type | ||
---|---|---|---|---|
Argument: | x | real, complex | scalar, vector, matrix, signal, xy-data | |
Result: | z | real, complex | scalar, vector, matrix, signal, xy-data |
Calculator Input
Use the
button to complete the operation.Example
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
x | Argument | REAL SIGNAL | signal([0, 0.5, 1],[1, 4, 9]) | ||
z | Result | REAL SIGNAL | x^2 |