Question: Give me the output of this python code please ________ #Logarithm function import numpy as np import matplotlib.pyplot as plt plt.style.use('ggplot') x=np.arange(0.001,1.,0.001) plt.figure(figsize=(12,4),dpi=150) plt.subplot(1,3,1) plt.plot(x,np.log(x))
Give me the output of this python code please ________ #Logarithm function import numpy as np import matplotlib.pyplot as plt plt.style.use('ggplot') x=np.arange(0.001,1.,0.001) plt.figure(figsize=(12,4),dpi=150) plt.subplot(1,3,1) plt.plot(x,np.log(x)) plt.ylim(-5,5) plt.title('$\log (x)$') plt.subplot(1,3,2) plt.plot(x,-np.log(x)) plt.ylim(-5,5) plt.title('$-\log (x)$') plt.subplot(1,3,3) plt.plot(x,-np.log(1-x)) plt.ylim(-5,5) plt.title('$-\log (1-x)$') plt.show()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
