- Code: Tout sélectionner
Disp "Conjecture f(x)="
Input X
Disp "Borne 1: "
Input A
Disp "Borne 2: "
Input B
Disp "Précision: "
Input P
While B-A>P
(A+B)/2→M
If Y₁(A)*Y₁(M)<X
Then
M→B
Else
M→A
End
End
If P=10^0
Then
0→P
End
If P=10^-1
Then
1→P
End
If P=10^-2
Then
2→P
End
If P=10^-3
Then
3→P
End
If P=10^-4
Then
4→P
End
If P=10^-5
Then
5→P
End
If P=10^-6
Then
6→P
End
arrondir(A,P)
arrondir(B,P)
Disp "Minorant: ",A
Disp "Majorant: ",B
Il m'affiche A et B mais ne les arrondis pas avant d'afficher, ni après.
PS: Une fois envoyé, j'ai refais les moins avec la touche dédiée aux chiffres négatifs.
PSS: C'est mieux que j'utilise Disp ou Output? ça change quoi réellement?