Here you can find the source of Pow(double val, Object in)
public static final void Pow(double val, Object in)
//package com.java2s; //License from project: Open Source License public class Main { public static final void Pow(double val, Object in) { if (in == null) return; if (in instanceof double[]) { double[] inn = (double[]) in; for (int i = 0, s = inn.length; i < s; i++) inn[i] = Math.pow(val, inn[i]); } else {//from w w w .j a va2 s.c om for (int i = 0, s = ((Object[]) in).length; i < s; i++) Pow(((Object[]) in)[i], val); } } public static final void Pow(Object in, double val) { if (in == null) return; if (in instanceof double[]) { double[] inn = (double[]) in; for (int i = 0, s = inn.length; i < s; i++) inn[i] = Math.pow(inn[i], val); } else { for (int i = 0, s = ((Object[]) in).length; i < s; i++) Pow(((Object[]) in)[i], val); } } }