I'm trying to plot y = log10(x) - squareroot(x) in Jupyter notebook with x in range 1 to 1000, any ideas?
Asked
Active
Viewed 374 times
-3
-
Do you know how to plot anything else? – mkrieger1 Nov 20 '21 at 17:13
-
you need to create the x and y values preferably using numpy and then use matplotlib to plot the x and y cords. – Albin Paul Nov 20 '21 at 17:14
1 Answers
0
import math
import matplotlib.pyplot as plt
x = [i for i in range(1,1001)]
y = [math.log10(i)-math.sqrt(i) for i in x]
plt.plot(x,y)

Tamir
- 1,224
- 1
- 5
- 18