Created by cahier-indice-algo-1gen
Created on April 22, 2022
297 Bytes
from math import sqrt def g(x): return 2 * x * sqrt(32 - 2 * x**2) def maximum(): valeur_maxi = g(0) x_maxi = 0 x = 0.1 while x < 4: if g(x) > valeur_maxi: valeur_maxi = g(x) x_maxi = x x = x + 0.1 return x_maxi