In[]:=
Clear["Global`*"]
In[]:=
tlim=6;v[t_]:=
i[t_]:=
p[t_]:=v[t]i[t]w[τ_]:=p[t]t//N
|
|
τ
∫
0
Plot the voltage, current, power and energy
In[]:=
p1=Plot[v[t],{t,0,tlim},PlotLabel->Style["v(t)",12],ImagePadding->25,PlotRangeAll];p2=Plot[i[t],{t,0,tlim},PlotLabel->Style["i(t)",12],ImagePadding->25,PlotRangeAll];p3=Plot[p[t],{t,0,tlim},PlotLabel->Style["p(t)",12],ImagePadding->35,PlotRangeAll];p4=ListPlot[Table[w[τ],{τ,0,tlim,tlim/100}],PlotLabel->Style["w(t)",12],Filling->Axis,TicksAutomatic];GraphicsGrid[{{p1},{p2},{p3},{p4}},FrameAll,ImageSize->400]
Out[]=