matplotlib练习
Exercise 11.1: Plotting a function
Plot the function
>>f(x)=sin2(x−2)e−x2>> >> f ( x ) = s i n 2 ( x − 2 ) e − x 2 >>
over the interval [0, 2]. Add proper axis labels, a title, etc.
from matplotlib import pyplot
import numpy
import math
pyplot.xlim(