-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
71 lines (64 loc) · 1.36 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
#include <algorithm>
#include <boost/numeric/interval.hpp>
#include <cassert>
#include <cmath>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <sstream>
#include <string>
#include <tuple>
#include <utility>
#include <variant>
#include <vector>
*/
#include <sstream>
#include "analyze.h"
//#include "draw.h"
#include "functions.h"
//#include "pbPlots.h"
//#include "supportLib.h"
#include "print.h"
int main(int argc, char *argv[])
{
if (argc == 1) {
listFunctions();
} else if (argc != 5) {
std::cout << argv[0] << " function lsb lo hi" << std::endl;
} else {
// analyze(argv[1], name2function(argv[1]), I(atof(argv[3]), atof(argv[4])), atoi(argv[2]), false);
// compute histogram
auto fun = name2function(argv[1]);
std::string msg = argv[1];
int lsb = atoi(argv[2]);
I i(atof(argv[3]), atof(argv[4]));
auto H = histogram(fun, i, lsb);
gnuplotfile(msg, lsb, i.lower(), i.upper(), H);
}
return 0;
}
/*
acos Primitive
asin Primitive
atan Primitive
atan2 Primitive
cos Primitive
sin Primitive
tan Primitive
exp Primitive
log Primitive
log10 Primitive
pow Primitive
sqrt Primitive
abs Primitive
min Primitive
max Primitive
fmod Primitive
remainder Primitive
floor Primitive
ceil Primitive
rint Primitive
*/