A newer version of Max is available. Click here to access the latest version of the documentation

pow Reference

Computes input to the nth power

pow

Description

Raises the base value (set in the left inlet) to the power of the exponent (set in the right inlet).

Examples

pow will give you a square deal (and other numbers, too)

Arguments

exponent [float or int]

Optional

Sets the exponent value. The default value is 0.

Attributes

Common Box Attributes

Messages

bang

Causes pow to output the most recent value it has calculated.

int

Arguments

input [int]
In left inlet: Sets the exponent.
In right inlet: Sets the base value.

float

Arguments

input [float]
In left inlet: Sets the exponent.
In right inlet: Sets the base value.

  (inlet1)

Arguments

exponent [float]
Sets the exponent.

list

Arguments

base [number]
exponent [number]
A list consisting of the base-value followed by the exponent-value will cause pow to output the base-value raised to the power of the exponent.

Output

float

The base value (from the left inlet) raised to the exponent (from the right inlet).

See Also

Name Description
expr
>>
<<