The exponential function is used to define the real power of a strictly positive number a.
Amusement Park I
The comic strip represents characters on a roller coaster. First, the start is slow, then as the speed increases with a rise, and finally, in the last plate of the comic strip, the ride is launched at high speed. Like an exponential function does.
1x = np.linspace(-3,3,100) 2 3plt.plot(x,np.exp(x)) 4plt.xlabel('x') 5plt.ylabel('$e^x$') 6 7plt.grid() 8 9plt.title('Exponential', fontsize=12) 10plt.savefig('exponential', bbox_inches='tight') 11 12plt.show()
The exponential function is a function that grows very fast and is always positive. It can be easily represented with Matplotlib.
Did you find this content useful?
Your feedback helps us improve our content.