56 f[2] <<
pow(z,3.0/2.0);
57 f[3] <<
pow(z,2.0/3.0);
62 for( i = 0; i < 7; i++ ){
63 if( f[i].isConvex() ==
BT_TRUE )
64 printf(
"f[%d] is convex. \n", i );
66 if( f[i].isConcave() ==
BT_TRUE )
67 printf(
"f[%d] is concave. \n", i );
69 printf(
"f[%d] is neither convex nor concave. \n", i );
Allows to setup and evaluate a general function based on SymbolicExpressions.
IntermediateState sqrt(const Expression &arg)
#define USING_NAMESPACE_ACADO
IntermediateState pow(const Expression &arg1, const Expression &arg2)
IntermediateState entropy(const Expression &arg)
IntermediateState exp(const Expression &arg)