math.POW implements a binding to the Java function {@link java.lang.Math#pow(double,double) Math.pow(double,double)}. Given a tuple with two data atom it Returns the the value of the first argument raised to the power of the second argument.
Parameters:
value - Tuple containing two DataAtom [double].
Return Value:
DataAtom [double]
Return Schema:
POW_inputSchema
Example:
register math.jar; A = load 'mydata' using PigStorage() as ( float1 ); B = foreach A generate float1, math.POW(float1);
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.