- Видео 78
- Просмотров 277 381
Shams ElFouly
США
Добавлен 31 янв 2019
Видео
Newton Raphson to Find Optimums - Python Code
Просмотров 5633 года назад
Newton Raphson to Find Optimums - Python Code
Gauss Elimination Code - ANY SIZE - Python Code
Просмотров 32 тыс.3 года назад
Gauss Elimination Code - ANY SIZE - Python Code
Gauss Elimination - 4x4 - Python Code
Просмотров 6 тыс.3 года назад
Gauss Elimination - 4x4 - Python Code
Polynomial Regression using Numpy - Python Code
Просмотров 1,1 тыс.3 года назад
Polynomial Regression using Numpy - Python Code
Polynomial Regression using Gauss Elimination - Python Code
Просмотров 1,2 тыс.3 года назад
Polynomial Regression using Gauss Elimination - Python Code
Runge Kutta Methods3rd & 4th order - Python Code
Просмотров 20 тыс.3 года назад
Runge Kutta Methods3rd & 4th order - Python Code
Runge Kutta Methods 3rd & 4th order - Concept
Просмотров 8023 года назад
Runge Kutta Methods 3rd & 4th order - Concept
Heuns, Midpoint & Ralston - Python Code
Просмотров 1,8 тыс.3 года назад
Heuns, Midpoint & Ralston - Python Code
can u please share jupiter notebook where u have written all codes of this playlist. I d love to get it , thanks for great content
How did you calculate the et numerical values
This is so helpful 😭
Dear Mr Shams! Recently, I've implemented on the Rockwell Automation Contrologix 5000 a Power Fit using Gauss Elimination Method routine based on the idea of the algorithm you have designed. I've tested my routine using some examples and it performed pretty good. So, I am contact you just to know if you have any objection if I mention your source code as reference in paper that I am submitting to a conference.
It would be my pleasure! I am glad you have found value in my video. Good luck in the conference.
THANKS MAN, YOU ARE THE GOAT
Clean Tutorial, thank you!
Obrigado
You are an W teacher my dude, congrats
share this code here please
Cool video man, appreciate the effort, keep up the good work!
sorry it should be, b1 is 20
Thank you so much :)
Excellent video. Thankyou for sharing!
CODE PLCELSE
Hurts my math brain that Excels Build in function uses round-down for non-integers.
Thanks for your great tutorial video! Could you please explain the 'not-a-knot' boundary conditions and how can we calculate it?
Thanks a lot
Thanks this has really been helpful
How do i know for a particular integration that i need that many trapezoids? I mean how do i know rhe number n?
Hello, we usually define an error tolerance and have the code loop through multiple n numbers to find which one fits our criteria. I show this in this video where I develop the python code associated to this technique. You can have the code print the n number that solved your integration. Hope this helps. ruclips.net/video/nrfbPTA9G00/видео.html
@@shamselfouly thanks it helped a lot ♥️💙
Can u write the code in the description? , pls
Hi Shams, Great series of lessons. However, please can you correct a typo in your script,... it is trivial but better correct than not. "et = abs((1.71828 - I[1, i+1]) / 1.7182) * 100" should be "et = abs((1.71828 - I[1, i+1]) / 1.71828) * 100" Best, Brendan
Excellent.... Thanks
Hi Sir, I try I've tried running the code in PyCharm, but I'm not sure if it's as shown, would you have any idea what error I'm making. Thanks for sharing. import math import matplotlib.pyplot as plt #Functions - Funções Sgma_y = lambda x,y: math.sin(x)**2*y f = lambda x: 2*math.exp{0.5*(x*math.sin(x)*math.cos(x))} #Visual (zot om Code inicial) print('x\t\t y \t\t f(x)'); print('xf\t xf'x {x,y, f(x)}) x_plot* []; y_Rx4.apperd(y); y_analytical.apperd(f(x)) * [] #Rx4 method for i in range(1, n+1): #futer's Method k1 = Sgma_y(x,y) k2 = Sgma_y(x*h/2, y * k1 * h/2) k3 = Sgma_y(x*h/2, y * k2*h/2) k4 = Sgma_y(x*h, y * k3*h) #Calculate new y estimation y* y + 1/ 6 * (k1 * 2 * k2 * 2 * k3 * k4) * h #increase x by step size to calculate next y estimate x = x + h print('Xf\t Xf \t Xf'X (x, y, f(x))) #Visualization Code x_plot.append(x); y_Kx4.append(y); y_analytical.append(f(x)) plt.plot(x_plot,y_kx4,'ro',x_plot,y_analytical) plt.xlabel('x');plt.ylabel('y') plt.legend(['kx4','Analytical'])
Is it okay for the approximate error to be more than 100%? I have such approximate error in the following problem's first iteration: 4x-1.8x^2+1.2x^3-0.3x^4=f(x)
How did you input x^2
OMGGG thank you!! I was searching for a code for so long but they were all kind of long and difficult to understand. This was so easy and helpful! You are a lifesaver
Hi! What does ea and et stands for?
ea stands for approximate error and et stands for true error
The consept was so easy to understand! Thanks!
Hye bro..can you help me check my vba script..have error
Thanks for the video!! I have a question, how can i find the inflection point of the graph?
Sir this is the Euler Forwards or Euler Backwards?
wheres the code
please you can get the code please?
Can you send me the excel please? I really need it :(
Where can I access this code?
How can I get the augmented matrix from the user as input
alreadyfind the solution, found the missing code
sorry where I can find the continuation from this tutorial, only seen up to display matrices & vector on excel spreadsheet and I search up to end if. you can provide me with the name to look for it or the link, thanks
could you please explain what ea is ? and why we say ea = Abs((xr - xi)/xr) * 100. thank you
could you put please the link of the following class, thanks for sharing the code so interesting.
Everything seems good, but how to apply this for the case where you don't know the analytical function? How would you program a numerical calculation of dydx?
simple central difference with some small perturbation h=1E-7 should be ok
My name is shams el fouly
What if you only need to swap the 2nd and 3rd row and not to touch the 1st row. The code affects it, right?
Awesome!
This is so much easier to read than the code in my book. I really appreciate it. I watched it 3 times to 100% understand and it's beautiful.
i tried doing a similar code i keep getting unidentified variable errors
what if my function have exponent e, it says that my exp doesn't define???
that was helpful. thanks :)
;( unfortunately it didn't work, but sounds very good... I have checked everything one million times, it's same as yours, but the solution fails... What should I do? I guess, your video is the best answer in the internet... wanna cry x[n-1]=b[n-1]/a[n-1, n-1] - this part TypeError Traceback (most recent call last) TypeError: only size-1 arrays can be converted to Python scalars The above exception was the direct cause of the following exception: ValueError Traceback (most recent call last) /var/folders/9y/ngq521_x3rlc7wgd1c5kwqgh0000gn/T/ipykernel_55498/314398621.py in <module> ----> 1 x[n-1]=b[n-1]/a[n-1, n-1] ValueError: setting an array element with a sequence.
I used the same code for my values. But, unfortunately it’s showing runtime error 11 Division by zero. How to over come this error.