Professional Documents
Culture Documents
170b HW 2 Final
170b HW 2 Final
Shaun Panjabi
75387943
Part A) Differential Eqns
Finding our Vc[t] with regular Unit Step:
Clear@"Global`*"D
R = 1000; c = 1 * 10-12 ;
Vc@tD . DSolveB:Vc '@tD +
5 * UnitStep@tD
Vc@tD
Rc
Rc
Simplify
Out[536]=
1010 * t
Vc@tD
In[540]:=
Rc
F@t_D = Vc1@@1DD;
Out[540]=
Out[542]=
99Vc@tD 10 -1 000 000 000 t I1 - 1 000 000 000 t + 1 000 000 000 1 000 000 000 t tM==
9VcA5. 10-10 E 1.06531=
r*c
r*c
Out[543]=
==F
99Vc@tD
t0
-1. t
True
1
2
==
170b hw 2 final.nb
In[568]:=
Clear@"Global`*"D
R = 1000; c = 1 * 10-12 ;
Vs@t_D :=
t 0.5 * 10-9
DSolveB:Vc '@tD +
Vs@tD
170b hw 2 final.nb
In[808]:=
Clear@"Global`*"D
Needs@"PlotLegends`"D
r = 1000;
c = 1 * 10-12 ;
, Vc@0D == 0>, Vc@tD, 9t, 0, 0.5 * 10-9 =F;
r*c
r*c
Vc2@tD
5
eqn2 = NDSolveB:Vc2 '@tD +
Vc@tD
p4 =
PlotA5 * UnitStepAt - 0.5 * 10-9 E, 9t, 0.5 * 10-9 , 5 * 10-9 =, PlotStyle 8Green, Thick<E;
ShowLegendB
::8Style@"", 12, BlueD, "t<t1=0.5 ns"<, 8Style@"", 12, RedD, "t>t1=0.5 ns"<,
:Style@"", 12, PurpleD, "10t
Vc HVL
5
t<t1=0.5 ns
4
t>t1=0.5 ns
3
Out[818]=
Vc
10t
S
When t-0.5*10-9
1. 10-9
2. 10-9
3. 10-9
4. 10-9
tHsL
5. 10-9
170b hw 2 final.nb
Clear@"Global`*"D
t = t . SolveA5 - 6.487 -1 000 000 000 t 0.5, tE;
Part D) Convolution
In[505]:=
Clear@"Global`*"D
r = 1000;
c = 1 * 10-12 ;
"Vc@tD = " B
-J
IntegrateB1010 * *
Out[508]=
t-
r*c
-J
-9
10
t-
r*c