Skip to content

Logical Operations

Built-in functions › Mathematics › Elementary Math › Logical Operations

16 functions in this category.

FunctionWhat it does
andElement-wise logical AND (function form of &).
eqElement-wise equality test (function form of ==).
equalwithequalnansElement-wise equality with NaN treated as equal to NaN.
geElement-wise greater-than-or-equal test (function form of >=).
gtElement-wise greater-than test (function form of >).
leElement-wise less-than-or-equal test (function form of <=).
ltElement-wise less-than test (function form of <).
neElement-wise inequality test (function form of ~=).
orElement-wise logical OR (function form of |).
sc_eqShort-circuit equality (scalar context).
sc_geShort-circuit greater-than-or-equal (scalar context).
sc_gtShort-circuit greater-than (scalar context).
sc_leShort-circuit less-than-or-equal (scalar context).
sc_ltShort-circuit less-than (scalar context).
sc_neShort-circuit inequality (scalar context).
xorElement-wise logical XOR (exclusive or).