home *** CD-ROM | disk | FTP | other *** search
- program FUNC3D;
-
- { Create a 3-D function file for display via SOLMODL }
-
- var Filout: text;
- i, j: integer;
- x, y, z: real;
-
- begin
- assign (Filout, 'PARABOLA.DAT');
- rewrite (Filout);
- writeln (Filout, 21, ',', 21); { grid size }
-
- x := -1.0;
- for i := 1 to 21 do begin
- y := -1.0;
- for j := 1 to 21 do begin
- z := x * x + y * y;
- writeln (Filout, x:7:3, ',', y:7:3, ',', z:7:3);
- y := y + 0.1;
- end;
- x := x + 0.1;
- end;
- close (Filout);
- end. { program FUNC3D }