{"version":"1.0","url":"https://blog.cryolite.net/entry/20040904/p1","description":"\u3080\u301c\uff0e #include <iostream> #include <boost/preprocessor.hpp> inline double sin(double x) // x must be in [-pi/2, pi/2) { #define INIT_N 1 #define TERMINATING_N 12 #define SIN_TAYLOR_TERM(N, K, DUMMY) \\ * (1.0 - x * x / (K * (4 * K + 2)) #define CLOSING_PARENTHESIS(N, K, DUMMY) ) #define DUMMY return x \u2026","author_name":"Cryolite","image_url":null,"blog_title":"Cry's Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.cryolite.net%2Fentry%2F20040904%2Fp1\" title=\"Compile-time Transcendental - Cry&#39;s Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","author_url":"https://blog.hatena.ne.jp/Cryolite/","height":"190","provider_url":"https://hatena.blog","categories":["C++","Numerical Calculation","MetaProgramming"],"provider_name":"Hatena Blog","published":"2004-09-04 00:00:00","title":"Compile-time Transcendental","width":"100%","blog_url":"https://blog.cryolite.net/"}