-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
49 lines (47 loc) · 1.04 KB
/
main.cpp
File metadata and controls
49 lines (47 loc) · 1.04 KB
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
// start of the project
#include <iostream>
#include <stdlib.h>
#include "NDDF.cpp"
//#include "compute.cpp"
#include "NGFI.cpp"
#include "NGBI.cpp"
//#include "comp_p.cpp"
#include "LGIF.cpp"
//#include "comp_x.cpp"
#include "LGII.cpp"
#include "simpwedd123.cpp"
typedef double Real;
using namespace std;
// functions in the program
// for NDDF
Real comp(Real*,int,Real);
// for NGFI & NGBI
int fact(int x);
Real comp_p(Real,int);
Real comp_pb(Real,int);
// for LGFI & LGII
Real comp_x_a(Real*,Real,int,int);
Real comp_x_b(Real*,Real,int);
int main()
{
int ch;
cout<<"Select a method to Use :\n"
<<"1. Newton Divided difference method\n"
<<"2. NGFI\n"
<<"3. NGBI\n"
<<"4. LGFI\n"
<<"5. LGII\n"
<<"6. Numerical Integration";
cin>>ch;
switch(ch)
{
case 1:NDDF_main();break;
case 2:NGFI_main();break;
case 3:NGBI_main();break;
case 4:LGIF_main();break;
case 5:LGII_main();break;
case 6:num_integration();break;
default:;
}
return 0;
}