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.

420 lines
8.1 KiB

25 years ago
25 years ago
  1. #include "exam.h"
  2. #include <cln/sfloat.h>
  3. #include <cln/sfloat_io.h>
  4. #include <cln/integer.h>
  5. #include <cln/integer_io.h>
  6. static floor_test sfloat_floor_tests[] = {
  7. { "-0.403114s0", "0.64293s0",
  8. "-1", "0.239813s0" },
  9. { "-0.538574s0", "0.74157s0",
  10. "-1", "0.202993s0" },
  11. { "0.59919s0", "-0.433258s0",
  12. "-2", "-0.26733s0" },
  13. { "-0.62148s0", "-0.185875s0",
  14. "3", "-0.063861s0" },
  15. { "0.298317s0", "-0.79534s0",
  16. "-1", "-0.49703s0" },
  17. { "0.84822s0", "9.519s9",
  18. "0", "0.84822s0" },
  19. { "0.185059s0", "-4.4452s9",
  20. "-1", "-4.4452s9" },
  21. { "-0.442635s0", "-4.64486s9",
  22. "0", "-0.442635s0" },
  23. { "0.78401s0", "-8.4401s9",
  24. "-1", "-8.4401s9" },
  25. { "0.300156s0", "-4.4083s9",
  26. "-1", "-4.4083s9" },
  27. { "0.67763s0", "2.54755s9",
  28. "0", "0.67763s0" },
  29. { "-0.189995s0", "-1.9236s-13",
  30. "987708260352", "0.0s0" },
  31. { "0.442696s0", "-4.184s-15",
  32. "-105806519336960", "0.0s0" },
  33. { "0.175987s0", "-5.055s-15",
  34. "-34814468030464", "0.0s0" },
  35. { "0.30565s0", "-4.296s-14",
  36. "-7114747543552", "0.0s0" },
  37. { "0.256264s0", "4.541s-14",
  38. "5643318591488", "0.0s0" },
  39. { "-0.51656s0", "4.057s-14",
  40. "-12732698984448", "0.0s0" },
  41. { "-0.221672s0", "-5.9783s19",
  42. "0", "-0.221672s0" },
  43. { "-0.441925s0", "-8.1227s19",
  44. "0", "-0.441925s0" },
  45. { "0.73287s0", "-3.99683s19",
  46. "-1", "-3.99683s19" },
  47. { "-0.376198s0", "9.1146s19",
  48. "-1", "9.1146s19" },
  49. { "0.61628s0", "-5.83824s19",
  50. "-1", "-5.83824s19" },
  51. { "-0.072037s0", "4.40705s19",
  52. "-1", "4.40705s19" },
  53. { "0.378708s0", "3.258s-24",
  54. "116238699015966918967296", "0.0s0" },
  55. { "0.98937s0", "-7.698s-24",
  56. "-128524230569057480343552", "0.0s0" },
  57. { "-0.94075s0", "-1.0053s-23",
  58. "93579179764423948500992", "0.0s0" },
  59. { "0.263123s0", "-3.060s-24",
  60. "-85988344578092468011008", "0.0s0" },
  61. { "-0.58892s0", "-1.1106s-23",
  62. "53027471682887319814144", "0.0s0" },
  63. { "-0.38977s0", "-2.812s-24",
  64. "138609987891358177689600", "0.0s0" },
  65. { "-1.46599s9", "0.338676s0",
  66. "-4328587264", "0.0s0" },
  67. { "-6.326s9", "0.91743s0",
  68. "-6895370240", "0.0s0" },
  69. { "-3.63617s9", "-0.569855s0",
  70. "6380847104", "0.0s0" },
  71. { "-1.45737s9", "0.9508s0",
  72. "-1532788736", "0.0s0" },
  73. { "5.24714s9", "0.45768s0",
  74. "11464605696", "0.0s0" },
  75. { "8.1693s9", "0.69472s0",
  76. "11759255552", "0.0s0" },
  77. { "-2.7664s9", "-1.9246s9",
  78. "1", "-8.418s8" },
  79. { "8.29057s9", "-7.18694s9",
  80. "-2", "-6.0833s9" },
  81. { "6.7409s9", "8.9158s9",
  82. "0", "6.7409s9" },
  83. { "9.4039s9", "-1.80932s9",
  84. "-6", "-1.45206s9" },
  85. { "4.4432s9", "-7.587s9",
  86. "-1", "-3.14373s9" },
  87. { "-4.8365s9", "-3.4401s8",
  88. "14", "-2.03249s7" },
  89. { "4.70575s9", "2.813s-15",
  90. "1672861433068424397848576", "0.0s0" },
  91. { "8.37706s8", "1.1696s-13",
  92. "7162308674587923054592", "0.0s0" },
  93. { "4.9421s9", "3.384s-15",
  94. "1460410281571511491887104", "0.0s0" },
  95. { "9.4391s8", "6.964s-14",
  96. "13554177553722320617472", "0.0s0" },
  97. { "3.56217s8", "3.380s-14",
  98. "10538999588799264063488", "0.0s0" },
  99. { "7.53166s9", "7.011s-14",
  100. "107426919956256787529728", "0.0s0" },
  101. { "-5.3385s9", "-7.8903s19",
  102. "0", "-5.3385s9" },
  103. { "-5.5786s8", "-6.5112s19",
  104. "0", "-5.5786s8" },
  105. { "-7.0502s9", "-2.57187s18",
  106. "0", "-7.0502s9" },
  107. { "3.48724s9", "3.0864s19",
  108. "0", "3.48724s9" },
  109. { "-1.195s9", "6.9068s19",
  110. "-1", "6.9068s19" },
  111. { "6.40785s9", "6.1696s19",
  112. "0", "6.40785s9" },
  113. { "-9.9772s9", "-3.455s-24",
  114. "2887787295482420840947083445796864", "0.0s0" },
  115. { "6.3337s9", "-2.757s-24",
  116. "-2297319607304237298946798769930240", "0.0s0" },
  117. { "2.24916s9", "8.958s-24",
  118. "251078998767860827355040375111680", "0.0s0" },
  119. { "-4.695s9", "-9.695s-24",
  120. "484267288087969338977238606938112", "0.0s0" },
  121. { "-5.84457s9", "-7.7713s-22",
  122. "7520717852416051178813723246592", "0.0s0" },
  123. { "-2.01576s9", "6.682s-24",
  124. "-301671132293375748429617783898112", "0.0s0" },
  125. { "1.7042s-13", "-0.80732s0",
  126. "-1", "-0.80732s0" },
  127. { "4.959s-14", "0.9918s0",
  128. "0", "4.959s-14" },
  129. { "2.0820s-13", "0.75837s0",
  130. "0", "2.08202s-13" },
  131. { "4.808s-14", "0.89121s0",
  132. "0", "4.808s-14" },
  133. { "-4.005s-14", "0.71084s0",
  134. "-1", "0.71084s0" },
  135. { "4.497s-14", "-0.83223s0",
  136. "-1", "-0.83223s0" },
  137. { "-4.538s-14", "3.81524s9",
  138. "-1", "3.81524s9" },
  139. { "-1.0888s-13", "2.5705s9",
  140. "-1", "2.5705s9" },
  141. { "-1.0445s-15", "3.9579s9",
  142. "-1", "3.9579s9" },
  143. { "-3.399s-14", "3.8115s9",
  144. "-1", "3.8115s9" },
  145. { "8.889s-14", "1.02951s9",
  146. "0", "8.889s-14" },
  147. { "-4.408s-14", "-5.5562s9",
  148. "0", "-4.40806s-14" },
  149. { "1.4679s-13", "-1.9105s-13",
  150. "-1", "-4.426s-14" },
  151. { "1.2740s-14", "-4.935s-14",
  152. "-1", "-3.661s-14" },
  153. { "-4.321s-14", "-8.355s-14",
  154. "0", "-4.32102s-14" },
  155. { "-1.1228s-13", "-3.641s-14",
  156. "3", "-3.0501s-15" },
  157. { "4.643s-14", "9.809s-14",
  158. "0", "4.643s-14" },
  159. { "6.832s-14", "1.2918s-13",
  160. "0", "6.832s-14" },
  161. { "-3.186s-15", "7.2502s19",
  162. "-1", "7.2502s19" },
  163. { "7.570s-14", "-6.8838s19",
  164. "-1", "-6.8838s19" },
  165. { "-1.5446s-14", "-8.6798s19",
  166. "0", "-1.5446s-14" },
  167. { "-1.2496s-13", "-8.0029s19",
  168. "0", "-1.24963s-13" },
  169. { "-3.303s-15", "-9.7969s19",
  170. "0", "-3.303s-15" },
  171. { "-3.832s-14", "5.17976s19",
  172. "-1", "5.17976s19" },
  173. { "-1.1039s-13", "1.1031s-23",
  174. "-10007216128", "0.0s0" },
  175. { "-3.303s-14", "-1.61171s-21",
  176. "20493824", "0.0s0" },
  177. { "3.660s-14", "-1.3664s-23",
  178. "-2678554624", "0.0s0" },
  179. { "-1.9574s-13", "-6.864s-24",
  180. "28516810752", "0.0s0" },
  181. { "3.285s-14", "-3.329s-24",
  182. "-9867755520", "0.0s0" },
  183. { "-3.291s-15", "4.2038s-23",
  184. "-78285824", "0.0s0" },
  185. { "-7.18707s19", "0.231445s0",
  186. "-310527697906823069696", "0.0s0" },
  187. { "9.5173s19", "-0.0566254s0",
  188. "-1680761395333178589184", "0.0s0" },
  189. { "-6.6524s19", "-0.697136s0",
  190. "95424520704539754496", "0.0s0" },
  191. { "3.42423s19", "0.68306s0",
  192. "50130693352167833600", "0.0s0" },
  193. { "-7.2388s19", "0.0522995s0",
  194. "-1384100280679029276672", "0.0s0" },
  195. { "5.9235s18", "-0.24643s0",
  196. "-24037400061136601088", "0.0s0" },
  197. { "-2.63137s18", "-1.6819s9",
  198. "1564524544", "0.0s0" },
  199. { "2.4749s19", "-2.36457s9",
  200. "-10466623488", "0.0s0" },
  201. { "-2.07847s19", "6.4981s9",
  202. "-3198582784", "0.0s0" },
  203. { "-2.54907s19", "4.4446s9",
  204. "-5735186432", "0.0s0" },
  205. { "2.34573s19", "3.0757s9",
  206. "7626620928", "0.0s0" },
  207. { "-1.93055s19", "4.8192s9",
  208. "-4005953536", "0.0s0" },
  209. { "4.4928s19", "9.588s-14",
  210. "468585063670302141654816501268480", "0.0s0" },
  211. { "-2.17698s19", "-3.259s-14",
  212. "667992445198391196335567431270400", "0.0s0" },
  213. { "-8.3605s19", "-1.2702s-13",
  214. "658197863607565267600565560410112", "0.0s0" },
  215. { "5.2775s19", "3.555s-15",
  216. "14845297722947765992252704150257664", "0.0s0" },
  217. { "-5.0371s19", "6.922s-15",
  218. "-7276948270610150879291824750460928", "0.0s0" },
  219. { "8.3107s18", "-1.0201s-13",
  220. "-81468833985370875891111365181440", "0.0s0" },
  221. { "-3.8796s19", "3.8685s19",
  222. "-2", "3.85733s19" },
  223. { "4.11224s18", "-7.757s19",
  224. "-1", "-7.34577s19" },
  225. { "-1.7228s19", "-6.0107s19",
  226. "0", "-1.72278s19" },
  227. { "9.1191s19", "-4.49645s19",
  228. "-3", "-4.3702s19" },
  229. { "4.2755s19", "8.9417s19",
  230. "0", "4.2755s19" },
  231. { "-4.3237s19", "-1.9687s19",
  232. "2", "-3.86314s18" },
  233. { "3.109s-24", "0.00614166s0",
  234. "0", "3.109s-24" },
  235. { "-6.2027s-23", "0.0328217s0",
  236. "-1", "0.0328217s0" },
  237. { "-6.017s-24", "0.76966s0",
  238. "-1", "0.76966s0" },
  239. { "-7.628s-24", "0.47249s0",
  240. "-1", "0.47249s0" },
  241. { "3.323s-24", "-0.86671s0",
  242. "-1", "-0.86671s0" },
  243. { "-5.302s-24", "0.0245514s0",
  244. "-1", "0.0245514s0" },
  245. { "5.342s-24", "6.0717s9",
  246. "0", "5.34194s-24" },
  247. { "-2.664s-24", "5.573s9",
  248. "-1", "5.573s9" },
  249. { "-2.830s-24", "7.0363s9",
  250. "-1", "7.0363s9" },
  251. { "-3.176s-24", "1.12686s9",
  252. "-1", "1.12686s9" },
  253. { "-2.2026s-22", "-3.99255s9",
  254. "0", "-2.2026s-22" },
  255. { "6.994s-24", "5.81167s9",
  256. "0", "6.994s-24" },
  257. { "6.054s-24", "-8.915s-14",
  258. "-1", "-8.915s-14" },
  259. { "2.875s-24", "3.652s-14",
  260. "0", "2.875s-24" },
  261. { "-1.57853s-22", "-4.501s-14",
  262. "0", "-1.57853s-22" },
  263. { "-1.3880s-23", "-1.0479s-13",
  264. "0", "-1.388s-23" },
  265. { "-8.879s-24", "3.974s-14",
  266. "-1", "3.974s-14" },
  267. { "-1.14395s-21", "-4.527s-14",
  268. "0", "-1.14395s-21" },
  269. { "6.149s-24", "9.418s-24",
  270. "0", "6.149s-24" },
  271. { "7.661s-24", "-2.956s-24",
  272. "-3", "-1.20701s-24" },
  273. { "3.254s-24", "1.2764s-22",
  274. "0", "3.254s-24" },
  275. { "-5.4542s-22", "5.574s-24",
  276. "-98", "8.2738s-25" },
  277. { "-1.4523s-23", "3.091s-24",
  278. "-5", "9.3198s-25" },
  279. { "-5.913s-24", "8.419s-24",
  280. "-1", "2.506s-24" },
  281. };