20 Line Function

Trying to write a source file with a function to give to "a company" to drive.
Pseudocode
For each Frequncy (Calculate degree of numerator and denominator)
Calculate numerator <complex> (evaluate each power sum)
Calculate denominator <complex> (evaluate each power sum)
Gain = num/div (1 complex number)abs
push_back
end
return(20log10(-)

Here is what should be included:
# include <vector>
# include <iostream>
# include <cstdlib>
# include <fstream>
using namespace std;

std::vector<double> calculate_mag_response(double start_freq, double end_freq,
int N, std::vector<double> num, std::vector<double> den)
Topic archived. No new replies allowed.