-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.cpp
53 lines (38 loc) · 1.11 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
/******************************************************************************
main.cpp
Copyright (c) Roger Burghall 2014..2017
******************************************************************************/
//*********************************************************
#include "math.h"
#include <complex.h>
#include "calcs.h"
#include "SandK.h"
#include "preferred.h"
#include <ostream>
#include <iostream>
#include <string>
#if SHOW_FILE_COMPILING
#pragma message "Compiling " __FILE__
#endif
using std::cout;
extern TFilter filter;
void SallenAndKey1(double Tau, double q);
int main(int argc, char **argv)
{
cout << nearest(e_12, 1025.4) << "\n";
cout << nearest(e_12, 1175.4) << "\n";
filter.poles = 5;
filter.fmax = 10.0;
butterworth(filter);
lowpass(filter, 10.0);
bode_calc(filter);
cout << "\n";
bessel(filter);
cout << "\n";
chebyshev(filter);
cout << "\n";
bode_calc(filter);
SandK cct1;
cct1.SallenAndKey(t_lowpass, 1.0, 1.0e4, 1.0e4, 0.0, 1.0e-7, 2.0e-7);
cct1.SallenAndKey1(0.001, 0.707);
}