Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
v^n ( u n -- w )
Factor documentation
>
Factor handbook
>
The language
>
Numbers
>
Vector operations
>
Vector arithmetic
Prev:
n-v ( n v -- w )
Next:
n^v ( n v -- w )
Vocabulary
math.vectors
Inputs and outputs
u
a sequence of numbers
n
a number
w
a sequence of numbers
Word description
Raises each element of
u
to the power of
n
.
Definition
IN:
math.vectors
GENERIC:
v^n
( u n -- w )
Methods
USING:
kernel
math.functions
math.vectors
sequences
;
M:
object
v^n
[
^
]
curry
map
;
inline