Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Introduction to Python for Science 2013.pdf
Скачиваний:
60
Добавлен:
21.05.2015
Размер:
2.41 Mб
Скачать

Introduction to Python for Science, Release 0.9.23

9.6 Exercises

1.Use NumPy’s polyval function together with SciPy to plot the following functions:

(a)The first four Chebyshev polynomials of first kind. Plot these over the interval from -1 to +1.

(b)The first four Hermite polynomials multiplied by e x2=2. Plot these on the interval from -5 to +5. These are the first four wave functions of the quantum mechanical simple harmonic oscillator.

178

Chapter 9. Numerical Routines: SciPy and NumPy

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]