Napište funkci, která počítá rozvoj funkce arcsin x {\displaystyle \arcsin x} pro ( − 1 l e x ≤ 1 ) . {\displaystyle (-1lex\leq 1).}
arcsin = 1 − 1 2 x + 1 ⋅ 3 2 ⋅ 4 x 2 − 1 ⋅ 3 ⋅ 5 2 ⋅ 4 ⋅ 6 x 3 + 1 ⋅ 3 ⋅ 5 ⋅ 7 2 ⋅ 4 ⋅ 6 ⋅ 8 x 4 − … {\displaystyle \arcsin =1-{1 \over 2}x+{{1\cdot 3} \over {2\cdot 4}}x^{2}-{{1\cdot 3\cdot 5} \over {2\cdot 4\cdot 6}}x^{3}+{{1\cdot 3\cdot 5\cdot 7} \over {2\cdot 4\cdot 6\cdot 8}}x^{4}-\ldots }
Zkontrolujte s využitím standardní funkce std::asin(double)