Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Haskell では、再帰関数を非常に簡潔に表すことができます。たとえば、フィボナッチ数を含む無限リストは次のように定義できます。
fibs :: [Integer] fibs = 1 : 1 : zipWith (+) fibs (tail fibs)
私は、次の再帰関係を持つ「確率論者」のエルミート多項式を扱っています。
与えられた x の n 次エルミート多項式の無限リストを構築する最適な方法は何でしょうか?