s.py

Created by ramadiallo01

Created on November 11, 2021

777 Bytes


Entrée
Saisir les réels a,b,p

Initialisation
Affecter à T la valeur b-a

Traitement des données
Tant que T>p
           Affecter à x la valeur (a+b)/2   
           Affecter à y la valeur x^2-7x-1
           si y>0
                  Alors affecter à b la valeur x 
           sinon
                  Affecter à a la valeur x
            Affecter à T la valeur b-a


Saisir A
u prend la valeur f(0)
n prend la valeur 0
Tant que u<A
         n prend la valeur n+1
         u prend la valeur f(n)
Fin tant que
Afficher n



variables : u réel
                   i et n entier naturel
Debut : Lire n
              u prend la valeur ......
              pour i variant de 0 à n-1
              .... prends la valeur .....
             Fin pour
Fin : Afficher u

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.