Transform Reference Guide

^

Exponentiation of two values

Syntax

^ rval

Options

Inlets

Outlets

Comments

The exponentiation operator computes the value ab, where a is the value of param1 and b is the value of param2. The operator accepts inputs and initialization arguments of any numeric type (ints, floats, doubles, complex and double complex) as well as samples and lists. Different types can be mixed and matched. For example, a float and an int (or an int and a float) yields a float result, while exponentiation of audio samples by a float power yields audio samples where the each sample value is raised to the power of the float argument. Exponentiation on list inputs is performed element-wise, where each element in the list could be a different type.

This operator outputs a result whever a new value is received via the left inlet param1, using the new value of param1 and the most recent value of param2, or the optional initial argument if no value has yet been received for param2. If you want to wait until both param1 and param2 receive new input values before computing a result, use the synchronous operator '^ instead.

See Also

OSW Programming Details
'^
Expr

Open Sound World User Guide
© 2000-2004 Amar Chaudhary. All rights reserved.