Here you can find the source of pow(double a, double b)
public static double pow(double a, double b)
//package com.java2s; //License from project: Open Source License public class Main { public static double pow(double a, double b) { double pow = 1; for (int i = 0; i < b; i++) { pow *= a;// ww w . j ava 2 s . c o m } return pow; } }