math.pow java
public static double pow(double a, double b)
Parameter:
a : this parameter is the base
b : this parameter is the exponent.
Return :
This method returns ab.
import java.lang.Math;
class Gfg {
// driver code
public static void main(String args[])
{
double a = 30;
double b = 2;
System.out.println(Math.pow(a, b));
a = 3;
b = 4;
System.out.println(Math.pow(a, b));
a = 2;
b = 6;
System.out.println(Math.pow(a, b));
}
Also in Java:
- java 8 loop in map
- java doreturn void
- java 8 add whole array to jsonarray
- get long from date java
- how do I change the opacity of a JButton
- java how to convert string to int
- generate random number in java within a range without repeating with android studio
- basic java coding
- has been compiled by a more recent version of the Java Runtime (class file version 56.0), this version of the Java Runtime only recognizes class file versions up to 55.0
- how to write queries in java
- how to check how many anagrams a word has in java
- java remove first character from string
- java int passed by reference
- displaying an arraylist in java
- spigot chat color with symbol
- arraylist remove method java
- kotlin jsonobject get nested
- iterate trough linked list java
- thymeleaf Expression Object dialects
- java function that returns the index of the largest value in an array
- how to sort collection in java
- java indexof array
- java how to print a newline
- java valeur absolue