<< Set SYMSCI Toolbox Subs >>

SYMSCI Toolbox >> SYMSCI Toolbox > Sub

Sub

(-) symbolic subtraction operator

Calling Sequence

c: Sub( a, b )
c: a - b

Arguments

a

symbolic object, double, or integer

b

symbolic object, double, or integer

c

symbolic variable

Description

Returns the difference c = a - b.

It is mandatory, that at least one of the operands a or b is a symbolic object.

Examples

// create symbolic expressions
a = %(Sym("-x+y-z"))
b = %(Sym("x+z"))

// difference a - b
a-b

// difference a - 1.23
a - 1.23

// difference 5 - b
int32(5) - b

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

See Also

Authors

Bibliography

SymEngine: C++ library for fast symbolic manipulation.


Report an issue
<< Set SYMSCI Toolbox Subs >>