-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtester.c
More file actions
37 lines (31 loc) · 675 Bytes
/
tester.c
File metadata and controls
37 lines (31 loc) · 675 Bytes
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
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "quad_functions.h"
#include "spectral_functions.h"
#include "unit_tests.h"
int main(int argc, char **argv){
if(test_jacobi_recur()){
printf("Jacobi recurrence fail.\n");
} else {
printf("Jacobi recurrence pass.\n");
}
if(test_jacobi_matrix()){
printf("Jacobi matrix fail.\n");
} else {
printf("Jacobi matrix pass.\n");
}
if(test_jacobi_eigenvecs()){
printf("Jacobi eigs fail.\n");
} else {
printf("Jacobi eigs pass.\n");
}
if(test_eval_ops()){
printf("Evaluate polys fail.\n");
} else {
printf("Evaluate polys pass.\n");
}
return 0;
}