Operations between objects
Arithmetic-like operations
The operations of
addition
subtraction
multiplication
division
remainder
unary negative
are attempted within GeoGebra when at least one of the operands is a
Number
or Point
instance. The operation might
not make sense and so might not succeed, for example in the code
p = Point(3, 4)
q = p + 42
Note
Future version might support operations between more classes. For
example, it would make sense to operate on Vector
instances.
Comparisons
The following comparisons between Number
instances give a
Python bool
result, based on the value of the
Number
s at the moment the comparison is made.
==
!=
<
<=
>
>=
If you need a dynamic Boolean
result, see
Function
(although note that this is experimental and only
some operations are supported).