fork(1) download
  1. import static java.lang.Math.*;
  2.  
  3.  
  4. class Demo {
  5. public static void main (String[] args) {
  6. double X = 42.0;
  7. double Y = 4.0;
  8. double Z = PI;
  9.  
  10. double x = -cos(X) * sin(Z) + sin(X) * sin(Y) * cos(Z);
  11. System.out.println(x);
  12. }
  13. }
Success #stdin #stdout 0.08s 380160KB
stdin
Standard input is empty
stdout
-0.6936257944660366