DADiSP Worksheet Functions > Function Categories > Binary Series > NOTEQUAL

 

NOTEQUAL

Purpose:

Determines if two expressions are not equal.

Syntax:

NOTEQUAL(val1, val2)

val1

-

A scalar, series, or table.

val2

-

A scalar, series, or table.

Returns:

A scalar, series, or table (containing the value 1 or 0) of the same type as the higher of the two expressions. Integer is the lowest type, Real is next, and Complex is the highest type. If one or both of the expressions is a series, then a series results. The following is a list of type conversion rules:

 

 

Integer

!=

Real

yields Real

Integer

!=

Series

yields Series

Integer

!=

Integer

yields Integer

Real

!=

Complex

yields Complex

Real

!=

Series

yields Series

Complex

!=

Real Series

yields Complex Series

String

!=

String

yields Integer

 

Example:

notequal(max(W1), 10.0)

 

returns a 1 if the maximum value of W1 does not equal 10.0, or 0 if the maximum value of W1 equals 10.0.

Example:

notequal({1, 5, 6}, {1, 2, 4})

 

returns the series {0, 1, 1}.

Remarks:

notequal(a, b) is equivalent to a != b.

 

NOTEQUAL uses STRCMP for string arguments.

See Also:

< <= > >= == != (Conditional Operators)

&& || ! AND OR NOT XOR (Logical Operators)

NOT