<< isMatrix SYMSCI Toolbox isScalar >>

SYMSCI Toolbox >> SYMSCI Toolbox > isNotEqual

isNotEqual

check for non-equality of symbolic scalars

Calling Sequence

t = isNotEqual( a, b )
t = ( a ~= b )

Arguments

a, b

symbolic scalar

t

boolean

Description

Returns true (%t) if symbolic scalars a and b are not equal and false (%f) otherwise.

Examples

// some symbolic variables
a = %(Sym("x+5"))
b = %(Sym("5+x"))
c = %(Sym("1"))
d = %(Sym("1.0"))

// symbolic equality?
a   ~= b
b   ~= c
c   ~= c
2*c ~= 2*d
c   ~= d

// clean up
reset();
clear a b c d;

See Also

Authors

Bibliography

SymEngine: C++ library for fast symbolic manipulation.


Report an issue
<< isMatrix SYMSCI Toolbox isScalar >>