Advertisement
srjchoubey2

lv mc integration - 5

Aug 20th, 2021 (edited)
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.04 KB | None | 0 0
  1. agentperry@warmachine86:~/Documents/CodeFiles2/GeomScale/volesti_fork/test/build$ ./lv_mc_integration
  2. [doctest] doctest version is "1.2.9"
  3. [doctest] run with "--help" for options
  4.  
  5. =======================================================================================================
  6. INTEGRATION OF exp(-X.dot(X)) for dimensions 1 to 10  and cube of [-1,1]^n and volume = 2^n
  7. =======================================================================================================
  8.  
  9. Volume = 1.95329
  10. Computed integration value = 1.46268
  11. Expected integration value = 1.49364
  12. Exact integration value = 1.49364
  13. Relative error (expected) = 0.0207273
  14. Relative error (exact) = 0.0207273
  15. Volume = 4.00056
  16. Computed integration value = 2.23182
  17. Expected integration value = 2.23096
  18. Exact integration value = 2.23096
  19. Relative error (expected) = 0.000386614
  20. Relative error (exact) = 0.000386614
  21. Volume = 8.02979
  22. Computed integration value = 3.34979
  23. Expected integration value = 3.33225
  24. Exact integration value = 3.33225
  25. Relative error (expected) = 0.00526319
  26. Relative error (exact) = 0.00526319
  27. Volume = 15.9805
  28. Computed integration value = 4.97685
  29. Expected integration value = 4.97718
  30. Exact integration value = 4.97718
  31. Relative error (expected) = 6.65524e-05
  32. Relative error (exact) = 6.65524e-05
  33. Volume = 32.006
  34. Computed integration value = 7.44508
  35. Expected integration value = 7.43412
  36. Exact integration value = 7.43412
  37. Relative error (expected) = 0.00147361
  38. Relative error (exact) = 0.00147361
  39. Volume = 64.1528
  40. Computed integration value = 11.1288
  41. Expected integration value = 11.1039
  42. Exact integration value = 11.1039
  43. Relative error (expected) = 0.00223979
  44. Relative error (exact) = 0.00223979
  45. Volume = 127.786
  46. Computed integration value = 16.562
  47. Expected integration value = 16.5852
  48. Exact integration value = 16.5852
  49. Relative error (expected) = 0.00139981
  50. Relative error (exact) = 0.00139981
  51. Volume = 257.029
  52. Computed integration value = 24.8835
  53. Expected integration value = 24.7724
  54. Exact integration value = 24.7724
  55. Relative error (expected) = 0.00448377
  56. Relative error (exact) = 0.00448377
  57. Volume = 511.314
  58. Computed integration value = 36.9709
  59. Expected integration value = 37.001
  60. Exact integration value = 37.001
  61. Relative error (expected) = 0.000812445
  62. Relative error (exact) = 0.000812445
  63. Volume = 1031.5
  64. Computed integration value = 55.7236
  65. Expected integration value = 55.2662
  66. Exact integration value = 55.2662
  67. Relative error (expected) = 0.00827627
  68. Relative error (exact) = 0.00827627
  69. =======================================================================================================
  70. INTEGRATION OF exp(-X.dot(X)-X.sum()) for dimensions 1 to 10 and cube of [-1,1]^n and volume = 2^n
  71. =======================================================================================================
  72. Volume = 2.19761
  73. Computed integration value = 1.86413
  74. Expected integration value = 1.69166
  75. Exact integration value = 1.69166
  76. Relative error (expected) = 0.101955
  77. Relative error (exact) = 0.101955
  78. Volume = 3.99323
  79. Computed integration value = 2.85742
  80. Expected integration value = 2.86171
  81. Exact integration value = 2.86171
  82. Relative error (expected) = 0.00149813
  83. Relative error (exact) = 0.00149813
  84. Volume = 8.03054
  85. Computed integration value = 4.85931
  86. Expected integration value = 4.84105
  87. Exact integration value = 4.84105
  88. Relative error (expected) = 0.00377251
  89. Relative error (exact) = 0.00377251
  90. Volume = 15.9182
  91. Computed integration value = 8.15143
  92. Expected integration value = 8.1894
  93. Exact integration value = 8.1894
  94. Relative error (expected) = 0.00463618
  95. Relative error (exact) = 0.00463618
  96. Volume = 31.8702
  97. Computed integration value = 13.7964
  98. Expected integration value = 13.8537
  99. Exact integration value = 13.8537
  100. Relative error (expected) = 0.00413417
  101. Relative error (exact) = 0.00413417
  102. Volume = 63.8002
  103. Computed integration value = 23.3696
  104. Expected integration value = 23.4357
  105. Exact integration value = 23.4357
  106. Relative error (expected) = 0.00281906
  107. Relative error (exact) = 0.00281906
  108. Volume = 127.926
  109. Computed integration value = 39.5835
  110. Expected integration value = 39.6453
  111. Exact integration value = 39.6453
  112. Relative error (expected) = 0.0015576
  113. Relative error (exact) = 0.0015576
  114. Volume = 256.856
  115. Computed integration value = 67.2365
  116. Expected integration value = 67.0663
  117. Exact integration value = 67.0663
  118. Relative error (expected) = 0.00253794
  119. Relative error (exact) = 0.00253794
  120. Volume = 511.118
  121. Computed integration value = 113.552
  122. Expected integration value = 113.453
  123. Exact integration value = 113.453
  124. Relative error (expected) = 0.000869309
  125. Relative error (exact) = 0.000869309
  126. Volume = 1028.14
  127. Computed integration value = 193.451
  128. Expected integration value = 191.925
  129. Exact integration value = 191.925
  130. Relative error (expected) = 0.00794976
  131. Relative error (exact) = 0.00794976
  132. ===============================================================================
  133. [doctest] test cases:      2 |      2 passed |      0 failed |      0 skipped
  134. [doctest] assertions:      0 |      0 passed |      0 failed |
  135. [doctest] Status: SUCCESS!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement