Тёмный
No video :(

Euler's Method in Python: Predator-Prey Example 

Mike Saint-Antoine
Подписаться 4,2 тыс.
Просмотров 1,8 тыс.
50% 1

Hi everyone! This video is about how to implement Euler's method for numerical ODE solving in Python, using the Lotka-Volterra Predator-Prey model as an example.
All the code from my videos is available on my Github:
github.com/mik...
Thanks for watching and let me know if you have any questions!

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@MikeSaintAntoine
@MikeSaintAntoine Год назад
Hi everyone, thanks for watching! Here's the link to the code on my Github in case you want to try it for yourself (also feel free to add me as a friend on Github if you want 🙂) : github.com/mikesaint-antoine/Comp_Bio_Tutorials/blob/main/numerical_methods/eulers_method_predator_prey.py
@achrafBadiry
@achrafBadiry 7 месяцев назад
I had problems understanding the Euler numerical approx. for a "prey-predator" uni. programming project. but you explained perfectly for this matter. thank you !
@MikeSaintAntoine
@MikeSaintAntoine 6 месяцев назад
Thanks for watching! 🙂
@shabihah
@shabihah 9 месяцев назад
Thank you for your explanation. It really helps me to understand my uni module!
@MikeSaintAntoine
@MikeSaintAntoine 9 месяцев назад
Thanks for watching! 🙂
@cameronl1434
@cameronl1434 8 месяцев назад
Hi mike, I am running the simulation with the same variables as you, with a slightly modified code, but I am unable to figure out why when I plot the results, the prey population immediately dumps to 0 rather than increases? here is my code below, any pointers would be greatly appreciated # model 1 - exponential prey growth with type I functional response while x > 0 and y > 0 and t < tmax: dx = expo_growth(alpha, x) - f_type1(beta, x, y) dy = pred_growth_t1(delta, x, y) - pred_death(gamma, y) #update values x += dx * dt y += dy * dt t += dt # append values to lists prey_pop_m1.append(x) pred_pop_m1.append(y) t_m1.append(t)
@MikeSaintAntoine
@MikeSaintAntoine 8 месяцев назад
Hi Cameron, yeah I can try to help with that! Could you email me your full code at mikest@udel.edu? Then I'll try to run it and take a look. It's hard to tell based on the short code snippet because the problem might be in one of the functions that you're using for the different ODE terms.
@cameronl1434
@cameronl1434 8 месяцев назад
Thank you so much, I've popped over an email
@anikamittal6721
@anikamittal6721 7 месяцев назад
Hi Mike, I have no experience coding, but I wanted to calculate the parameters to create a Prey-Predator model for data I have collected. Is there any simple way to do so using python?
@MikeSaintAntoine
@MikeSaintAntoine 7 месяцев назад
Hi Anika, I think that will be a bit difficult with no experience coding, but maybe I can try to help. Can you email me at mikest@udel.edu and tell me about what you're trying to do, and attach the dataset? Then I'll see if there's an easy way to do it. Thanks!
Далее
Calculating Entropy and Mutual Information in Python
37:44
3d printed demon core vs real
00:24
Просмотров 7 млн
لدي بط عالق في أذني😰🐤👂
00:17
Просмотров 3,7 млн
Quadratic Variation for Brownian Motions
11:38
Просмотров 4,8 тыс.
USA Nice Olympiad Exponential Equation | Solve for X
6:38
China | Nice Olympiad Trigonometric Equation
11:57
Просмотров 2 тыс.