Handbook
Glossary
10^ ( x -- 10^x )
Factor handbook
»
The language
»
Numbers
»
Mathematical functions
»
Powers and logarithms
Prev:
e^ ( x -- e^x )
Next:
sigmoid ( x -- y )
Vocabulary
math
.
functions
Inputs
x
a
number
Outputs
10^x
a
number
Word description
Raises 10 to the power of
x
. If
x
is an integer the answer is computed exactly, otherwise a floating point approximation is used.
Definition
USING:
kernel
;
IN:
math.functions
:
10^
( x -- 10^x )
10
swap
^
;
inline