plt.title('Courbes de niveau de f(x, y) ) plt.axis('equal') plt.show() #Ajout de la courbe niveaux x = np.linspace(-10, 10, 100) y = np.linspace(-2, 2, 100) X ,Y=n p. meshgrid(x, y) Z = f(X, Y) plt.plot3 (X, Y, Z, levels=[0], colors='blu e' ) # Niveau o pour la fonction f, en ble plt.show() fig = plt.figure() ax = fig.add_subplot(111, projection='3 d' # Création d'une grille de points x=n p. linspae (-i 0,1 0,1 0 0) y=n p. linspae (-i 0,1 0,1 0 0) X,Y=n p. meshgrid (x,y Z = f(X, Y)
#print(i, x, y, gradx, grady) # dé commenter cette ligne pour imprimer les itérations if i maxIter: return None return x, y print(meth_gradient(f, df, -20, 15)) # point de depart -20,15 """ Nx1, Nx2 = 100, 100 #100 points en x1, 1 00 en x2 XXI, Xx2 = np.linspace(-10, 10, Nx1), пр. linspace (-10, 10, Nx2) X, Y = np.meshgrid (XXI, Xxz) z = f(X, Y) x_min, y_min = meth_gradient(f, df, 0, 0) plt.figure() plt.contour (X, Y, Z, levels=20) plt.plot(x_min, y_min, 'ro') # point mini mum en rouge plt.xlabel('x') plt.ylabel('y')
Hoy tenía un mal día y me he visto el video, ya me levanto el ánimo, vaya humillación a los culerdos, ajajjaaja, fueron 8 como podían haber sido 16, grande Bayern !!!
I'm an arsenal fan and yet it remains one of my favorite PL moments. For the younger fans, back then ManU were like Man City is today. A seemingly unstoppable title winning machine. Between the season ending in 2007 and 2013, they lost only two title races. One by a point to Chelsea and one on goal difference to Man City. In this particular roller coaster season, they seemed like they'll win again as late as April and then the unlikeliest sequence of events played out leading to this moment. It was mad.