MCPcopy Create free account
hub / github.com/avaneev/biteopt / calcComplex

Function calcComplex

tests/testfn.h:1564–1568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1562 &calcCamel, NULL };
1563
1564static double calcComplex( const double* const x, const int N )
1565{
1566 return( sqr(pow(x[0],3.0)-3.0*x[0]*sqr(x[1])-1.0)+
1567 sqr(3.0*x[1]*sqr(x[0])-pow(x[1],3.0)) );
1568}
1569
1570static const CTestFn TestFnComplex = { "Complex", 2, -2.0, 2.0, 0.0,
1571 &calcComplex, NULL };

Callers

nothing calls this directly

Calls 1

sqrFunction · 0.85

Tested by

no test coverage detected