Professional Documents
Culture Documents
My Jupyter Notebook On IBM Watson Studio
My Jupyter Notebook On IBM Watson Studio
I got motivated in learning Data science because it helps in analyzing raw data and to convert it into usable
information. In future, I would like to embed the knowledge learned from this course into developing a
computer software to analyze image based data which could predict life-cycle of any machinery
The code below calculates the total impedance of the following circuit
https://dataplatform.cloud.ibm.com/data/jupyter2/runtimeenv2/v1/wdpx/service/notebook/conda2py36603a464c08c8401fa4a93671887b608d/dsxj… 1/3
7/5/2020 My Jupyter Notebook on IBM Watson Studio
In [31]:
import math
R=250
L=0.65
C=0.0000015
pi=3.141
f=60
xl=0
xc=0
sub=0
Z=0
xl=(2*pi*f*L)
xc=(1/(2*pi*f*C))
sub=xl-xc
Z=math.sqrt((R**2)+(sub**2))
Before Total Impedence Calculaion capacitive and inductive reactance should be calculated and their
values are
XC (Capacitive Reactance)
In [22]:
print(xc)
1768.7219215394955
XL (Inductive Reactance)
In [21]:
print(xl)
244.99800000000002
https://dataplatform.cloud.ibm.com/data/jupyter2/runtimeenv2/v1/wdpx/service/notebook/conda2py36603a464c08c8401fa4a93671887b608d/dsxj… 2/3
7/5/2020 My Jupyter Notebook on IBM Watson Studio
Input Parameters
1. Frequency
2. Value of Resistance
3. Value of Capacitance
4. Value of Inductance
Constant(s)
Pi number
Output
Note This software code is computing Series RLC Circuit only. For Parallel and combination
circuit code must be modified.
https://dataplatform.cloud.ibm.com/data/jupyter2/runtimeenv2/v1/wdpx/service/notebook/conda2py36603a464c08c8401fa4a93671887b608d/dsxj… 3/3