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

Wednesday, May 24, 2023

PLOT AN ELLIPSE

import matplotlib.pyplot as mp
import numpy as np
c=int(input("Enter the latitude of ellipse = "))
d=int(input("Enter the longitude of ellipse = "))
mp.grid()
a=np.linspace(0,360,10000000)
x=c*np.cos(a)
y=d*np.sin(a)
mp.plot(x,y)
mp.show()

OUTPUT