1. wotsushi
Changes in body
Source | HTML | Preview
@@ -70,11 +70,11 @@
|意味|数式|Python式|
|---|---|---|
|総和| $\sum_{i=1}^{n} f(i)$ | `sum(f(i) for i in range(1, n + 1))` |
|総和| $\sum_{a \in A} g(a)$ | `sum(g(a) for a in A)` |
-|総乗| $\prod_{i=1}^{n} f(i)$ | `reduce(mul, (f(i) for i in range(1, n + 1))` |
+|総乗| $\prod_{i=1}^{n} f(i)$ | `reduce(mul, (f(i) for i in range(1, n + 1)))` |
|総乗| $\prod_{a \in A} g(a)$ | `reduce(mul, (g(a) for x in A))` |
|階乗| $m!$ | `factorial(m)` |
|天井関数| $\lceil x \rceil $ | `ceil(x)` |
|床関数| $\lfloor x \rfloor $ | `floor(x)` |
|絶対値| $\mid x \mid $| `abs(x)`|