import org.apache.commons.math3.util.FastMath; public class MathExample { public static void main(String[] args) { double x = 2.0; double y = 3.0; double squareRoot = FastMath.sqrt(x); double power = FastMath.pow(x, y); } }