Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

In[ ]:= ClearAll["Global`*"]

1
SSEstep[G_, s_, x_] := Limit , s  0;
1+G

1
s
SSEramp[G_, s_, x_] := Limit , s  0;
1+G

1
s2
SSEparabola[G_, s_, x_] := Limit , s  0;
1+G

0.5 0.5
- b - b2 - 4 a c - b + b2 - 4 a c
Factors[a_, b_, c_] :=  , ;
2a 2a
b
SecondOrder[a_, b_, c_] := c0.5 , 
2 c0.5

1
Power: Infinite expression encountered.
0.
Out[ ]= {0., ComplexInfinity}
2 SSE.nb

10 (s + 20) (s + 50)
Gs = ;
s (s + 25) (s + 40)
SSEstep[Gs, s, 0];
SSEramp[Gs, s, 0];
SSEparabola[Gs, s, 0];

Out[ ]= Indeterminate

s+2 s+2 s+2


In[ ]:= G1 = ; G2 = ; G3 = ;
s+5 s (s + 5) s2 (s + 5)

{{SSEstep[G1, s, 0], SSEramp[G1, s, 0], SSEparabola[G1, s, 0]},


{SSEstep[G2, s, 0], SSEramp[G2, s, 0], SSEparabola[G2, s, 0]},
{SSEstep[G3, s, 0], SSEramp[G3, s, 0], SSEparabola[G3, s, 0]}} // MatrixForm
Out[ ]//MatrixForm=
5
Indeterminate ∞
7
5
0 Indeterminate
2
5
0 0
2

In[ ]:= SSEparabola[G1, s, 0]


Out[ ]= ∞
SSE.nb 3

In[ ]:= (*SSE 5u(t)*)


5000
Gs = ;
s (s + 75)
Print["SSE 5u(t)=", 5 * SSEstep[Gs, s, 0]]
Print["SSE 5tu(t)=", 5 * SSEramp[Gs, s, 0]]
Print"SSE 5t2 u(t)=", 5.0 * SSEparabola[Gs, s, 0]
SSE 5u(t)=0
3
SSE 5tu(t)=
40
2
SSE 5t u(t)=Indeterminate

In[ ]:= {ωn, ξ} = SecondOrder[1, 75, 5000]


Out[ ]= {70.7107, 0.53033}

In[ ]:= ω
Out[ ]= 1.73205

G (s)
1 + G (s)
5000
Out[ ]=
5000
s (75 + s) 1 + 
s (75+s)

5000
In[ ]:= Simplify 
5000
s (75 + s) 1 + 
s (75+s)

5000
Out[ ]=
5000 + 75 s + s2

ωn
s2 + 2 ξ ωn + ωn2

-ξ π 1-ξ2
In[ ]:= OverShort =  * 100
Out[ ]= 14.0128

4
In[ ]:= Ts =
ξ ωn
Out[ ]= 0.106667

In[ ]:= Print["Overshort Percentage=", OverShort, "%"]


Print["Settling Time = ", Ts, "Seconds"]
Overshort Percentage=14.0128%

Settling Time = 0.106667Seconds

You might also like