fork download
  1. import java.lang.Math;
  2. import java.util.*;
  3.  
  4.  
  5. /*Please dont change class name, Dcoder
  6.   and class must not be public*/
  7.  
  8. //Compiler version JDK 1.8
  9.  
  10.  
  11. class Dcoder2
  12. {
  13. public static void main(String args[])
  14. {
  15. new Dcoder().F1();
  16. new Dcoder().F2();
  17. new Dcoder().F3();
  18. new Dcoder().F4();
  19. /*new Dcoder().F5();
  20. new Dcoder().F6();
  21. new Dcoder().F7();
  22. new Dcoder().F8();
  23. new Dcoder().F9();
  24. new Dcoder().F10();
  25. new Dcoder().F11();
  26. new Dcoder().F12();
  27. new Dcoder().F13();
  28. new Dcoder().F14();
  29. new Dcoder().F15();*/
  30.  
  31. }
  32. public void F1() {
  33. double x=14.26, y=-1.22, z=0.035;
  34. double s=(1+Math.pow(z, 2)/(3-Math.pow(z, 2)/5))*(2*Math.cos(x-2/3))/(1/2+Math.pow(Math.sin(y), 2));
  35. System.out.println("1. s = "+s);
  36. }
  37. public void F2() {
  38. double x=-4.5;
  39. double y=0.75*Math.pow(10, -4);
  40. double z=-0.845*Math.pow(10, 2);
  41. double s;
  42. s=((Math.sqrt((9+Math.pow((x-y), 2))+3))/(Math.pow(x,2)+Math.pow(y, 2)+2))-Math.pow(Math.E,Math.abs(x-y))*Math.pow(Math.tan(z),3);
  43. System.out.println("2. s = "+s);
  44. }
  45. public void F3() {
  46. double x=3.74*Math.pow(10, -2);
  47. double y=-0.825;
  48. double z=0.16*Math.pow(10, 2);
  49. double s;
  50. s=1+Math.pow(Math.sin(x+y),2)/Math.abs(x-2*y/1+Math.pow(x,2)*Math.pow(y,2))*(Math.pow(x,Math.abs(y)))+(Math.pow(Math.cos(Math.atan(-z),2)));
  51. System.out.println("3. s = "+s);
  52. }
  53. public void F4() {
  54. double x=0.4*Math.pow(10,-2);
  55. double y=-0.875;
  56. double z=-0.475*Math.pow(10,-3);
  57. double s;
  58. s=Math.abs(Math.pow(Math.cos(x)-Math.cos(y),1+2*Math.pow(Math.sin(y),2)))*(1+z+Math.pow(z,2)/2+Math.pow(z,3)/3+Math.pow(z, 4)/4);
  59. System.out.println("4. s = "+s);
  60. }
  61. /*public void F5() {
  62.   double a = 7.88, b = 4.32, x = 2*a/Math.sin(b), z = Math.tan(x) + 3*b, y = Math.pow(Math.sin(x), 2) - 2*a;
  63.   double F = 2.22*x-a+z-1/y;
  64.   System.out.println("5. F = "+F);
  65.   }
  66. public void F6() {
  67.   double a = 8.43, b = 9.38, x = ((2*a)/(9*b))*Math.cos(a), z = Math.sin(x)+2*Math.cos(x), y = a-b+Math.pow(a, 2);
  68.   double F = Math.sin(a)-(2*b)/Math.cos(x)+Math.pow(z, a)/y;
  69.   System.out.println("6. F = "+F);
  70.   }
  71. public void F7() {
  72.   double a = 7.88, b = 4.56, x = (2*b/a)*Math.sin(a), z = Math.log1p(5+x)-Math.log1p(a-x), y = Math.tan(x)-2*Math.sin(x*(a-x));
  73.   double F = Math.exp(5*Math.sin(x)) - Math.exp(2*Math.cos(x));
  74.   System.out.println("7. F = "+F);
  75.   }
  76. public void F8() {
  77.   double a = 9.89, b = 4.84, x = 0.14/2*a*b, z = Math.sin(3*x)-Math.pow(Math.cos(2*x), 2), y = Math.tan(x)-1/Math.cos(a*x);
  78.   double F = 14.2*x+Math.sqrt(x)*z-y;
  79.   System.out.println("8. F = "+F);
  80.   }
  81. public void F9() {
  82.   double a = 6.33, b = 8.44, x = Math.sqrt(a)*Math.sin(2*b), z = 4.54*(a-b)/Math.cos(2*x), y = Math.cos(x)-1/Math.tan(x);
  83.   double F = 3.14*a*x/Math.tan(b*x)+z-y;
  84.   System.out.println("9. F = "+F);
  85.   }
  86. public void F10() {
  87.   double a = 9.93, b = 7.89, x = b*Math.sin(3*a), z = a*x+Math.sin(x-b), y = 2*x-Math.tan(x-a);
  88.   double F = (5.88/1.63*x)-2*a/b*x-1/z+y;
  89.   System.out.println("10. F = "+F);
  90.   }
  91. public void F11() {
  92.   double a = 0.33, b = 7.48, x = Math.sin(2*a-b), z = 3.43*x*x-Math.log1p(Math.abs(x)), y = Math.exp(3)-2.14*Math.cos(x);
  93.   double F = a*x + Math.sin(b*x) + z - b/y;
  94.   System.out.println("11. F = "+F);
  95.   }
  96. public void F12() {
  97.   double a=1.78,b=2.33, x=4.14*a/Math.sqrt(b)*Math.tan(a), z=(1.13*a-b)/(Math.sin(x)-x), y=Math.tan(x)-1.15*x/a*b;
  98.   double F=5.18*x+x*Math.sin(x)-1.72*z+y;
  99.   System.out.println("12. F = "+F);
  100.   }
  101. public void F13() {
  102.   double a=1.73,b=8.47, x=4*Math.exp(a-2*b), z=(1-Math.cos(2*x))/2, y=(1+Math.cos(2*x))/2;
  103.   double F = (4.17*a+b)/(x-b)+z*y;
  104.   System.out.println("13. F = "+F);
  105.   }
  106. public void F14() {
  107.   double a=3.17,b=7.22, x=0.14/a, z=a*a*x-1/Math.sin(x), y=Math.tan(x)+2/Math.sin(x);
  108.   double F=1.184*x*x+Math.exp(1)+Math.log1p(z)-y;
  109.   System.out.println("14. F = "+F);
  110.   }
  111. public void F15() {
  112.   double a=5.43,b=7.88, x = 2.33*b/Math.tan(a+b), z = Math.sin(x)-b*Math.cos(x), y = Math.tan(x)-1/a*Math.tan(x);
  113.   double F = (1-Math.tan(x))/2*a*b+Math.pow(2.589,1.65);
  114.   System.out.println("15. F = "+F);
  115.   }*/
  116. }
  117.  
  118.  
  119.  
Success #stdin #stdout #stderr 0.01s 5532KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error: near line 1: near "import": syntax error
Error: near line 2: near "import": syntax error
Error: near line 8: near "/": syntax error
Error: near line 16: near "new": syntax error
Error: near line 17: near "new": syntax error
Error: near line 18: near "new": syntax error
Error: near line 31: unrecognized token: "}"
Error: near line 34: near "double": syntax error
Error: near line 35: near "System": syntax error
Error: near line 36: unrecognized token: "}"
Error: near line 39: near "double": syntax error
Error: near line 40: near "double": syntax error
Error: near line 41: near "double": syntax error
Error: near line 42: near "s": syntax error
Error: near line 43: near "System": syntax error
Error: near line 44: unrecognized token: "}"
Error: near line 47: near "double": syntax error
Error: near line 48: near "double": syntax error
Error: near line 49: near "double": syntax error
Error: near line 50: near "s": syntax error
Error: near line 51: near "System": syntax error
Error: near line 52: unrecognized token: "}"
Error: near line 55: near "double": syntax error
Error: near line 56: near "double": syntax error
Error: near line 57: near "double": syntax error
Error: near line 58: near "s": syntax error
Error: near line 59: near "System": syntax error
Error: near line 60: unrecognized token: "}"