| 2215 | 0.0, M_PI, 0.0, &calcTrigonometric01, NULL }; |
| 2216 | |
| 2217 | static double calcExponential( const double* const x, const int N ) |
| 2218 | { |
| 2219 | double s = 0.0; |
| 2220 | int i; |
| 2221 | |
| 2222 | for( i = 0; i < N; i++ ) |
| 2223 | { |
| 2224 | s += sqr(x[i]); |
| 2225 | } |
| 2226 | |
| 2227 | return( -exp(-0.5*s) ); |
| 2228 | } |
| 2229 | |
| 2230 | static const CTestFn TestFnExponential = { "Exponential", 0, |
| 2231 | -1.0, 1.0, -1.0, &calcExponential, NULL }; |