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