{"url":"https://inamori.hateblo.jp/entry/20071008/p1","blog_title":"inamori\u2019s diary","title":"\u8907\u7d20\u6570\uff082\uff09","provider_name":"Hatena Blog","blog_url":"https://inamori.hateblo.jp/","image_url":null,"height":"190","author_name":"inamori","published":"2007-10-08 00:00:00","provider_url":"https://hatena.blog","width":"100%","description":"\u6307\u6570\u95a2\u6570 \u3053\u308c\u306f\u3084\u3055\u3057\u3044\u3002 \u30aa\u30a4\u30e9\u30fc\u306e\u516c\u5f0f\u3001 \u3088\u308a\u3001 import std.cstream; import std.math;void main(char[][] args) { cdouble c = 1 + 0.1i; dout.writefln(exp(c)); // 2.7047+0.271375i }cdouble exp(cdouble c) { double im = c.im; return std.math.exp(c.re) * (cos(im) + 1i * sin(im)); }\u865a\u90e8\u3092\u53d6\u308b\u3068\u3053\u308d\u304c\u3001 http://www.kmonos.net/alang/d/1.0/f\u2026","version":"1.0","type":"rich","categories":["D\u8a00\u8a9e","\u6570\u5b66"],"author_url":"https://blog.hatena.ne.jp/inamori/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20071008%2Fp1\" title=\"\u8907\u7d20\u6570\uff082\uff09 - inamori\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}