Here you can find the source of pow2(double num)
public static double pow2(double num)
//package com.java2s; //License from project: Open Source License public class Main { public static double pow2(double num) { return num * num; }/* w w w. j a v a2 s.c om*/ }