Learn Python in Malayalam | Chapter 14 | How to solve differentiation in python

 


This is the 14th video on Learn python in Malayalam. This video clearly explains below topics,

use the below time link to skip to the specific topics


Topics covered in this video

Chapter 13 assignment discussion - 00:31

differentiation in python - 01:16

power rule  - 01:31

product rule - 03:36

multi-variable function - 05:10

first order differential equation response - 07:19

chapter 14 assignment - 11:09

 


Program used 

# Progra for power & product rule

import sympy as sym

x = sym.Symbol('x')

f = x**5+3*x

# f = ((x**2)+1)*sym.cos(x)

f_prime = sym.diff(f)

print(f_prime)


# program for multi variable function

import sympy as sym

x,y = sym.symbols('x y')

f = (x**4)*y

f_prime = sym.diff(f,y)

print(f_prime)


#program fro first order differential equation

import numpy as np

from scipy.integrate import odeint

import matplotlib.pyplot as plt

 

# function that returns dx/dt

def model(x,t):

    k = .5

    dxdt = -k * x

    return dxdt

 

# initial condition

x0 = 5

 

# time points

t = np.linspace(0,20)

 

# solve ODE

x = odeint(model,x0,t)

 

# plot results

plt.plot(t,x,label="K=0.5")

plt.title("First order Differential equation response")

plt.xlabel('time')

plt.ylabel('x')

plt.legend()

plt.show()


For more check out here : https://iammanuprasad.blogspot.com/



Learn Python in Malayalam Playlist: 

https://www.youtube.com/playlist?list=PLmKq-kgKY8uZya3cwcX6otT61NPHXbTK0


Chapter 1 -  https://youtu.be/WiyQ8wTsRO0

Introduction to programming

Introduction to Python

Introduction to Google Co-lab

How to setup Google Co-lab


Chapter 2 -  https://youtu.be/YFngtW42Mls

Python Identifiers

Lines and Indentation

Multi-Line Statements


Chapter 3 - https://youtu.be/gxalG8Aps0A

Quotation in python

Comments in python

Assigning values to variable


Chapter 4 - https://youtu.be/AaEL_f2RHIk

Data types

Numbers

Strings


Chapter 5 - https://youtu.be/irND35-6BZ0

Data types

Lists

Tuple

Dictionary


Chapter 6 - https://youtu.be/MRfg2QZBHvE

Decision making

if condition

if .. else condition

Nested if


Chapter 7 - https://youtu.be/VYXndepcTCM

Loops in Python

while loop

for loop

nested loop


Chapter 8 - https://youtu.be/d7Y2D9H4u7c

Functions in python

arguments in function

Multiple arguments in function

Arbitrary arguments in function

Return value in function


Chapter 9 - https://youtu.be/hFOTKyYCkdw 

Classes in python

Defining a class

Creating an object

Constructors in python


Chapter 10 - https://youtu.be/w-_x2vfpJk0

Matrix in python

Defining matrix in python

Matrix addition

Matrix multiplication

Transpose of a matrix

Inverse of matrix

Rank & eigen values of matrix


Chapter 11 - https://youtu.be/-7DB7OEenms

Plotting in Python

  Line Plot

  Stem Plot

  Bar Plot

  Scatter Plot

  Box Plot

  Histogram

  Multiple Plot, Subplot, plot within plot


Chapter 12 - https://youtu.be/aID_Dlx-oys 

File handling in python

  Generate file data 

  Save the data in a variable

  write data to a csv file

  read from the csv file

  plotting the data from the scv file

  standard deviation & mean of data

  location of the saved file 


Chapter 13 - https://youtu.be/zk6Fcs-NY6I

  System linear equation solution

  Example with explanation

  Program for solving linear equation


If you like my video please subscribe my channel and share


Important links & key words


https://www.python.org/

Google COLAB


Music: https://www.bensound.com

Reff : https://www.tutorialspoint.com/python/python_variable_types.htm 

https://www.w3schools.com/

https://towardsdatascience.com/taking-derivatives-in-python-d6229ba72c64


No comments:

Post a Comment

Signals & System Lect 15 | Stable & Unstable Systems | Solved examples

  ECT 204 SIGNALS AND SYSTEMS Topics covered  00:00 - Introduction to Stable & unstable Systems 01:08 - BIBO criteria 03:38 Problem No 1...