<< isNotEqual SYMSCI Toolbox isScalar >>

SYMSCI Toolbox >> SYMSCI Toolbox > isNumber

isNumber

symbolic number predicate

Syntax

t = isNumber( s )

Arguments

s

symbolic

t

boolean

Description

Returns true (%t) if symbolic s is a number and false (%f) otherwise.

Examples

// some symbolics
a = Sym("1.234+x")
b = Sym("1")
c = Sym("1+I")
d = Sym("exp(1)")

// what is a number?
isNumber(a)
isNumber(b)
isNumber(c)
isNumber(d)

See Also

Authors

Bibliography

SymEngine: C++ library for fast symbolic manipulation.


Report an issue
<< isNotEqual SYMSCI Toolbox isScalar >>