You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

423 lines
8.7 KiB

25 years ago
25 years ago
  1. #include "exam.h"
  2. #include <cln/ffloat.h>
  3. #include <cln/ffloat_io.h>
  4. #include <cln/integer.h>
  5. #include <cln/integer_io.h>
  6. static floor_test ffloat_floor_tests[] = {
  7. { "-0.8227301", "-0.25283414",
  8. "3", "-0.06422769" },
  9. { "-0.6686161", "0.4833234",
  10. "-2", "0.29803064" },
  11. { "-0.57436657", "0.52642506",
  12. "-2", "0.47848356" },
  13. { "0.60395426", "-0.61624163",
  14. "-1", "-0.012287392" },
  15. { "-0.21636301", "0.90365344",
  16. "-1", "0.68729043" },
  17. { "0.8705054", "-0.7953333",
  18. "-2", "-0.72016126" },
  19. { "0.4544462", "-9.890925E9",
  20. "-1", "-9.890925E9" },
  21. { "-0.4954149", "-3.8786918E9",
  22. "0", "-0.49541488" },
  23. { "-0.692049", "6.4791506E9",
  24. "-1", "6.4791506E9" },
  25. { "0.75464755", "-3.618496E9",
  26. "-1", "-3.618496E9" },
  27. { "-0.5929247", "-5.442471E9",
  28. "0", "-0.5929247" },
  29. { "-0.30383867", "9.262864E9",
  30. "-1", "9.262864E9" },
  31. { "0.9345329", "3.26737E-11",
  32. "28601991168", "0.0" },
  33. { "0.3772617", "-7.991702E-11",
  34. "-4720667648", "0.0" },
  35. { "0.74438447", "-1.0977978E-11",
  36. "-67807064064", "0.0" },
  37. { "-0.9220973", "-1.2655998E-11",
  38. "72858525696", "0.0" },
  39. { "-0.4615329", "6.48833E-11",
  40. "-7113276928", "0.0" },
  41. { "0.2851941", "-8.262349E-11",
  42. "-3451731456", "0.0" },
  43. { "0.61539984", "3.5826177E19",
  44. "0", "0.61539984" },
  45. { "-0.8195054", "8.793426E19",
  46. "-1", "8.793426E19" },
  47. { "-0.26412165", "7.015103E18",
  48. "-1", "7.015103E18" },
  49. { "-0.527393", "8.434833E19",
  50. "-1", "8.434833E19" },
  51. { "-0.1846056", "1.8252128E19",
  52. "-1", "1.8252128E19" },
  53. { "-0.6079822", "6.106683E19",
  54. "-1", "6.106683E19" },
  55. { "0.5564819", "5.953872E-21",
  56. "93465542827563810816", "0.0" },
  57. { "-0.52575815", "-1.8358678E-21",
  58. "286381261476583178240", "0.0" },
  59. { "-0.6321403", "-5.830945E-21",
  60. "108411292344853200896", "0.0" },
  61. { "-0.9675891", "-9.936226E-21",
  62. "97379936163841703936", "0.0" },
  63. { "-0.63503754", "-5.0137436E-21",
  64. "126659359065470140416", "0.0" },
  65. { "0.8053654", "-3.4055888E-22",
  66. "-2364834534832713236480", "0.0" },
  67. { "8.784645E9", "0.9775517",
  68. "8986374144", "0.0" },
  69. { "-9.314413E9", "-0.8318871",
  70. "11196726272", "0.0" },
  71. { "8.4695936E9", "-0.9823455",
  72. "-8621807616", "0.0" },
  73. { "-5.8406625E9", "-0.031723082",
  74. "184113971200", "0.0" },
  75. { "-7.325545E9", "0.93169844",
  76. "-7862571008", "0.0" },
  77. { "-5.2999526E9", "0.11515945",
  78. "-46022733824", "0.0" },
  79. { "6.680458E9", "7.170729E9",
  80. "0", "6.680458E9" },
  81. { "-2.2146278E9", "5.2909993E9",
  82. "-1", "3.0763715E9" },
  83. { "6.4947005E9", "3.1265188E9",
  84. "2", "2.4166298E8" },
  85. { "7.947109E9", "2.464481E9",
  86. "3", "5.53666E8" },
  87. { "8.899791E9", "3.5788132E9",
  88. "2", "1.7421644E9" },
  89. { "5.272568E9", "-5.3260964E9",
  90. "-1", "-5.3528532E7" },
  91. { "9.729838E8", "8.6379175E-11",
  92. "11264101901890748416", "0.0" },
  93. { "1.210882E9", "-4.412428E-11",
  94. "-27442532596777484288", "0.0" },
  95. { "9.169561E9", "-9.41537E-11",
  96. "-97389277614631288832", "0.0" },
  97. { "9.289745E9", "3.1269442E-11",
  98. "297087021478284623872", "0.0" },
  99. { "-5.334722E9", "2.0158666E-11",
  100. "-264636651022615314432", "0.0" },
  101. { "9.910798E9", "-2.985589E-11",
  102. "-331954558296456691712", "0.0" },
  103. { "-1.7169357E9", "2.220112E19",
  104. "-1", "2.220112E19" },
  105. { "4.9906683E9", "6.857979E19",
  106. "0", "4.9906683E9" },
  107. { "-9.90463E9", "-2.342953E19",
  108. "0", "-9.90463E9" },
  109. { "-5.4878054E8", "5.438576E19",
  110. "-1", "5.438576E19" },
  111. { "-6.1080986E9", "9.25119E19",
  112. "-1", "9.25119E19" },
  113. { "-8.4138286E9", "-9.682224E19",
  114. "0", "-8.4138286E9" },
  115. { "2.7084977E9", "2.542436E-23",
  116. "106531597407755826831748572905472", "0.0" },
  117. { "-5.720767E9", "9.438407E-21",
  118. "-606115738076318963177881600000", "0.0" },
  119. { "-3.4958034E9", "9.250327E-21",
  120. "-377911344579488968728001904640", "0.0" },
  121. { "-8.3702047E9", "6.0186186E-21",
  122. "-1390718493086361392338557730816", "0.0" },
  123. { "-7.517619E9", "-9.417701E-21",
  124. "798243593937800371539149848576", "0.0" },
  125. { "-2.1220838E9", "3.931208E-21",
  126. "-539804494597454582830132625408", "0.0" },
  127. { "-3.9606828E-11", "0.34267086",
  128. "-1", "0.34267086" },
  129. { "2.495503E-11", "-0.4518087",
  130. "-1", "-0.4518087" },
  131. { "-7.98698E-11", "-0.5665642",
  132. "0", "-7.98698E-11" },
  133. { "2.1465689E-11", "0.17276591",
  134. "0", "2.146569E-11" },
  135. { "4.9463066E-11", "-0.5659616",
  136. "-1", "-0.5659616" },
  137. { "-1.8961567E-11", "-0.7758364",
  138. "0", "-1.8961567E-11" },
  139. { "7.8871874E-11", "-5.768549E9",
  140. "-1", "-5.768549E9" },
  141. { "-9.079439E-11", "-3.807195E9",
  142. "0", "-9.079439E-11" },
  143. { "7.879919E-12", "-1.9198149E9",
  144. "-1", "-1.9198149E9" },
  145. { "4.389072E-11", "-8.657572E9",
  146. "-1", "-8.657572E9" },
  147. { "7.430157E-11", "-3.8599355E9",
  148. "-1", "-3.8599355E9" },
  149. { "-5.8839114E-11", "-5.3409536E9",
  150. "0", "-5.8839114E-11" },
  151. { "-3.3353615E-11", "8.9096924E-11",
  152. "-1", "5.574331E-11" },
  153. { "6.335122E-11", "3.606541E-11",
  154. "1", "2.7285809E-11" },
  155. { "-5.6885465E-11", "7.070333E-12",
  156. "-9", "6.7475353E-12" },
  157. { "-7.581576E-11", "-3.4334775E-11",
  158. "2", "-7.1462155E-12" },
  159. { "3.6686505E-11", "-1.9221425E-11",
  160. "-2", "-1.7563462E-12" },
  161. { "3.066395E-11", "-2.3198866E-11",
  162. "-2", "-1.573378E-11" },
  163. { "9.1089344E-11", "7.429058E19",
  164. "0", "9.1089344E-11" },
  165. { "-7.2265194E-11", "-6.5831596E19",
  166. "0", "-7.2265194E-11" },
  167. { "-4.9087675E-11", "1.9182038E19",
  168. "-1", "1.9182038E19" },
  169. { "-7.907188E-11", "4.405831E19",
  170. "-1", "4.405831E19" },
  171. { "6.118759E-11", "3.4342181E19",
  172. "0", "6.118759E-11" },
  173. { "5.4731882E-11", "-5.861447E19",
  174. "-1", "-5.861447E19" },
  175. { "6.121101E-11", "-1.8234462E-21",
  176. "-33568860160", "0.0" },
  177. { "9.788758E-11", "-2.65478E-21",
  178. "-36872200192", "0.0" },
  179. { "7.827001E-11", "-8.5754775E-21",
  180. "-9127189504", "0.0" },
  181. { "-3.738018E-11", "-7.810784E-21",
  182. "4785714176", "0.0" },
  183. { "7.31308E-11", "-2.0431058E-21",
  184. "-35793936384", "0.0" },
  185. { "9.4578095E-11", "-3.0466443E-21",
  186. "-31043366912", "0.0" },
  187. { "-4.8186137E19", "-0.95250696",
  188. "50588749896299315200", "0.0" },
  189. { "9.548003E18", "-0.9061317",
  190. "-10537102614582001664", "0.0" },
  191. { "5.5254813E19", "0.51959753",
  192. "106341562860634636288", "0.0" },
  193. { "-4.2787504E19", "0.14769173",
  194. "-289708190148186865664", "0.0" },
  195. { "-4.27109E17", "-0.03677529",
  196. "11614021477430460416", "0.0" },
  197. { "-3.9238043E19", "0.26663417",
  198. "-147160597790283792384", "0.0" },
  199. { "-2.0174873E19", "-6.7035556E7",
  200. "300957794304", "0.0" },
  201. { "1.6296811E19", "-7.2014956E9",
  202. "-2262976000", "0.0" },
  203. { "7.794499E19", "-7.412829E9",
  204. "-10514876416", "0.0" },
  205. { "-1.2546485E19", "6.1565005E9",
  206. "-2037924864", "0.0" },
  207. { "5.4549757E18", "-4.778849E9",
  208. "-1141483264", "0.0" },
  209. { "-8.9214324E18", "3.0002557E9",
  210. "-2973557248", "0.0" },
  211. { "8.790958E19", "-8.224902E-11",
  212. "-1068822197453670185020302557184", "0.0" },
  213. { "9.029222E18", "1.3127345E-11",
  214. "687817816164697187548814901248", "0.0" },
  215. { "6.7356843E19", "-9.1816894E-11",
  216. "-733599685837775742566290948096", "0.0" },
  217. { "4.0346153E19", "2.0593792E-11",
  218. "1959141510822234462049892564992", "0.0" },
  219. { "1.3402778E19", "-4.8733902E-11",
  220. "-275019611403690085233016700928", "0.0" },
  221. { "-1.3005549E19", "5.6579824E-11",
  222. "-229861963021783171398467846144", "0.0" },
  223. { "8.550302E19", "6.4624324E19",
  224. "1", "2.0878699E19" },
  225. { "4.7897585E19", "-1.5724218E19",
  226. "-4", "-1.4999288E19" },
  227. { "-8.6050445E19", "1.4007867E19",
  228. "-7", "1.2004627E19" },
  229. { "-6.0799387E19", "-5.667626E19",
  230. "1", "-4.1231221E18" },
  231. { "-7.847746E19", "-3.972193E19",
  232. "1", "-3.875553E19" },
  233. { "-6.425414E19", "3.0601436E19",
  234. "-3", "2.7550168E19" },
  235. { "2.8220074E-21", "-0.9401483",
  236. "-1", "-0.9401483" },
  237. { "9.867747E-21", "0.86288685",
  238. "0", "9.867747E-21" },
  239. { "6.2856053E-21", "-0.5235996",
  240. "-1", "-0.5235996" },
  241. { "8.709991E-22", "0.42678982",
  242. "0", "8.709991E-22" },
  243. { "1.0493481E-21", "0.9355661",
  244. "0", "1.0493481E-21" },
  245. { "-6.137466E-21", "0.4328317",
  246. "-1", "0.4328317" },
  247. { "6.5872774E-21", "-8.80464E9",
  248. "-1", "-8.80464E9" },
  249. { "-1.0479629E-22", "-9.353607E9",
  250. "0", "-1.0479629E-22" },
  251. { "-2.636932E-21", "9.794678E9",
  252. "-1", "9.794678E9" },
  253. { "-7.912024E-21", "-2.9102356E9",
  254. "0", "-7.912024E-21" },
  255. { "1.0071349E-21", "8.762459E9",
  256. "0", "1.0071349E-21" },
  257. { "-6.795979E-21", "-9.445545E9",
  258. "0", "-6.795979E-21" },
  259. { "6.0598967E-22", "-3.961637E-11",
  260. "-1", "-3.961637E-11" },
  261. { "3.481348E-21", "-7.485006E-11",
  262. "-1", "-7.485006E-11" },
  263. { "-5.610974E-21", "-4.073898E-11",
  264. "0", "-5.610974E-21" },
  265. { "-6.2362584E-21", "8.403202E-11",
  266. "-1", "8.403202E-11" },
  267. { "4.2029927E-21", "7.823452E-11",
  268. "0", "4.2029927E-21" },
  269. { "-7.765272E-21", "-8.502908E-11",
  270. "0", "-7.765272E-21" },
  271. { "2.7845436E-21", "3.490416E-21",
  272. "0", "2.7845436E-21" },
  273. { "-1.4630091E-21", "9.193901E-21",
  274. "-1", "7.730892E-21" },
  275. { "-8.1823826E-21", "8.941324E-21",
  276. "-1", "7.5894165E-22" },
  277. { "-1.8218875E-21", "3.8057304E-21",
  278. "-1", "1.9838427E-21" },
  279. { "5.8037763E-21", "-5.1721612E-21",
  280. "-2", "-4.5405462E-21" },
  281. { "-8.179982E-21", "6.2204556E-21",
  282. "-2", "4.2609293E-21" },
  283. };