public class ArithmeticExpressions { public static void main(String[] args) { double c=2, m=1, r=2, s=2, x=5, y=3; double z; // (a) z = Math.sqrt(x*x + y*y); System.out.println("(a) z = " + z); // (b) z = 4.0/3.0* Math.PI * Math.pow(r, 3); System.out.println("(b) z = " + z); // (c) z = 1.0/c - x/3.0; System.out.println("(c) z = " + z); // (d) z = Math.sqrt(1 + Math.pow(Math.tan(x), 2)); System.out.println("(d) z = " + z); // (e) z = 1.0/Math.sqrt(2*Math.PI*s*s)*Math.exp(-Math.pow(x-m, 2)/(2*s*s)); System.out.println("(e) z = " + z); } }