Java Number Power pow(double a, double b)

Here you can find the source of pow(double a, double b)

Description

pow

License

Open Source License

Declaration

public static double pow(double a, double b) 

Method Source Code

//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;
    }
}

Related

  1. pow(double a, double b)
  2. pow(double a, double b)
  3. pow(double a, double b)
  4. pow(double a, int b)
  5. pow(double base, double exp)