| [Overview][Constants][Types][Classes][Procedures and functions][Index] | 
Return N-based logarithm.
Source position: math.pp line 350
| function logn( | 
| n: Float; | 
| x: Float | 
| ):Float; | 
Logn returns the n-base logarithm of X.
If x is less than or equal to 0 an 'invalid fpu operation' error will occur.
| 
 | Return (2 to the power p) times x | |
| 
 | Return natural logarithm of 1+X | |
| 
 | Return 10-Based logarithm. | |
| 
 | Return 2-based logarithm | 
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.