{"provider_url":"https://hatena.blog","categories":["Python","math-numerical"],"width":"100%","url":"https://randommemory.hatenablog.com/entry/2015/11/22/180830","image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/d/derwind/20151122/20151122171705.png","author_url":"https://blog.hatena.ne.jp/derwind/","blog_url":"https://randommemory.hatenablog.com/","provider_name":"Hatena Blog","title":"python\u3067\u71b1\u65b9\u7a0b\u5f0f\u306e\u6570\u5024\u89e3\u6790","author_name":"derwind","height":"190","version":"1.0","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2015%2F11%2F22%2F180830\" title=\"python\u3067\u71b1\u65b9\u7a0b\u5f0f\u306e\u6570\u5024\u89e3\u6790 - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u71b1\u65b9\u7a0b\u5f0f\u306e\u6570\u5024\u89e3\u6790(3) - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\u3092python\u3067\u518d\u5b9f\u88c5\u3002 \u308f\u308a\u3068\u8a08\u7b97\u304c\u901f\u304b\u3063\u305f\u3002octave\u306f\u9045\u3044\u306e\u304b\u306a...\u3002 #! /usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt def initial_func(xx): length_xx = len(xx) y = np.zeros(length_xx) for i in range(length_xx): x = xx[i] if x <= -1 or x >= 1: y[i] = 0 else:\u2026","type":"rich","published":"2015-11-22 18:08:30"}