summaryrefslogtreecommitdiff
path: root/135/CH12/EX12.2/EX2.sce
blob: 1b2b406a52622ab7003679c311d00f4bc24ecce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Example 12.2: Designing a Wein Bridge Oscillator
clc, clear
fo=2e3; // in hertz
R=10; // in kilo-ohms
C=1/(2*%pi*fo*R*1e3); // in farads
C=C*1e9; // in nano-farads
disp(R,"R1 (kΩ​) =");
disp(R,"R2 (kΩ​) =");
disp(2*R,"R3 (kΩ​) =");
disp(R,"R4 (kΩ​) =");
disp(C,"C1 (nF) =");
disp(C,"C2 (nF) =");