urbanij / bodas

Asymptotic Bode plots

Home Page:http://pypi.org/project/bodas

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bodas

Downloads

Asymptotic Bode plots in Python.

Installation

pip install bodas

Simple usage example

Binder

In [1]: import bodas 

In [2]: import sympy                # import [SymPy](https://www.sympy.org) the Python 
                                    # library for symbolic mathematics

In [3]: s = sympy.Symbol('s')       # define `s` as symbol

In [4]: H = (1+s/23)/(1+s/123)**2   # assign to `H` the function you want to plot

In [5]: sympy.pretty_print(H)
  s
  ── + 1
  23
──────────
         2s     ⎞
⎜─── + 1⎟
⎝123In [6]: bodas.plot(H)               # call the `plot` function defined in the bodas library

Contributing

Yes, please. A good place to start is checking out the open issues.

About

Asymptotic Bode plots

http://pypi.org/project/bodas

License:MIT License


Languages

Language:Python 100.0%