summaryrefslogtreecommitdiff
path: root/671/CH2/EX2.39/2_39.sce
diff options
context:
space:
mode:
Diffstat (limited to '671/CH2/EX2.39/2_39.sce')
-rwxr-xr-x671/CH2/EX2.39/2_39.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/671/CH2/EX2.39/2_39.sce b/671/CH2/EX2.39/2_39.sce
new file mode 100755
index 000000000..dfcf4a112
--- /dev/null
+++ b/671/CH2/EX2.39/2_39.sce
@@ -0,0 +1,12 @@
+function p=parallel(r1,r2)
+ p=r1*r2/(r1+r2)
+endfunction
+
+R1=parallel(1,3)
+
+//convert current source to voltage
+V=20/1000*2000
+I=(40-8)/(2+0.75)
+
+Pr=8*I
+disp(Pr) \ No newline at end of file