diff options
Diffstat (limited to '3835/CH2/EX2.4/Ex2_4.sce')
-rw-r--r-- | 3835/CH2/EX2.4/Ex2_4.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3835/CH2/EX2.4/Ex2_4.sce b/3835/CH2/EX2.4/Ex2_4.sce new file mode 100644 index 000000000..90aa8ed6c --- /dev/null +++ b/3835/CH2/EX2.4/Ex2_4.sce @@ -0,0 +1,16 @@ +clear +// +vs=12 +rs=0.3 +il=10 +//case a +p=vs*il +printf("\n power= %0.1f W",p) +//case b +power=il**2*rs +printf("\n power dissipated= %0.1f W",power) +//case c +totpow=(vs-il*rs)*il +printf("\n total power supplied by practical source is= %0.1f W",totpow) +i=vs/rs +printf("\n current source= %0.1f A",i) |