Mathematics
Mathematics, 29.01.2021 14:00, Flowershere121

On a exécuté le script ci-dessous en Python: 1 def pente(XA, YA, XB, YB):
2 return(yB-ya)/(XB-XA)
1. a. On a ainsi défini une fonction informatique.
Quel est son nom ? Quels sont ses arguments ?
b. Quelle sortie obtient-on en exécutant l'instruction
pente(2,-1,3,5) ?
c. Interpréter graphiquement cette fonction.
2. a. Que se passe-t-il si on exécute l'instruction
pente(-1,2,-1,4)?
b. Recopier et compléter le script ci-dessous pour gérer
le problème précédent :
1 def pente(XA, YA, XB, YB):
2 if ...
3
return("impossible")
4 else:
5
return
Remarque : on peut aussi ajouter la ligne 2 ci-dessous qui
teste si XA est différent de xB et interrompt l'exécution si
ce n'est pas le cas.
1 def pente(xA, YA, XB, YB):
assert XA != XB
return(yB - yA)/(XB-XA)
WNH
43
Chapitre 1. Ensembles de nombres. Fonctions affines

answer
Answers: 3

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 15:30, claudialopez093
1foot = 12 inches; 1 yard = 3 feet
Answers: 3
image
Mathematics, 21.06.2019 15:40, demarcuswiseman
Is it true that product of 3 consecutive natural numbers is always divisible by 6? justifyyour answer
Answers: 2
image
Mathematics, 21.06.2019 17:50, tm133043
When using the linear combination metho e linear combination method to solve a system of linear equations, the four options are:
Answers: 1
image
Mathematics, 21.06.2019 19:00, adam463
Analyze the graph of the cube root function shown on the right to determine the transformations of the parent function. then, determine the values of a, h, and k in the general equation. y=a3x-h+k h= . k= done 000000l o 7 of 8
Answers: 2
Do you know the correct answer?
On a exécuté le script ci-dessous en Python: 1 def pente(XA, YA, XB, YB):
2 return(yB-ya)/(XB...

Questions in other subjects:

Konu
English, 06.11.2020 14:00