View source for Complex Numbers

Jump to: navigation, search

You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in one of the groups: Administrators, user-manual, user-manual-en.


You can view and copy the source of this page.

Return to Complex Numbers.

Comments

Workaround: IsComplex[][edit]

Sometimes you may want to check if a number is treated as complex number in GeoGebra, as function such as x() and y() do not work with real numbers. As there is no such command as IsComplex you currently have to employ a small trick to check if the number a is complex: complex = IsDefined[sqrt(a) + sqrt(-a)] ∧ (a ≠ 0).

Note: Complex with imaginary part 0, like a = 2 + 0i, also pass this test. If you just want to check if the imaginary part of a complex number a is not 0 you can use y(a) != 0.
© 2024 International GeoGebra Institute