mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
1.1 KiB
1.1 KiB
Function dotUnequal
Test element wise whether two matrices are unequal. The function accepts both matrices and scalar values.
Syntax
math.dotUnequal(x, y)
Parameters
| Parameter | Type | Description |
|---|---|---|
x |
Number | BigNumber | Boolean | Complex | Unit | Array | Matrix | First matrix to compare |
y |
Number | BigNumber | Boolean | Complex | Unit | Array | Matrix | Second matrix to compare |
Returns
| Type | Description |
|---|---|
| Number | BigNumber | Complex | Unit | Array | Matrix | Returns a matrix containing boolean results of the element wise comparisons. |
Examples
var math = mathjs();
math.dotUnequal(2, 4); // returns true
a = [2, 5, 1];
b = [2, 7, 1];
math.dotUnequal(a, b); // returns [false, true, false]
math.unequal(a, b); // returns true