Macaulay2 » Documentation
Packages » TestIdeals :: floorLog
next | previous | forward | backward | up | index | toc

floorLog -- floor of a logarithm

Description

floorLog(b, x) computes floor(log_b x), correcting occasional errors due to rounding.

i1 : floor(log_3 3^5)

o1 = 4
i2 : floorLog(3, 3^5)

o2 = 5

Ways to use floorLog:

  • floorLog(Number,Number)

For the programmer

The object floorLog is a method function.


The source of this document is in TestIdeals/BasicFunctionsDoc.m2:161:0.