summaryrefslogtreecommitdiff
path: root/3835/CH1/EX1.16/Ex1_16.sce
diff options
context:
space:
mode:
Diffstat (limited to '3835/CH1/EX1.16/Ex1_16.sce')
-rw-r--r--3835/CH1/EX1.16/Ex1_16.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3835/CH1/EX1.16/Ex1_16.sce b/3835/CH1/EX1.16/Ex1_16.sce
new file mode 100644
index 000000000..c35015cf2
--- /dev/null
+++ b/3835/CH1/EX1.16/Ex1_16.sce
@@ -0,0 +1,18 @@
+clear
+//
+//given
+dv=20 //dv/dt
+c=25*(10**-6)
+//case a
+i=c*dv
+printf("\n i= %e A",i)
+//case b
+q=c*dv
+printf("\n q= %e C",q)
+//case c
+p=dv*i
+printf("\n p= %e W",p)
+//case d
+v=dv**2
+wc=(c*v)/2
+printf("\n wc= %e J",wc)