Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Cobol/verschiedene-Autoren/Nissim-Francez/   (Columbo Version 0.7©)  Datei vom 15.4.2008 mit Größe 813 B image not shown  

Quelle  francez-p62.cob   Sprache: Cobol

 
       Identification Division.
       Program-Id. francez-p62.
       Author"Nissim Francez".
      * "aus Program Verification"  
       Data Division.
       Working-Storage Section.
         77 x    pic S9(8) comp-2.
         77 xn   pic S9(8) comp-2.
         77 te   pic S9(8) comp-2.
         77 eps  pic S9(2)V9(8)  value 0.00001.
       Linkage Section.
         77 a    pic S9(8) comp-2.
       Procedure Division using a.
        l0.
         display "start".
         move a to x
         move 1 to xn
        l.
         compute te=a - xn**2
         if function abs(te)>eps then
           compute xn=(a+xn)/(2*xn)
         else  
           go to le
         end-if.
         go to l.
        le.
         display "halt xn=" xn " x=" x
       End-Program francez-p62.

91%


¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.