{"description":"PythonRecipe 185:\u76f4\u884c\u5ea7\u6a19\u3092\u6975\u5ea7\u6a19\u306b\u5909\u63db\u3059\u308b \u3092\u66f8\u3044\u3066\u3044\u3066\u601d\u3063\u305f\u3053\u3068\u3002Ruby \u306e\u8907\u7d20\u6570\u304b\u3089\u306f Complex#abs \u3067\u7d76\u5bfe\u5024\u3001Complex#arg \u3067\u504f\u89d2\u3001 Complex#polar \u3067\u4e21\u65b9\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3053\u3068\u3092\u77e5\u3063\u305f\u3002 irb(main):001:0> require 'complex' => true irb(main):002:0> z = Complex(3.0, 4.0) => Complex(3.0, 4.0) irb(main):003:0> p z.polar [5.0, 0.927295218001612] => nil \u307b\u304b\u306b\u3082 Complex#c\u2026","author_url":"https://blog.hatena.ne.jp/fgshun/","width":"100%","title":" \u8907\u7d20\u6570\u5e73\u9762\u306e\u6975\u5ea7\u6a19","version":"1.0","author_name":"fgshun","height":"190","blog_title":"\u9280\u6708\u306e\u7b26\u53f7","blog_url":"https://fgshun.hatenablog.com/","categories":["\u65e5\u8a18","Python","Ruby"],"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffgshun.hatenablog.com%2Fentry%2F20080331%2F1206971161\" title=\" \u8907\u7d20\u6570\u5e73\u9762\u306e\u6975\u5ea7\u6a19 - \u9280\u6708\u306e\u7b26\u53f7\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2008-03-31 22:46:01","type":"rich","image_url":null,"url":"https://fgshun.hatenablog.com/entry/20080331/1206971161","provider_name":"Hatena Blog"}