Skip to content

Commit 62ef7ef

Browse files
committed
Grammar fix
Edited the fival stability check function such that the error message grammatically accounts for one or multiple poles in the right half of the compley plane
1 parent a0d26bf commit 62ef7ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

control/timeresp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ def fival(sys, forcing="step", input=1, output=1, stabilityCheck=False, precisio
932932
if stabilityCheck:
933933
p = np.real(pole(cleaned_sys))
934934
if len(p[p > 0]) != 0:
935-
return print("Unstable system due to ", len(p[p > 0]), " poles in the right half of the complex plane")
935+
return print("Unstable system due to ", len(p[p > 0]), " pole(s) in the right half of the complex plane")
936936
if len(p[p == 0]) > 1:
937937
return print("Unstable system due to ", len(p[p == 0]), " poles at the origin")
938938
if forcing != "step":

0 commit comments

Comments
 (0)