summaryrefslogtreecommitdiff
path: root/2252/CH6/EX6.4/Ex6_4.sce
blob: 9b1d85eb5b054a6ffa84bb4f969d14750ff07fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

//e=100*sin(100*%pi*t)
//calculating rate of change of voltage at t=.0025 sec
t=.0025
r1=10000*%pi*cos(100*%pi*t)
mprintf("Rate of change of voltage at .0025 sec=%f V/sec\n",r1)
//calculating rate of change of voltage at t=.005 sec
t=.005
r2=10000*%pi*cos(100*%pi*t)
mprintf("Rate of change of voltage at .005 sec=%d V/sec\n",r2)
//calculating rate of change of voltage at t=.01 sec
t=.01
r3=10000*%pi*cos(100*%pi*t)
mprintf("Rate of change of voltage at .01 sec=%f V/sec\n",r3)
//error in textbook answer in first and last case