filter with <span class="searchmatch">R</span> = 1 Ohm and <span class="searchmatch">C</span> = 1 Farad. Other <span class="searchmatch">R</span> and <span class="searchmatch">C</span> values scale the frequency linearly, in inverse proportion; that is, doubling <span class="searchmatch">R</span> or <span class="searchmatch">C</span> will halve W...
double <span class="searchmatch">r</span>, theta=0.f; float step = 2*PI/NUM_PTS; float s, <span class="searchmatch">c</span>; while(theta < 2*PI) { s = sin(theta); <span class="searchmatch">c</span> = cos(theta); <span class="searchmatch">r</span> = sqrt(s * <span class="searchmatch">c</span> / (pow(s,4) - pow(<span class="searchmatch">c</span>,4)));...