begin Ex.4.20
Merge https://github.com/tolyapsh/SciPy