Assumptions:
TeX:
\sum_{k=0}^{n} \sin\!\left(2 a k + b\right) = \frac{\sin\!\left(a \left(n + 1\right)\right) \sin\!\left(a n + b\right)}{\sin(a)} n \in \mathbb{Z}_{\ge 0} \;\mathbin{\operatorname{and}}\; a \in \mathbb{C} \;\mathbin{\operatorname{and}}\; b \in \mathbb{C} \;\mathbin{\operatorname{and}}\; \frac{a}{\pi} \notin \mathbb{Z}
Definitions:
Fungrim symbol | Notation | Short description |
---|---|---|
Sum | Sum | |
Sin | Sine | |
ZZGreaterEqual | Integers greater than or equal to n | |
CC | Complex numbers | |
Pi | The constant pi (3.14...) | |
ZZ | Integers |
Source code for this entry:
Entry(ID("b8ab9c"), Formula(Equal(Sum(Sin(Add(Mul(Mul(2, a), k), b)), For(k, 0, n)), Div(Mul(Sin(Mul(a, Add(n, 1))), Sin(Add(Mul(a, n), b))), Sin(a)))), Variables(a, b, n), Assumptions(And(Element(n, ZZGreaterEqual(0)), Element(a, CC), Element(b, CC), NotElement(Div(a, Pi), ZZ))))