mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.10.2t30
This commit is contained in:
28
help/ilog
Normal file
28
help/ilog
Normal file
@@ -0,0 +1,28 @@
|
||||
NAME
|
||||
ilog - floor of logarithm to specified integer base
|
||||
|
||||
SYNOPSIS
|
||||
ilog(x, b)
|
||||
|
||||
TYPES
|
||||
x nonzero real
|
||||
b integer greater than 1
|
||||
|
||||
return integer
|
||||
|
||||
DESCRIPTION
|
||||
Returns the greatest integer n for which b^n <= abs(x).
|
||||
|
||||
EXAMPLE
|
||||
> print ilog(2, 3), ilog(8, 3), ilog(8.9, 3), ilog(1/8, 3)
|
||||
0 1 1 -2
|
||||
|
||||
LIMITS
|
||||
x > 0
|
||||
b > 1
|
||||
|
||||
LIBRARY
|
||||
long zlog(ZVALUE x, ZVALUE b)
|
||||
|
||||
SEE ALSO
|
||||
ilog2, ilog10
|
Reference in New Issue
Block a user