thedeemon: (professor)
[personal profile] thedeemon
Вот список имеет вид
data List a = Nil | Cons a (List a)
т.е.
F(x) = 1 + x * F(x)
а значит
F(x) - x * F(x) = 1
(1-x) * F(x) = 1
F(x) = 1 / (1-x)
и действительно, если мы такую функцию разложим в ряд, то получим
F(x) = 1 + x + x*x + x*x*x + x*x*x*x + ...
т.е. как раз тип описывает списки из х разной длины.

Но вот что любопытно,
F(F(F(x))) = 1 / (1 - (1 / (1 - 1 / (1 - x)))) = ... = x
можете на бумажке проверить или вот тут увидеть.
Это что же значит, [[[a]]] = a? ;)

Date: 2021-05-09 06:36 pm (UTC)
chaource: (Default)
From: [personal profile] chaource
I doubt it. If it converges in that category, you would then have no trouble interpreting [[[x]]] = x.

Date: 2021-05-09 09:57 pm (UTC)
juan_gandhi: (Default)
From: [personal profile] juan_gandhi

Have to figure out. Need a Ramanujan.

Profile

thedeemon: (Default)
Dmitry Popov

July 2025

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
27282930 31  

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 1st, 2025 06:22 am
Powered by Dreamwidth Studios