Python: a_double Unary Plus and Minus: Example and Test
# This test fails in Octave and so is skipped by make check_lib_octavedefa_double_unary_op_xam() :
## load the Cppad Swig libraryimport py_cppad
## initialize return variable
ok = True
# ---------------------------------------------------------------------
two = py_cppad.a_double(2.0)
plus_two = + two
minus_two = - two
#
ok = ok and plus_two.value() == 2.0
ok = ok and minus_two.value() == -2.0
#return( ok )
#