Introduction
Introduction Statistics Contact Development Disclaimer Help
tfunctions.h - numeric - C++ library with numerical algorithms
git clone git://src.adamsgaard.dk/numeric
Log
Files
Refs
LICENSE
---
tfunctions.h (397B)
---
1 #ifndef FUNCTIONS_H_
2 #define FUNCTIONS_H_
3
4 #include <iostream>
5 #include <vector>
6 #include <cmath>
7 #include "header.h"
8
9 int ncalls = 0;
10
11 Floattype functionA(const std::vector<Floattype> x) {
12 if (x.size() != 3) {
13 std::cout << "Error! FunctionA must be given a 3D input point!\n";
14 return NAN;
15 }
16
17 return 1.0f / (1.0f-cos(x[0]) * cos(x[1]) * cos(x[2])) / M_PI / M_PI /…
18 }
19
20 #endif
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.