affine.py

Created by cent20

Created on March 03, 2021

544 Bytes

script exploité en classe de seconde dans le cadre des TDG n°11 sur les fonctions affines


# ce script est volontairement incomplet.
# Il est cependant éxécutable.
# Il faudrait remplacer le 42 et les 666 pour le rendre fonctionnel.

def af_image(m, p, x) :
  # calcule et retourne l’image de x par la fonction x -> m x + p
  return m * x + p
    
def af_ant(m, p, y) :
  # calcule et retourne ... de ... par la fonction x -> ...
  return 42
    
def af_cd(xA,yA,xB,yB):
  # calcule le ... à partir des ... de deux ...
  return 666

def af_oao(xA,yA,xB,yB):
  # calcule l'... à partir des ... de deux ...
  return 666

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.