Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/Cobol/verschiedene-Autoren/Gluschkow/   (Columbo Version 0.7©)  Datei vom 26.10.2008 mit Größe 1 kB image not shown  

Quelle  Algol p270.cob   Sprache: Cobol

 
       Identification Division.
       Program-Id. Victor.
      * Buch "Introduction to Cybernetics", 1966
      * von Viktor Gluschkow
      * p270
       Data Division.
       Working-Storage Section.
         78 n            value 100.
         77 i            pic 9(4).
         77 j            pic 9(4).
         77 k            pic 9(4).
         77 y            pic 9(4)V99.
         77 s            pic 9(4)V99.
         77 d            pic 9(4)V99.
         77 r            pic 9(4)V99.
         77 a            pic 9(4)V99 occurs n.
         77 b            pic 9(4)V99 occurs n.
         01 p            pic 9(4)V99 occurs n.
       Procedure Division.
      * Formula
       L.
        accept b 
        move function f(b) to y
        move 0 to s 
        perform varying i from 1 until i=n
          add d to a(i)
          display a
          accept b
          compute p(i)=(function f(b)-y)/d
          compute s=s+p(i)*p(i)
          subtract d from a(i)
        end-perform       
        compute r=d/function sqrt(s)
        perform varying i from 1 until i=n
          compute a(i)=r*p(i)+a(i)
        end-perform       
        display a
        accept b
        if function abs(y - function f(b))>1 then goto L
        else 
          perform varying k from 1 until k=n
            compute a(i)=a(i)-r*p(i)
          end-perform
        end-if
        display a        
        goto L.
      * P=???
       End-Program Victor.

Messung V0.5
C=96 H=93 G=94

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

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