summaryrefslogtreecommitdiff
path: root/3754/CH33/EX33.2/33_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH33/EX33.2/33_2.sce')
-rw-r--r--3754/CH33/EX33.2/33_2.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3754/CH33/EX33.2/33_2.sce b/3754/CH33/EX33.2/33_2.sce
new file mode 100644
index 000000000..19fadaac6
--- /dev/null
+++ b/3754/CH33/EX33.2/33_2.sce
@@ -0,0 +1,15 @@
+clear//
+
+//Variables
+
+Vpk = 1.0 //Peak-to-peak voltage (in volts)
+Tby2 = 0.1 //Half-period (in seconds)
+tau = 0.25 //Time constant (in seconds)
+
+//Calculation
+
+Vc = 0.5 * exp(-Tby2/tau) //Output voltage (in volts)
+
+//Result
+
+printf("\n Output peak voltage is %0.1f V.",Vc)