logn ( x n -- y ) (original) (raw)

logn ( x n -- y )
Factor handbook » The language » Numbers » Mathematical functions » Powers and logarithms

Prev: log10 ( x -- y )
Next: ^ ( x y -- x^y )

Vocabulary
math.functions

Inputs

x a number
n a number

Outputs

y a number

Word description
Finds the base n logarithm of x.

Definition

USING: kernel math ;

IN: math.functions

: logn ( x n -- y ) [ log ] bi@ / ;