fork download
  1. // -y^2 * z^2 - y^2 + 24*y*z - z^2 -13 = 0
  2. // -x^2 * z^2 - x^2 + 24*x*z - z^2 -13 = 0
  3. // -x^2 * y^2 - x^2 + 24*x*y - y^2 -13 = 0
  4. #include <stdio.h>
  5.  
  6. double f1(double x, double y, double z)
  7. {
  8. return -y*y * z*z - y*y + 24*y*z - z*z -13;
  9. }
  10. double f2(double x, double y, double z)
  11. {
  12. return -x*x * z*z - x*x + 24*x*z - z*z -13;
  13. }
  14. double f3(double x, double y, double z)
  15. {
  16. return -x*x * y*y - x*x + 24*x*y - y*y -13;
  17. }
  18.  
  19. int main()
  20. {
  21. double x = 0.77954804507915753664;
  22. double y = 0.77954804507915753664;
  23. double z = 0.77954804507915753664;
  24.  
  25. printf("f1=%.20f\n", f1(x,y,z));
  26. printf("f2=%.20f\n", f2(x,y,z));
  27. printf("f3=%.20f\n", f3(x,y,z));
  28. return 0;
  29. }
  30.  
Success #stdin #stdout 0.02s 1720KB
stdin
Standard input is empty
stdout
f1=0.00000000000000000000
f2=0.00000000000000000000
f3=0.00000000000000000000