<< isNumber SYMSCI Toolbox isSym >>

SYMSCI Toolbox >> SYMSCI Toolbox > isScalar

isScalar

symbolic scalar predicate

Syntax

t = isScalar( s )

Arguments

s

symbolic

t

boolean

Description

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

Examples

// some symbolics
a = Sym("1.234+x")
b = Set()
c = Mat(a(ones(3,7)))

// what is a scalar?
isScalar(a)
isScalar(b)
isScalar(c)

See Also

Authors

Bibliography

SymEngine: C++ library for fast symbolic manipulation.


Report an issue
<< isNumber SYMSCI Toolbox isSym >>