//+++++++++++++++++++++++++++++++++++++++++++++++++++++
// File automatically generated by Xfuzzy - DO NOT EDIT
//+++++++++++++++++++++++++++++++++++++++++++++++++++++
package pkg.xfl.unary;
import xfuzzy.lang.*;
public class not extends Unary {
public not() {
super("xfl","not");
Parameter single[] = new Parameter[0];
setSingleParameters(single);
}
public double compute(double a) {
return 1-a;
}
public double derivative(double a) {
double deriv;
deriv = -1;
return deriv;
}
public boolean test () {
return true;
}
public String getJavaCode() {
String eol = System.getProperty("line.separator", "\n");
String code = "";
code += " return 1-a; "+eol;
return code;
}
public String getCCode() {
String eol = System.getProperty("line.separator", "\n");
String code = "";
code += " return 1-a; "+eol;
return code;
}
public String getCppCode() {
String eol = System.getProperty("line.separator", "\n");
String code = "";
code += " return 1-a; "+eol;
return code;
}
}