CoCoA:ILogBase

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ILogBase

integer part of the logarithm

Description

This function computes the integer part (floor) of the logarithm of a

rational number in a given base. The signs of X and Base are ignored.

Example

  ILogBase(128,2);
7
-------------------------------
  ILogBase(81.5,3);
4
-------------------------------

Syntax

ILogBase(X:RAT, Base:INT):INT
   <type>integer</type>
   <type>rat</type>