Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Cobol/verschiedene-Autoren/MQ-Series/   (verschiedene Autoren Version 0.7©)  Datei vom 4.1.2008 mit Größe 20 kB image not shown  

SSL Dahl-p44.cbl   Sprache: Cobol

 

       identification division.
       program-id. dahl-p44.
      * aus O-J Dahl - Verifiable Programming
       author. Jens.
       date-written. 5.1.2009.
       date-compiled.
       data division.
       working-storage section.
       78 eps value 0.0001.
       78 x   value 0.5.
       77 k      pic 9(4)V99.
       77 z      pic 9(4)V99.
       linkage section.
       77 y      pic 9(4)V99.
       procedure division returning y.
         move 1 to k
         add  1 to x giving y
         move x to z
         perform until function abs(z)< eps*y  
           add 1 to k
           compute z=z*x/k
           add z to y
         end-perform
        end-program dahl-p44.

Messung
CHZG
1009910099

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-25) ¤

*© Formatika GbR, Deutschland