Python: a_double Comparison Operators: Example and Test
defa_double_compare_xam() :
## load the Cppad Swig libraryimport py_cppad
## initialize return variable
ok = True
# ---------------------------------------------------------------------
two = py_cppad.a_double(2.0)
three = py_cppad.a_double(3.0)
#
ok = ok and two < three
ok = ok and two <= three
ok = ok and three > two
ok = ok and three >= two
ok = ok and three != two
ok = ok and three == three
#
ok = ok andnot (two > three)
ok = ok andnot (two >= three)
ok = ok andnot (two == three)
#return( ok )
#