Multiplies two variables. It returns the product of x and y. If one argument is a vector, the other one must not be a signal.
Syntax
x*y
Types
| Variable Name | Value Type | Variable Type | ||
|---|---|---|---|---|
| Arguments: | x | real, complex | scalar, vector, matrix, signal, xy-data | |
| y | 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.
Examples
Multiply Scalar and Vector
| ID | Description | Type | Value | Expression | |
|---|---|---|---|---|---|
| x | Argument | REAL VECTOR | 
                                         
                                              | [2, 2.5] | |
| y | Argument | REAL | 3 | 3 | |
| z | Result | REAL VECTOR | 
                                         
                                              | x*y | |
Multiply Vector and Vector (Same Length)
| ID | Description | Type | Value | Expression | |
|---|---|---|---|---|---|
| x | Argument | REAL VECTOR | 
                                         
                                              | [2, 2.5] | |
| y | Argument | REAL VECTOR | 
                                         
                                              | [3, 3.5] | |
| z | Result | REAL | 14.75 | x*y | |
Also known as scalar product or inner product.
Multiply Vector and Matrix
| ID | Description | Type | Value | Expression | |
|---|---|---|---|---|---|
| x | REAL VECTOR | 
                                         
                                              | [1,2] | ||
| y | REAL MATRIX | 
                                         
                                              | [[2, 2.5, 3],[3.5, 4, 4.5]] | ||
| z | Result | REAL VECTOR | 
                                         
                                              | x*y | |
| ID | Description | Type | Value | Expression | |
|---|---|---|---|---|---|
| x | Argument | REAL MATRIX | 
                                         
                                              | [[2, 2.5, 3],[3.5, 4, 4.5]] | |
| y | Argument | REAL VECTOR | 
                                         
                                              | [1,1,1] | |
| z | Result | REAL VECTOR | 
                                         
                                              | x*y | |
Multiply Matrix and Matrix
The number of columns in x must be equal to the number of rows in y.
| ID | Description | Type | Value | Expression | |
|---|---|---|---|---|---|
| x | Argument | REAL MATRIX | 
                                         
                                              | [[1,2],[3,4],[5,6]] | |
| y | Argument | REAL MATRIX | 
                                         
                                              | [[1,2,3],[4,5,6]] | |
| z | Result | REAL MATRIX | 
                                         
                                              | x*y | |
Multiply Matrix and Signal
The number of columns in x must be equal to the number of channels of y. The result is a signal and has as many channels as the matrix has rows.
| ID | Description | Type | Value | Expression | |
|---|---|---|---|---|---|
| x | Argument | REAL MATRIX | 
                                         
                                              | [[1,2],[3,4]] | |
| y | Argument | REAL SIGNAL | 
                                          
                                     | signal([0,0.5,1],[1,2,3],[1,2,3]) | |
| z | Result | REAL SIGNAL | 
                                          
                                     | x*y | |
Multiply Signal and Signal
| ID | Description | Type | Value | Expression | |
|---|---|---|---|---|---|
| x | Argument | REAL SIGNAL | 
                                          
                                     | signal([0, 0.5, 1],[1, 2, 3]) | |
| y | Argument | REAL SIGNAL | 
                                          
                                     | signal([0, 0.5, 1],[2, 3, 4]) | |
| z | Result | REAL SIGNAL | 
                                          
                                     | x*y | |




