Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/PVS/ACCoRD/   (PVS Prover Version 6.0.9©)  Datei vom 28.9.2014 mit Größe 96 kB image not shown  

SSL root.cob

  Sprache: Cobol
 

       identification division.
       program-id. root.
      *  aus Wirth, systematisches Programmieren p. 63 
       author"JD".
       date-written15.8.2007.
       date-compiled.
       data division.
       working-storage section.
       77 c   pic 9(4)V9(4).
       77 eps pic 9(4)V9(4value 0.001.
       linkage section.
       77 x   pic 9(4)V9(4).
       77 a   pic 9(4)V9(4).
       procedure division using x returning a.
      * computes sqrt(x), 0<x<2
         move x to a
         subtract x from 1 giving c
         perform until c<=eps
      *    a*a=x*(1-c), c>=0
           compute a = a*(1+0.5*c)
           compute c = c*c*(0.75+0.25*c)
         end-perform.
      *  x*(1-eps)/x<=a*a<x.
        end-program root.

Messung V0.5 in Prozent
C=84 H=100 G=92

¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet am  2026-06-14) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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 und die Messung sind noch experimentell.