mirror of
https://github.com/Rushilwiz/ml.git
synced 2025-04-26 14:39:50 -04:00
14 lines
252 B
Python
14 lines
252 B
Python
import numpy as np
|
|
import matplotlib.pyplot as plt
|
|
|
|
def main():
|
|
x = np.linspace(0, 20, 100)
|
|
plt.plot(x, np.sin(x))
|
|
plt.xlabel("x")
|
|
plt.xlabel("sin(x)")
|
|
plt.title("A sine curve")
|
|
plt.show()
|
|
|
|
if __name__ == "__main__":
|
|
main()
|