Guest User

prog2

a guest
Oct 23rd, 2019
58
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. double det_hilbert(int n) {
  2. double det_h = 1.0;
  3. double det_b = 1.0;
  4. for (int i = 1; i < n - 1; i++){
  5. det_h *= fact(i);
  6. }
  7. det_h = pow(det_h, 4);
  8. for (int j = 1; j < 2*n - 1; j++){
  9. det_b *= fact(j);
  10. }
  11. double det = det_h / det_b;
  12. return det;
  13. }
RAW Paste Data