Skip to content

Commit 6cfd466

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy