ComplexUnaryMinus¶
Complex unary minus operator as the second operand of binary arithmetic operators, a
expr
node.
Declaration¶
Syntax¶
ComplexUnaryMinus(expr arg, ttype type, expr? value)
Arguments¶
Argument Name |
Argument Description |
---|---|
|
expression arguments |
|
table entry type |
|
expression value |
Return values¶
The return value is the expression that the ComplexUnaryMinus represents.
Description¶
ComplexUnaryMinus represents complex unary minus operand of binary arithmetic operators, to be used without parantheses.
Example : z = -a + ic
Types¶
Only accepts floating point values, exponents, integers.
Examples¶
(-1.2, 3)
ASR:
(TranslationUnit
(SymbolTable
1
{
})
[(ComplexConstructor
(RealUnaryMinus
(RealConstant
1.200000
(Real 4 [])
)
(Real 4 [])
(RealConstant
-1.200000
(Real 4 [])
)
)
(IntegerConstant 3 (Integer 4 []))
(Complex 4 [])
(ComplexConstant
-1.200000
3.000000
(Complex 4 [])
)
)]
)