diff options
Diffstat (limited to '620/CH15/EX15.9/example15_9.sce')
-rw-r--r-- | 620/CH15/EX15.9/example15_9.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/620/CH15/EX15.9/example15_9.sce b/620/CH15/EX15.9/example15_9.sce new file mode 100644 index 000000000..4b5f0a59f --- /dev/null +++ b/620/CH15/EX15.9/example15_9.sce @@ -0,0 +1,13 @@ +r1=4.7;
+r2=3.3;
+i=50;
+disp("Part a");
+i2=i*r1/(r1+r2);
+disp("current (in mA) in the 3.3 kΩ resistor is"); disp(i2);
+disp("Part b");
+v=i2*r2;
+vp=2*sqrt(2)*v;
+disp("peak-o-peak voltage (in V) indicated by an oscilloscope across the source is");disp(vp);
+disp("Part c");
+p=v*i/1000;
+disp("the totalpower dissipation (in W) in the two resistors is");disp(p);
\ No newline at end of file |