summaryrefslogtreecommitdiff
path: root/620/CH15/EX15.7/example15_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '620/CH15/EX15.7/example15_7.sce')
-rw-r--r--620/CH15/EX15.7/example15_7.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/620/CH15/EX15.7/example15_7.sce b/620/CH15/EX15.7/example15_7.sce
new file mode 100644
index 000000000..5184be678
--- /dev/null
+++ b/620/CH15/EX15.7/example15_7.sce
@@ -0,0 +1,11 @@
+v=3.5;
+i=15;
+disp("Part a");
+vp=2*sqrt(2)*v;
+disp("the peak-to-peak voltage (in V) across the resistor is"); disp(vp);
+disp("Part b");
+im=sqrt(2)*i;
+disp("the peak current (in mA) throught the resistor is");disp(im);
+disp("Part c");
+r=v/(i/1000);
+disp("the resistance (in Ω) is"); disp(r); \ No newline at end of file