mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-25 23:29:42 +02:00
19 lines
243 B
ObjectPascal
19 lines
243 B
ObjectPascal
Program Example33;
|
|
|
|
{ Program to demonstrate the norm function. }
|
|
|
|
Uses math;
|
|
|
|
Type
|
|
TVector = Array[1..10] of Float;
|
|
|
|
Var
|
|
AVector : Tvector;
|
|
I : longint;
|
|
|
|
begin
|
|
for I:=1 to 10 do
|
|
Avector[i]:=Random;
|
|
Writeln(Norm(AVector));
|
|
end.
|