summaryrefslogtreecommitdiff
path: root/135/CH12/EX12.2/EX2.sce
diff options
context:
space:
mode:
Diffstat (limited to '135/CH12/EX12.2/EX2.sce')
-rwxr-xr-x135/CH12/EX12.2/EX2.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/135/CH12/EX12.2/EX2.sce b/135/CH12/EX12.2/EX2.sce
new file mode 100755
index 000000000..1b2b406a5
--- /dev/null
+++ b/135/CH12/EX12.2/EX2.sce
@@ -0,0 +1,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) ="); \ No newline at end of file