<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mirucacule</author_name>
  <author_url>https://blog.hatena.ne.jp/mirucacule/</author_url>
  <blog_title>冷めたコーヒー</blog_title>
  <blog_url>https://mirucacule.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>やりたいこと 二項係数を要素に持つ一次元配列を定義したい．すなわち： $$ \begin{align} {}_n C_k = \binom{n}{k} = \frac{n!}{k!(n-k)!} \tag{1} \end{align} $$ を要素に持つような $n+1$ 次元配列を定義したい． Python による実装 Python では，以下のような関数を定義することによって所望の配列を生成できる．内包記法は便利． import math def binominal(n): return [int(math.factorial(n)/(math.factorial(i)*math.fact…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmirucacule.hatenablog.com%2Fentry%2F2019%2F10%2F12%2F191357&quot; title=&quot;C++で二項係数を要素に持つ配列を定義するメモ - 冷めたコーヒー&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mirucacule/20191012/20191012191247.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-10-12 19:13:57</published>
  <title>C++で二項係数を要素に持つ配列を定義するメモ</title>
  <type>rich</type>
  <url>https://mirucacule.hatenablog.com/entry/2019/10/12/191357</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
