OpenMusic Reference
om^

om^
(arithmetic module) -- raises a number to a given power
Syntax
om^ self num
Inputs
| name | data type(s) | comments | 
|---|---|---|
| self | a number or tree | |
| num | a number or tree | 
Output
| output | data type(s) | comments | 
|---|---|---|
| first | a number; a tree | returns the first input’s number(s) raised to the power(s) of the second | 
Description
Raises self to the power num . The arguments need not be of the same type- a list may be raised to a single power or elements of a list may be raised to the powers indicated by the elements of another list. When the arguments are not of the same type, om^ pairs them up in the same manner as om/
![]()  | 
    
The name of the om^ function uses the carat (^) to represent raising a number to a power, as is traditional in programming languages.
—|—
| Prev | Home | Next | 
|---|---|---|
| numerator | Up | om* | 
