Pythonで積分 ref: http://qiita.com/ykchat/items/5fc04bf80d24928a241c