<< SYMSCI Toolbox SYMSCI Toolbox Acos >>

SYMSCI Toolbox >> SYMSCI Toolbox > Abs

Abs

symbolic absolute value

Syntax

b = Abs( a )

Arguments

a, b

symbolic

Description

Returns the absolute value b = abs(a) of a.

Examples

// some values ...
x = Sym("0")
y = Sym("-1")
z = Sym("x*x+5")


// ... and their absolute values
Abs(x)
Abs(y)
Abs(z)

See Also

Authors

Bibliography

SymEngine: C++ library for fast symbolic manipulation.


Report an issue
<< SYMSCI Toolbox SYMSCI Toolbox Acos >>