DataMuseum.dk

Presents historical artifacts from the history of:

CP/M

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about CP/M

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦40bfbcc62⟧ TextFile

    Length: 640 (0x280)
    Types: TextFile
    Names: »TABEL.PAS«

Derivation

└─⟦08ea08c61⟧ Bits:30003924 PolyPascal programmer
    └─ ⟦this⟧ »TABEL.PAS« 

TextFile

PROGRAM tabel;
  
  CONST
    start = 1.0;
    slut = 3.0;
    spring = 0.1;
  
  VAR
    x : REAL;
    i : INTEGER;
      
  BEGIN
    WRITE(CLRHOM);
    WRITELN('x' : 10, 'x▶92◀(1/2)' : 10, 'x▶92◀(1/3)' : 10, 'x▶92◀2' : 10, 'x▶92◀3' : 10);
    x := start;
    i := 1;
    REPEAT
      IF i MOD 5 = 1
        THEN WRITELN;
      WRITELN(x : 10 : 5, SQRT(x) : 10 : 5, EXP(LN(x) / 3) : 10 : 5,
              SQR(x) : 10 : 5, SQR(x) * x : 10 : 5);
      x := x + spring;
      i := i + 1;
    UNTIL x > slut;
  END.
«eof»