Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

7/5/2020 My Jupyter Notebook on IBM Watson Studio

Final Exam "My Jupyter Nootbook on IBM Watson


Studio"
Engr. Muhammad Umair

Project Manager at Qualtech NDE

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

Series RLC Circuit impedence calculator

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))

print("Total Circuit Impedence value is:",Z)

Total Circuit Impedence value is: 1544.096690324702

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

Vlue of Total impedance *(Z)

Component Name Symbol Unit Value

Resistance R Ohm 250

Capacitor C Farad 1.5uF

Inductor L Henry 650mH

Note This software code is computing Series RLC Circuit only. For Parallel and combination
circuit code must be modified.

Download this code via my GitHub (https://github.com/EngineerMuhammadUmair/Data-Science-Exam)

https://dataplatform.cloud.ibm.com/data/jupyter2/runtimeenv2/v1/wdpx/service/notebook/conda2py36603a464c08c8401fa4a93671887b608d/dsxj… 3/3

You might also like