engineerjoe440 / ElectricPy

Electrical Engineering Formulas in Python
https://electricpy.readthedocs.io/en/latest/
MIT License
86 stars 16 forks source link

Add Examples to `electricpy.tcycles` #54

Closed engineerjoe440 closed 2 years ago

engineerjoe440 commented 2 years ago

The tcycles function is a relatively simple one, but could benefit from having examples right in the code.

It could, quite simply, be:

Examples
--------
>>> import electricpy as ep
>>> ep.tcycles(1, freq=60)
0.01666667
>>> ep.tcycles(1, freq=50)
0.02

At the same time, it would also be worth clarifying the units in which the time is returned. I seem to recall it as seconds, but may need some clarification there.

image