summaryrefslogtreecommitdiff
path: root/3835/CH2/EX2.34/Ex2_34.sce
blob: abaa4c4e4d9db6f86175c41676a10872e3272cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear
//
v=120
V=200
//v=V(1-e^-5/2R)
//120=200*(1-e^-5/2R)
//applying log on both sides and solving we get R=2.72 Mohm
printf("\n R=2.72Mohm")
R=5 
tc=10
//applying in the above eqn and solving lograthmically we get t=9.16
printf("\n t=9.16 sec")