👤

Exercice pour demain aidez moi s'il vous plait 
 
On considére l'algorithme suivant :
 
Entrée :  Saisir X
 
Traitement :
 X + 1 -> A
AxA -> B
B - X x X -> Y
 
Sortie Afficher Y 
 
a.Que donne l'algorithme pour X = - 5 ?
b. Quelle est la fonction décrite par l'algorithme ?
c. Que choisir pour X pour que Y soit égal a 15 ?


Répondre :

bonjour

a)
on choisit X= -5
(-5) +1   = -4
-4×-4= 16

16-(-5)×(-5) =16-25
= -9
l'algorithme affiche -9

b)
(x+1)² - x²
=x²+2x+1-x²
=2x+1

la fonction est 2x+1

b)
2x+1= 15
2x=15-1
2x=14
x=14/2
x=7

il faut choisir 7