{"type":"rich","blog_title":"inamori\u2019s diary","image_url":null,"url":"https://inamori.hateblo.jp/entry/20081104/p1","width":"100%","blog_url":"https://inamori.hateblo.jp/","author_name":"inamori","provider_name":"Hatena Blog","title":"\u8907\u7d20\u6570","published":"2008-11-04 00:00:00","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20081104%2Fp1\" title=\"\u8907\u7d20\u6570 - 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>","categories":["Python"],"author_url":"https://blog.hatena.ne.jp/inamori/","provider_url":"https://hatena.blog","height":"190","description":"Python\u3067\u8907\u7d20\u6570\u306f\u6b21\u306e\u3088\u3046\u306b\u4f7f\u3046\u3002 z = 1 + 1j print z * z # 2j\u865a\u6570\u5358\u4f4d\u306f\u300cj\u300d\u3067\u8868\u3059\u3002\u305f\u3060\u3057\u3001\u4e0a\u306e\u3088\u3046\u306b\u5358\u306b\u300cj\u300d\u3068\u306f\u66f8\u3051\u305a\u3001\u6570\u5024\u304c\u524d\u306b\u5fc5\u8981\u3002 \u5404\u7a2e\u95a2\u6570\u306fcmath\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3042\u308b\u3002 from cmath import *z = 1j print sin(z) # 1.17520119364j\u5b9f\u90e8\u3068\u865a\u90e8\u306f\u6b21\u306e\u3088\u3046\u306b\u53d6\u308a\u51fa\u3059\u3002 z = 2 + 3j print z.real, z.imag # 2.0 3.0"}