Expression Example

This is Euler's expression, rewritten slightly because SXML doesn't know the imaginary number i (== Sqrt(-1)).

The expected result is false, again due to the lack of support for complex numbers. Math.Sqrt(-1) results in NaN, so any operations using that result also result in NaN. Comparing to 0 yields false.

Smartsite SXML CopyCode image Copy Code
<se:expression>
    math.pow(math.e(),(math.sqrt(-1) * math.pi())) + 1 == 0
</se:expression>
Example Result CopyCode image Copy Code
false