Skip to content
Snippets Groups Projects
ex0_5_1.py 229 B
Newer Older
  • Learn to ignore specific revisions
  • bjje's avatar
    bjje committed
    ## exercise 0.5.1
    import numpy as np
    import matplotlib.pyplot as plt
    
    x = np.arange(0, 1, 0.1)
    f = np.exp(x)
    
    plt.figure(1)
    plt.plot(x, f)
    plt.xlabel('x')
    plt.ylabel('f(x)=exp(x)')
    plt.title('The exponential function')
    plt.show()