python 实现数值积分与画图
摘要:
import numpy as np from scipy import integrate def half_circle(x): return (1 - x ** 2) ** 0.5 N = 10000 x = np.linspace(-1, 1, N) dx = 2. / N; y = half_circle(x) area =sum( dx * y)#利用矩形面积法 ... 阅读全文
posted @ 2017-05-04 17:59 Kermit.Li 阅读(5836) 评论(0) 推荐(0) 编辑