Memosa-FVM  0.2
testUQTK.cpp
Go to the documentation of this file.
1 // This file os part of FVM
2 // Copyright (c) 2012 FVM Authors
3 // See LICENSE file for terms.
4 
5 #include <string>
6 
7 using namespace std;
8 
9 #include "PC.h"
10 
11 
12 typedef PC<3,2> PCType;
13 
14 int main(int argc, char *argv[])
15 {
16  PCType a;
17  a = 0.1, 0.01;
18 
19  PCType b = a*a;
20  PCType c = a+3;
21  PCType d = a*4;
22 
23 
24  cout << "mean value of a " << a._data[0] << endl;
25  cout << "std dev of a " << stdDev(a) << endl;
26 
27  cout << "mean value of b " << b._data[0] << endl;
28  cout << "std dev of b " << stdDev(b) << endl;
29 
30  cout << "mean value of c " << c._data[0] << endl;
31  cout << "std dev of c " << stdDev(c) << endl;
32 
33  cout << "mean value of d " << d._data[0] << endl;
34  cout << "std dev of d " << stdDev(d) << endl;
35 
36  return 0;
37 }
Definition: PC.h:61
int main(int argc, char *argv[])
Definition: testUQTK.cpp:14
double stdDev(const PC< ORDER, DIM > &a)
Definition: PC.h:363
PC< 3, 2 > PCType
Definition: testUQTK.cpp:12
double _data[N]
Definition: PC.h:293