- Видео 171
- Просмотров 264 069
PANKAJ DUMKA
Индия
Добавлен 1 дек 2013
By Pankaj Dumka
Assistant Professor Jaypee University of Engineering and Technology
Assistant Professor Jaypee University of Engineering and Technology
using eval() function
In this video I have explained that how to use eval function to evaluate an expression which has been passed as a list. Also, conversation from string to tuple or list is demonstrated using this function.
Просмотров: 53
Видео
String header file and functions
Просмотров 262 месяца назад
In this video I have explained the string library and some of it's functions.
Strings in C (while loop to print string)
Просмотров 272 месяца назад
In this video it has been explained that how to use while loop to print a string.
Strings in C (gets and puts functions)
Просмотров 252 месяца назад
In this video I have explained that how to use gets and puts functions to handle strings in C.
String declaration and initialization
Просмотров 82 месяца назад
In this video I have demonstrated that how to declare and initialize a string.
Strings in C (Introduction)
Просмотров 142 месяца назад
In this video I have explained that what are strings, how to declare and initialize them, and how to use printf and scanf functions with them.
Switch-Case
Просмотров 142 месяца назад
In this video I have explained that how to make menu driven programs using switch-case.
Break Statement
Просмотров 52 месяца назад
In this video I have explained that how to use break statement in C programming.
Binary Search
Просмотров 102 месяца назад
In this video I have explained that how to search an element in a sorted array using Binary Search.
Linear search
Просмотров 72 месяца назад
In this video I have explained that how to perform linear search in an array.
Pointer Problem Session-2(multi-return functions)
Просмотров 22 месяца назад
In this video I have explained that how to make functions which are capable of returning more than one value with the help of pointers and call by reference.
Pointer Problem Session-1(Swapping numbers)
Просмотров 62 месяца назад
In this video I have explained that how to swap two numbers using a function which is having pointers as an argument..
Pointers in C
Просмотров 52 месяца назад
In this video I have explained about points i.e., how to declare them, how initialize them and how to use them.
Address of a variable and indirection operator
Просмотров 22 месяца назад
In this video I have discussed about the address of a variable, how to get it, and the indirection operator.
Recursive function
Просмотров 42 месяца назад
In this video I have explained that how to make a recursive function, i.e., a function which calls itself.
Function Problem Session-3 (Numerical Differentiation-II)
Просмотров 62 месяца назад
Function Problem Session-3 (Numerical Differentiation-II)
Function Problem Session-2 (Numerical Differentiation-I)
Просмотров 72 месяца назад
Function Problem Session-2 (Numerical Differentiation-I)
Function Problem Session-1 (Evaluating Sin(X))
Просмотров 82 месяца назад
Function Problem Session-1 (Evaluating Sin(X))
2D Array Problem Session-2 (Matrix Multiplication)
Просмотров 72 месяца назад
2D Array Problem Session-2 (Matrix Multiplication)
2D Array Problem Session-1 (Matrix Addition and Subtraction)
Просмотров 82 месяца назад
2D Array Problem Session-1 (Matrix Addition and Subtraction)
1D Array Problem Session-4 (First order ODE)
Просмотров 182 месяца назад
1D Array Problem Session-4 (First order ODE)
1D Array Problem Session-3 (Cross product of vectors)
Просмотров 162 месяца назад
1D Array Problem Session-3 (Cross product of vectors)
1D Array Problem Session-2 (Dot product of vectors)
Просмотров 172 месяца назад
1D Array Problem Session-2 (Dot product of vectors)
1D Array Problem Session-1 (Vector Addition and Subtraction)
Просмотров 112 месяца назад
1D Array Problem Session-1 (Vector Addition and Subtraction)
Declaration and Initialization of Array
Просмотров 82 месяца назад
Declaration and Initialization of Array
Shockingly bad sound quality
thankyou so much sir,your videos are really helping me a lot😊. wishing you all the best 😇
Pease upload other lectures also sir 🙏🏻🙏🏻
Don't have words to describe the quality of lectures
These are really brilliant lectures
Greetings Sir. In this Playlist of C programming the audio in most of the videos gets echoed or sometimes very low. Even if we try to go with the max audio on our device the audio is still not clearly audible. Please can you do the suitable changes to make the audio clearer from your end
Thank you for your feedback. Now it will be difficult to make new videos, but I will try in the future videos to correct this error.
Very Informative 👌
Thank you Swapnil bhai
You always made our learning easy sir whenever we found it difficult.
Thank you Gaurav
Thankyou sooo much , i was searching for it since 1 week , you nailed it , exactly what i want find
Really superb sir
super explanation sir
ive been looking for a course made by and for mechanical engineers for a long time. thank you for your time, effort and initiative mr. rankaj. much respect and love from turkey
Thank you for your videos Pankaj, they are very interesting.
Amazing content
Thank you!
best teacher
Nice explanation sir
at 5:12 there were three integrals in the volumetric integral due to integral along x, y and z directions?
Thank you so much sir
Can we go from one coordinate system to another, by using vector form, in case of acceleration and vorticity?
WORLD NEED SUCH TEACHERS. WELL EXPLAINED. YOU REALLY VERY INSPIRING PROF.
Sir how to use special symbols in Anaconda Spyder or IDLE python?
Ravi, we can use special symbols as variables in Jupyter only. I think that on other platforms may be this facility is not there.
wow, you have made my day . i enjoyed it . thank you very much.
thanks a lot sir for this amazing lectures
رايق
Great playlist
Could you please upload part 2 and questions Awesome lectures..
Can you write here the last term of equation and described what it is mean please
awesome
thank you so much sir
Good sir 😃
Thanku sir ,very helpfull vedio ....
Thank you sir
Thank you so much. Been searching for integral form of continuity derivation.
Function: function [y]=pend_fn(t,theta1) L=1.0 m=1.0 b=0.05 g=9.81 theta=theta1(1) omega=theta1(2) [y]=[omega; (-b/m)*omega-(g/L)*sin(theta)] end Main Program: clear all close all clc t=[0 60] y0=[0.0,3.0] % Solving ODE [t,sol]=ode45('pend_fn',t,y0) %X and Y location of bob x=sin(sol(:,1)) y=-cos(sol(:,1)) % Plotting results figure(1) plot(t,sol(:,1),'r-') hold on plot(t,sol(:,2),'b-') xlabel('time') legend('angle','angular velocity') hold off figure(2) hold on plot(x,y,'ko') xlabel('x') ylabel('y') hold off % for animation figure(3) for i=1:length(t) i clf plot([-1.5,1.5],[0,0],'b-','LineWidth',10) hold on plot([0,0],[0,-1.5],'b--') hold on plot(x,y,'r--') hold on plot([0,x(i)],[0,y(i)],'k-','LineWidth',3) plot(x(i),y(i),'r-o','markersize',30,'markerfacecolor','r') plot(x(i),y(i),'r--') axis([-1.5 1.5 -1.5 0]) %pause(0.1) %if i~=length(t) %clf %end movieVector(i)=getframe; end myWriter=VideoWriter('Pendulum'); %myWriter.FrameRate=10; % Frame per second open(myWriter); writeVideo(myWriter,movieVector); close(myWriter);
Will be waiting for next video.Thanks.
Python Code: from pylab import * ℓ=0.1 n=14 Δx=ℓ/(n-1) x=linspace(0,ℓ,n) T=zeros(n) # Boundary Conditions T[0]=100.0 T[-1]=50.0 T_old=T.copy() error=1 ϵ=1.E-6 count=0 while error>ϵ: for i in range(1,n-1): T[i]=(T[i+1]+T[i-1])/2.0 error=sum(abs(T-T_old)) figure(1) semilogy(count,error,'ko') T_old=T.copy() count=count+1 figure(2) plot(x,T,'r-o') xlabel('Length') ylabel('T') show()
For the Otto cycle, Thank you for sharring! code: p_min= 10**5 p_max= 20*10**5 v_max = 0.3 r=5 γ=1.4 # process1-2 p1= p_min v1= v_max v2 = v1/r c1 = p1*v1**γ ## process 2-3 p2=c1/(v2**γ) v3=v2 p3=p_max # process3-4 c2 = p3*v3**γ ## process 4-1 v4=v1 p4=c2/v4**γ ##Plotting #Process 1-2 v= linspace(v2,v1,50) p= c1/v**γ plot(v,p,'r-') #process2-3 v=zeros(50) + v2 p= linspace(p2,p3,50) plot(v,p,'b-') #process 3-4 v= linspace(v3,v4,50) p= c2/v**γ plot(v,p,'m-') #process4-1 v=zeros(50) + v1 p= linspace(p1,p4,50) plot(v,p,'g-') text(v1,p1-1500,'1',fontsize=12) text(v2-0.009,p2,'2',fontsize=12) text(v3-0.009,p3,'3',fontsize=12) text(v4,p4-1500,'4',fontsize=12)
The code is not visible to us public, So I am sharing code what I have done As per the video. p_min= 10**5 p_max= 10*10**5 v_max = 0.5 r=4 γ=1.4 ## process 1-2 p1= p_min v1= v_max v2 = v1/r c1 = p1*v1 ##process 2-3 c2 = c1*(v2**(γ-1)) p3= p_max v3= (c2/p3)**(1/γ) ##process 3-4 c3= p3*v3 ## process 4-1 c4= p1*v1**γ v4= (c4/c3)**(1/(γ-1)) ##plotting ##process 1-2 v= linspace(v1,v2,30) p= c1/v plot (v,p, 'r-') ##process2-3 v= linspace(v3,v2,30) p= c2/v**γ plot (v,p, 'b-') ##process 3-4 v= linspace(v3,v4,30) p= c3/v plot (v,p, 'k-') ## process 4-1 v= linspace(v4,v1,30) p= c4/v**γ plot (v,p, 'g-') show()
Big fan of your teaching sirr....
Sir EDD ke bhi lectures upload kir dijiye please🙏
Thank you so much sir
Python Code: from pylab import * p_min=10**5 #p_max=20*10**5 v_max=0.5 γ=1.4 r=4 rc=1.5 # Process 1-2 p1=p_min v1=v_max c1=p1*v1**γ v2=v1/r p2=c1/v2**γ # Process 2-3 p3=p2 v3=rc*v2 # Process 3-4 c2=p3*v3**γ v4=v1 p4=c2/v4**γ # Plotting Part # 1-2 v=linspace(v2,v1,50) p=c1/v**γ plot(v,p,'r-') #2-3 v=linspace(v2,v3,50) p=zeros(50)+p2 plot(v,p,'b-') # 3-4 v=linspace(v3,v4,50) p=c2/v**γ plot(v,p,'g-') # 4-1 p=linspace(p1,p4,50) v=zeros(50)+v1 plot(v,p,'m-') text(v1,p1,'1') text(v2,p2+4000,'2') text(v3,p3,'3') text(v4,p4,'4') xlabel('V') ylabel('P') show()
thank for sharing
Python Code for Otto Cycle from pylab import * p_min=10**5 p_max=20*10**5 v_max=0.3 r=5 γ=1.4 # Process 1-2 p1=p_min v1=v_max c1=p1*v1**γ v2=v1/r p2=c1/v2**γ # Process 2-3 p3=p_max v3=v2 # Process 3-4 c2=p3*v3**γ v4=v1 p4=c2/v4**γ #################### #process 1-2 v=linspace(v2,v1,50) p=c1/v**γ plot(v,p,'r-') #process 2-3 v=zeros(50)+v2 p=linspace(p2,p3) plot(v,p,'b-') #process 3-4 v=linspace(v3,v4,50) p=c2/v**γ plot(v,p,'g-') #process 4-1 v=zeros(50)+v1 p=linspace(p1,p4) plot(v,p,'m-') text(v1,p1-1000,'1',fontsize=12) text(v2-0.006,p2,'2',fontsize=12) text(v3-0.006,p3,'3',fontsize=12) text(v4,p4+1000,'4',fontsize=12) xlabel('Volume') ylabel('pressure') show()
Python Code: from pylab import * from numpy import * p_min=10**5 p_max=10*10**5 v_max=0.5 r=4 γ=1.4 # Process 1-2 p1=p_min v1=v_max v2=v1/r c1=p1*v1 # Process 2-3 c2=c1*v2**(γ-1) p3=p_max v3=(c2/p3)**(1/γ) # Process 3-4 c3=p3*v3 # Process 4-1 c4=p1*v1**γ v4=(c4/c3)**(1/(γ-1)) #################### # Plotting 1-2 v=linspace(v2,v1,30) p=c1/v plot(v,p,'r-') # Plotting 2-3 v=linspace(v3,v2,30) p=c2/v**γ plot(v,p,'b-') # Plotting 3-4 v=linspace(v3,v4,30) p=c3/v plot(v,p,'g-') # Plotting 3-4 v=linspace(v4,v1,30) p=c4/v**γ plot(v,p,'m-') xlabel('Volume') ylabel('Pressure') show()
Voice is not audible loudly
Sorry for the inconvenience. I will try to correct this issue in further.
x1=x2=0 x_1g=x1 x_2g=x2 count=0 error=1 ϵ=1.E-6 while error>ϵ: x1=(5-2*x2)/3 x2=(4*x1-7)/9 error=abs(x1-x_1g)+abs(x2-x_2g) print(error) x_1g=x1 x_2g=x2 count=count+1 print('Final iteration counter= ',count) print(f'x1={round(x1,2)} x2={round(x2,2)}')
Great initiative sir, waiting for the first lecture. All the best!
sir,plz try to upload videos more frequently..