qat.core.variables.abso

qat.core.variables.abso(number)

Absolute value of a (real or complex) number

from qat.core.variables import abso

print(abso(-6))
print(abso(2j - 2))
6
2.8284271247461903
Parameters

number (Variable or ArithExpression or number) – real or complex number

Returns

absolute value

Return type

ArithExpression or number