summaryrefslogtreecommitdiff
path: root/fpcdocs/mathex/ex23.pp
blob: afdec534def30df818a9fd3dcf6cd185bf05578f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Program Example23;

{ Program to demonstrate the logn function. }

Uses math;

begin
  Writeln(Logn(3,4):8:4);
  Writeln(Logn(2,4):8:4);
  Writeln(Logn(6,9):8:4);
  Writeln(Logn(exp(1),exp(1)):8:4);
  Writeln(Logn(0.5,1):8:4);
  Writeln(Logn(0.25,3):8:4);
  Writeln(Logn(0.125,5):8:4);
end.