~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to docs/mathex/ex36.pp

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Program Example36;
2
 
 
3
 
{ Program to demonstrate the PopnVariance function. }
4
 
 
5
 
Uses math;
6
 
 
7
 
Type
8
 
  TExArray = Array[1..100] of Float;
9
 
    
10
 
Var
11
 
  I : Integer;
12
 
  ExArray : TExArray; 
13
 
    
14
 
begin
15
 
  Randomize;
16
 
  for I:=1 to 100 do 
17
 
    ExArray[i]:=(Random-Random)*100;
18
 
  Writeln('Max           : ',MaxValue(ExArray):8:4);  
19
 
  Writeln('Min           : ',MinValue(ExArray):8:4);  
20
 
  Writeln('Pop. var.     : ',PopnVariance(ExArray):8:4);  
21
 
  Writeln('Pop. var. (b) : ',PopnVariance(@ExArray[1],100):8:4);  
22
 
end.