Support our Blind Hand Charity by donating at 9818291723. Your contribution has the potential to bring about significant positive change for humanity.

Search This Blog

Saturday, August 5, 2023

CIRCLE PLOTTER

import matplotlib.pyplot as mp
import numpy as np
r=int(input("Enter the radius of circle = "))
mp.grid()
a=np.linspace(0,360,10000000)
x=r*np.cos(a)
y=r*np.sin(a)
mp.plot(x,y)
mp.show()

OUTPUT