subject
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

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 21.06.2019 15:00
Translate the word phrase into a math expression. 15 fewer than the product of 4 and a number. (pls immediately)
Answers: 2
question
Mathematics, 21.06.2019 19:10
How many solutions does the nonlinear system of equations graphed below have?
Answers: 2
question
Mathematics, 21.06.2019 22:10
When is g(x) = 0 for the function g(x) = 5.23x + 4?
Answers: 1
question
Mathematics, 21.06.2019 23:30
(c) compare the results of parts (a) and (b). in general, how do you think the mode, median, and mean are affected when each data value in a set is multiplied by the same constant? multiplying each data value by the same constant c results in the mode, median, and mean increasing by a factor of c. multiplying each data value by the same constant c results in the mode, median, and mean remaining the same. multiplying each data value by the same constant c results in the mode, median, and mean decreasing by a factor of c. there is no distinct pattern when each data value is multiplied by the same constant. (d) suppose you have information about average heights of a random sample of airline passengers. the mode is 65 inches, the median is 72 inches, and the mean is 65 inches. to convert the data into centimeters, multiply each data value by 2.54. what are the values of the mode, median, and mean in centimeters? (enter your answers to two decimal places.) mode cm median cm mean cm in this problem, we explore the effect on the mean, median, and mode of multiplying each data value by the same number. consider the following data set 7, 7, 8, 11, 15. (a) compute the mode, median, and mean. (enter your answers to one (1) decimal places.) mean value = median = mode = (b) multiply 3 to each of the data values. compute the mode, median, and mean. (enter your answers to one (1) decimal places.) mean value = median = mode = --
Answers: 1
You know the right answer?
On a exécuté le script ci-dessous en Python: 1 def pente(XA, YA, XB, YB):
2 return(yB-ya)/(XB...
Questions
question
Mathematics, 28.04.2021 21:30
question
English, 28.04.2021 21:30
question
Mathematics, 28.04.2021 21:30
question
Mathematics, 28.04.2021 21:30
Questions on the website: 13722362