75 using namespace CppAD::cg;
77 if (x.isParameter()) {
78 if (x.getValue() > Base(0.0)) {
80 }
else if (x.getValue() == Base(0.0)) {
89 if (x.isValueDefined()) {
90 if (x.getValue() > Base(0.0)) {
91 result.setValue(Base(1.0));
92 }
else if (x.getValue() == Base(0.0)) {
93 result.setValue(Base(0.0));
95 result.setValue(Base(-1.0));