use of org.evosuite.symbolic.expr.fp.RealUnaryExpression in project evosuite by EvoSuite.
the class SINH method executeFunction.
@Override
public Object executeFunction() {
double res = this.getConcDoubleRetVal();
RealValue realExpression = this.getSymbRealArgument(0);
RealValue sinhExpr;
if (realExpression.containsSymbolicVariable()) {
Operator op = Operator.SINH;
sinhExpr = new RealUnaryExpression(realExpression, op, res);
} else {
sinhExpr = this.getSymbRealRetVal();
}
return sinhExpr;
}
use of org.evosuite.symbolic.expr.fp.RealUnaryExpression in project evosuite by EvoSuite.
the class TAN method executeFunction.
@Override
public Object executeFunction() {
double res = this.getConcDoubleRetVal();
RealValue realExpression = this.getSymbRealArgument(0);
RealValue tanExpr;
if (realExpression.containsSymbolicVariable()) {
Operator op = Operator.TAN;
tanExpr = new RealUnaryExpression(realExpression, op, res);
} else {
tanExpr = this.getSymbRealRetVal();
}
return tanExpr;
}
use of org.evosuite.symbolic.expr.fp.RealUnaryExpression in project evosuite by EvoSuite.
the class ToDegrees method executeFunction.
@Override
public Object executeFunction() {
double res = this.getConcDoubleRetVal();
RealValue realExpression = this.getSymbRealArgument(0);
RealValue toDegreesExpr;
if (realExpression.containsSymbolicVariable()) {
Operator op = Operator.TODEGREES;
toDegreesExpr = new RealUnaryExpression(realExpression, op, res);
} else {
toDegreesExpr = this.getSymbRealRetVal();
}
return toDegreesExpr;
}
use of org.evosuite.symbolic.expr.fp.RealUnaryExpression in project evosuite by EvoSuite.
the class CBRT method executeFunction.
@Override
public Object executeFunction() {
double res = this.getConcDoubleRetVal();
RealValue realExpression = this.getSymbRealArgument(0);
RealValue cbrtExpr;
if (realExpression.containsSymbolicVariable()) {
Operator op = Operator.CBRT;
cbrtExpr = new RealUnaryExpression(realExpression, op, res);
} else {
cbrtExpr = this.getSymbRealRetVal();
}
return cbrtExpr;
}
use of org.evosuite.symbolic.expr.fp.RealUnaryExpression in project evosuite by EvoSuite.
the class COS method executeFunction.
@Override
public Object executeFunction() {
double res = this.getConcDoubleRetVal();
RealValue realExpression = this.getSymbRealArgument(0);
RealValue cosExpr;
if (realExpression.containsSymbolicVariable()) {
Operator op = Operator.COS;
cosExpr = new RealUnaryExpression(realExpression, op, res);
} else {
cosExpr = this.getSymbRealRetVal();
}
return cosExpr;
}
Aggregations