Python
By Imagination is more important than knowledge (지식보다 상상) | 2018년 7월 2일 |
Python 언어 강의 자료: Python Programming for Scientists Python basics, SciPy, NumPy, matplotlib, pandas, PyPy, Cython, F2Py, mpi4py 3412KB 3425KB 3119KB 2220KB 아래의 이유로 파일을 업로드하지 못했습니다.
Basel problem
By Imagination is more important than knowledge (지식보다 상상) | 2018년 6월 27일 |
![Basel problem](https://img.zoomtrend.com/2018/06/27/b0012811_5b332583bec20.png)
Basel problem . 파이썬, 포트란 90 컴퓨터 프로그램을 활용하여 수치적으로 위의 공식의 타당성을 체크해보고자 한다.특히, 파이썬 언어로 작성된 컴퓨터 프로그램의 계산 속도 향상을 위하여 pypy를 사용해 본다.http://pypy.org/ cat basel.py #!/usr/bin/env python #Basel problem import timedef recip_square(i): return 1./i**2def approx_pi(n): val = 0. for k in range(1,n+1): val += recip_square(k) return (6 * val)**.5start=t