File:Bode Plot of Practical Differentiator when RC1=R1C.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 900 × 540 pixels, file size: 96 KB)

Captions

Captions

Bode Plot of Practical Differentiator when RC1=R1C

Summary[edit]

Description
English: Bode Plot of Practical Differentiator when RC1=R1C
Date
Source Own work
Author Kjerish

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Source[edit]

Python source :

import numpy as np
import matplotlib.pyplot as plt

# Generating angular frequency values
omega = np.logspace(-2, 2, 400)  # for a wider frequency range in this example

# Dummy values for omega1 (ω1)
omega1 = 1

# Calculating the plateau height based on the slopes and cutoff frequencies
plateau_height = 10 * np.log10(omega1)

magnitude = np.piecewise(omega, [omega < omega1, omega > omega1], 
                         [lambda omega: plateau_height + 20 * np.log10(omega/omega1), 
                          lambda omega: plateau_height + 20 * np.log10(omega1/omega)])

plt.figure(figsize=(10,6))
plt.semilogx(omega, magnitude, 'k')
plt.title("Bode Plot (Frequency Response)")
plt.xlabel("ω (angular frequency)")
plt.ylabel("|Vo/Vi| dB")
plt.grid(which='both', axis='both')
plt.ylim(-30, plateau_height+10)  # Adjusting y limits for better visibility
plt.axhline(0, color='black',linewidth=0.5)

# Dashed lines for omega1
plt.axvline(omega1, color='black', linestyle='--', linewidth=1)

# Dashed line for the plateau height and its label
plt.axhline(plateau_height, color='black', linestyle='--', linewidth=1)
plt.annotate('|R/R₁|', xy=(1e-2, plateau_height+2), horizontalalignment='left')

# Annotations for slopes and cutoff frequencies
plt.annotate('20dB/dec', xy=(omega1/3.5, plateau_height-10), horizontalalignment='right')
plt.annotate('-20dB/dec', xy=(omega1*3.5, plateau_height-10), horizontalalignment='left')
plt.annotate('ω1', xy=(0.85*omega1, -25), horizontalalignment='center')

plt.tight_layout()
plt.savefig("Bode Plot of Practical Differentiator when RC1=R1C.pdf")

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current17:32, 13 October 2023Thumbnail for version as of 17:32, 13 October 2023900 × 540 (96 KB)Kjerish (talk | contribs)Uploaded own work with UploadWizard

File usage on other wikis

The following other wikis use this file:

Metadata