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

Function calcPowell

tests/testfn.h:916–920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

914 &calcPowerSum, NULL };
915
916static double calcPowell( const double* const x, const int N )
917{
918 return( sqr(x[2]+10.0*x[0])+5.0*sqr(x[1]-x[3])+sqr(sqr(x[0]-2.0*x[1]))+
919 10.0*sqr(sqr(x[2]-x[3])) );
920}
921
922static const CTestFn TestFnPowell = { "Powell", 4, -4.0, 5.0, 0.0,
923 &calcPowell, NULL };

Callers

nothing calls this directly

Calls 1

sqrFunction · 0.85

Tested by

no test coverage detected