Skip to content

Commit 6cfd466

Browse files
committed
output more readable
1 parent cec6b5c commit 6cfd466

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

control/lti.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,19 +380,19 @@ def damp(sys, doprint=True):
380380
--------
381381
>>> G = ct.tf([1], [1, 4])
382382
>>> wn, zeta, poles = ct.damp(G)
383-
Eigenvalue (pole)___ Damping___ Frequency_
384-
-4 1 4
383+
Eigenvalue (pole) Damping Frequency
384+
-4 1 4
385385
386386
"""
387387
wn, zeta, poles = sys.damp()
388388
if doprint:
389-
print('Eigenvalue (pole)___ Damping___ Frequency_')
389+
print(' Eigenvalue (pole) Damping Frequency')
390390
for p, z, w in zip(poles, zeta, wn):
391391
if abs(p.imag) < 1e-12:
392-
print("%10.4g %10.4g %10.4g" %
392+
print(" %10.4g %10.4g %10.4g" %
393393
(p.real, 1.0, w))
394394
else:
395-
print("%10.4g%+10.4gj %10.4g %10.4g" %
395+
print("%10.4g%+10.4gj %10.4g %10.4g" %
396396
(p.real, p.imag, z, w))
397397
return wn, zeta, poles
398398

0 commit comments

Comments
 (0)