{"author_url":"https://blog.hatena.ne.jp/hiratara/","author_name":"hiratara","categories":["\u6570\u5b66","\u6280\u8853"],"type":"rich","blog_title":"Pixel Pedals of Tomakomai","width":"100%","published":"2012-06-07 15:24:03","url":"https://hiratara.hatenadiary.jp/entry/20120607/1339050243","title":"\u554f\u984c3.17\u306e\u89e3\u7b54(Matplotlib)","version":"1.0","height":"190","provider_name":"Hatena Blog","blog_url":"https://hiratara.hatenadiary.jp/","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/h/hiratara/20120607/20120607151845.png","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiratara.hatenadiary.jp%2Fentry%2F20120607%2F1339050243\" title=\"\u554f\u984c3.17\u306e\u89e3\u7b54(Matplotlib) - Pixel Pedals of Tomakomai\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u6628\u591c\u30b5\u30dc\u3063\u3066\u305f\u30b0\u30e9\u30d5\u306e\u8868\u793a\u3002sympy \u306e\u95a2\u6570\u3092 numpy \u306b\u6301\u3061\u8fbc\u3080\u306e\u306b sympy.lambdify \u3092\u4f7f\u3063\u305f\u3002 import sympy as sym from sympy.abc import x import pylab import numpy as np def graph(f, range, nums=100): vf = np.vectorize(f) t = np.linspace(range[0], range[1], nums) s = vf(t) pylab.plot(t, s) pylab.show() print \"[3.17 (1)]\" f3 = sym.si\u2026"}