Posts

Showing posts from December, 2021

The reactance of capacitors and Inductors

Image
 The "reactanceđź‘Š" is a fancy way of saying the word "Resistance✊" for an inductor or capacitor. well we denote the symbol "X" instead of  "R" . The capacitor acts as a frequency dependent resistor in here, well the reactance of the capacitor(Xc) increases with decreasing of frequency. In math we call it as inverse relation(Xc ∝ 1/F). here in this figure we can see that "Xc"(reactance of capacitor) decreased with increasing "F". so the Xc can be expressed as  The Inductor acts as a frequency dependent resistor in here well the reactance of the inductor(X L ) increases with Increasing of frequency. in math we call it as proportional relation(X L  ∝ F). here in this figure we can see that "X L "(reactance of inductor) decreased with decreasing "F". Or increase as increase in frequency. so the X L can be expressed as

HOW TO WRITE A CLASS OBJECT IN PYTHON

Image
The one way to get started with  the object oriented programming in python is to get started with the " creating a class object and using it". things u need to get started: 1. Latest version of python3  u can get that from here  2. An ide or u can use python default ide which it comes with! that's all u need to get started. here we are gonna make code for math function called standard scaler(for scaling data). you make one for anything u want I'm just a math guy!!  so the math formula for standard scaler is : hence we start with a class object called Scale , the class object doesn't need any input variable for it's name we do it in functions inside of it. The first function inside of class object should be a __init__() " function it must be..! next, an __init__() function should always starts with a " self " variable and other as   follows  by as other variables u may like... class Scale:         def _init_ ( self , data ):              s