Server Side Programming Articles

Page 15 of 2109

Digital Band Pass Butterworth Filter in Python

Niharika Aitam
Niharika Aitam
Updated on 27-Mar-2026 2K+ Views

A Band Pass Filter is a filter that passes frequencies within a specific range and rejects frequencies outside this range. The Butterworth band pass filter is designed to have the flattest possible frequency response in the pass band, making it ideal for applications requiring minimal ripple. Filter Specifications The following specifications define a typical digital band pass Butterworth filter: Sampling rate: 40 kHz Pass band edge frequencies: 1400 Hz to 2100 Hz Stop band edge frequencies: 1050 Hz to 2450 Hz Pass band ripple: 0.4 dB Minimum stop band attenuation: 50 dB Implementation Steps ...

Read More

Differentiate Hermite series and multiply each differentiation by scalar using NumPy in Python

Niharika Aitam
Niharika Aitam
Updated on 27-Mar-2026 164 Views

The Hermite_e series (probabilist's Hermite polynomial) is a mathematical function used in quantum mechanics and probability theory. NumPy provides the hermite.hermder() function to differentiate Hermite series and multiply each differentiation by a scalar value. Hermite_e Series Formula The Hermite_e polynomial is defined as: H_n(x) = (−1)^n e^(x²/2) d^n/dx^n(e^(−x²/2)) Where: H_n(x) is the nth Hermite polynomial of degree n x is the independent variable d^n/dx^n denotes the nth derivative with respect to x Syntax The polynomial.hermite.hermder() function syntax is: numpy.polynomial.hermite.hermder(c, m=1, scl=1, axis=0) Parameters: c − Array ...

Read More

Difference between casefold() and lower() in Python

Pranavnath
Pranavnath
Updated on 27-Mar-2026 958 Views

Python provides two similar string methods for converting text to lowercase: casefold() and lower(). While they appear similar, they handle Unicode characters differently, making each suited for specific use cases. Understanding casefold() The casefold() method performs aggressive case folding by converting characters to lowercase and normalizing special Unicode characters. This makes it ideal for case-insensitive comparisons across different languages. Example text = "Déjà Vuß" result = text.casefold() print(result) déjà vuss Notice how the German ß character is converted to "ss" for more accurate comparison. Understanding lower() The lower() ...

Read More

Python calendar module : monthdays2calendar() method

Pranavnath
Pranavnath
Updated on 27-Mar-2026 389 Views

The Python calendar module provides various methods for working with dates and calendars. The monthdays2calendar() method is particularly useful for generating structured calendar layouts that include both day numbers and their corresponding weekday information. What is monthdays2calendar()? The monthdays2calendar() method returns a matrix representing a month's calendar where each day is paired with its weekday number. Unlike monthcalendar() which returns only day numbers, this method provides tuples of (day, weekday) for each position in the calendar grid. Syntax calendar.Calendar().monthdays2calendar(year, month) Parameters year − The year as a four-digit integer month − ...

Read More

Different ways to access Instance Variable in Python

Niharika Aitam
Niharika Aitam
Updated on 27-Mar-2026 808 Views

Instance variables represent the state or attributes of an object in Python. Each instance of a class can have its own set of instance variables with unique values. These variables are defined within class methods and remain accessible throughout the instance's lifespan. Python provides several ways to access instance variables, each serving different purposes and use cases. Let's explore the most common approaches ? Using Dot Notation The most straightforward way to access instance variables is using dot notation. This method directly accesses the variable through the instance name ? instance.variable_name Where instance ...

Read More

Different ways of sorting Python Dictionary by Keys

Niharika Aitam
Niharika Aitam
Updated on 27-Mar-2026 248 Views

Sorting refers to the technique of arranging elements in a defined order. Python provides several methods to sort dictionary keys. This article covers the most common approaches for sorting dictionaries by their keys. Using sorted() Function The sorted() function sorts elements in iterable data structures and returns a new sorted list. For dictionaries, it can sort the keys alphabetically ? data = {"Name": ["John", "Alice", "Bob"], "Age": [25, 30, 35], "City": ["NYC", "LA", "Chicago"]} print("Original dictionary:", data) ...

Read More

Different Input and Output Techniques in Python3

Niharika Aitam
Niharika Aitam
Updated on 27-Mar-2026 585 Views

Input and Output are essential operations in programming that allow users to interact with programs. Input refers to data provided to the program from external sources, while output is how we display processed results. Python offers various techniques for handling input and output operations. Input Techniques Python provides several methods to receive input data from different sources. Standard Input Standard input captures user data through the keyboard using the input() function ? name = input("Enter your name: ") age = input("Enter your age: ") print(f"Hello {name}, you are {age} years old!") ...

Read More

What are the important features of the seaborn library?

Niharika Aitam
Niharika Aitam
Updated on 27-Mar-2026 921 Views

Seaborn is a powerful Python data visualization library built on top of Matplotlib. It provides a high−level interface for creating visually appealing and informative statistical graphics with minimal code. Built−in Themes and Aesthetics Seaborn comes with built−in themes that enhance the overall look of plots. It provides different themes such as "darkgrid", "whitegrid", "dark", "white" and "ticks". Example import seaborn as sns import matplotlib.pyplot as plt import numpy as np # Generate sample data data = np.random.randn(100) # Set different themes themes = ['darkgrid', 'whitegrid', 'dark', 'white'] for theme in themes: ...

Read More

What are the prerequisites of the seaborn library?

Niharika Aitam
Niharika Aitam
Updated on 27-Mar-2026 355 Views

Seaborn is a powerful Python visualization library that builds upon matplotlib to create statistical plots with high-level APIs. Before diving into seaborn, you need foundational knowledge in several key areas. Technical Prerequisites You should have basic computer programming knowledge and familiarity with programming terminology. Understanding fundamental coding concepts and computer operating skills are essential for working effectively with seaborn. Python Programming Fundamentals Python proficiency is the most critical prerequisite for seaborn development ? Core Python Skills: Understanding variables, data types, loops, functions, and object-oriented programming concepts Syntax Mastery: Familiarity with Python's indentation-based syntax and ...

Read More

What is Seaborn and why should we use seaborn?

Niharika Aitam
Niharika Aitam
Updated on 27-Mar-2026 392 Views

Seaborn is a powerful Python data visualization library built on top of Matplotlib. It provides a high-level interface for creating attractive and informative statistical graphics, making it easier to explore and understand data patterns. What is Seaborn? Seaborn is an open-source Python library designed specifically for statistical data visualization. It integrates seamlessly with pandas DataFrames and NumPy arrays, offering beautiful default styles and color palettes that make your plots publication-ready with minimal code. Key Features Built-in statistical plotting functions Beautiful default themes and color palettes Seamless integration with pandas DataFrames High-level interface for complex visualizations ...

Read More
Showing 141–150 of 21,090 articles
« Prev 1 13 14 15 16 17 2109 Next »
Advertisements