Skip to content
Snippets Groups Projects
Select Git revision
  • 00de7bf720ce2284de8d3545f1904794c2a89c32
  • main default protected
  • s2025dev
  • plot-fixes
  • Fall2024
5 results

ex0_5_1.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ex0_5_1.py 229 B
    ## 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()