Тёмный

Lesson #68: Writing Recursive Rules for Non-Arithmetic, and Non-Geometric Sequences 

Jocelyn Hall
Подписаться 263
Просмотров 1,9 тыс.
50% 1

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

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1   
@Lambda_Ovine
@Lambda_Ovine 4 года назад
Awesome! I knew about this, I was introduced to it in computer science. I didn't know it was called a non-arithmetic sequence, I just generally called this kind of problems recursive. Here's how the mosquito solution would look using python: def mosquitoPop(a, x): if (x== 1): return a else: return mosquitoPop(a*0.15+100, x-1) #once defined, we call the function like this to find the population on the fifth day with a start of 500: mosquitoPop(500, 5) We basically start from the end (because we make explicit the nth day we want to find) and make the computer go backwards from there to the beginning. If x is not at the beginning, the function is called again and again until it reaches the first day and returns the initial amount, calculates, returns that result to the previous function that got stacked, calculates, returns that, and so on and so on.
Далее
Write Recursive Formulas for Sequences (2 Methods)
7:18
Китайка стучится Домой😂😆
00:18
ОВР Шоу:  Семейные понты  @ovrshow_tnt
07:21
Sequences, Factorials, and Summation Notation
11:12
Просмотров 127 тыс.
What does it feel like to invent math?
15:08
Просмотров 4,1 млн
Sigma Notation and Summation Notation
15:41
Просмотров 762 тыс.
Recursive Formulas How to Write
7:18
Просмотров 390 тыс.
Nonlinear Sequences (With Examples)
8:20
Просмотров 64 тыс.
The ALMOST Perfect Numbers
30:01
Просмотров 48 тыс.
Pi hiding in prime regularities
30:42
Просмотров 2,5 млн