fork download
  1. importPackage(java.io);
  2. importPackage(java.lang);
  3.  
  4. function funj(x)
  5. { rad = x * Math.PI / 180
  6. a = Math.pow(x, 1/4)
  7. b = Math.sqrt(x); // System.out.println(b)
  8. c = Math.cos(rad); System.out.println(c)
  9. d = Math.log10(x); // System.out.println(d)
  10. e = Math.exp(b)
  11. f = Math.log10(b) * Math.log(e)
  12. funj = a + b + c + d + e + f
  13. return funj
  14. }
  15.  
  16. x = 90
  17. System.out.println(x + "\t")
  18. System.out.println("\n" + funj(x))
  19.  
Success #stdin #stdout 0.51s 44044KB
stdin
Standard input is empty
stdout
90	
6.123233995736766E-17

13208.763002401542