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.

457 lines
14 KiB

25 years ago
25 years ago
  1. #include "exam.h"
  2. #include <cln/lfloat.h>
  3. #include <cln/lfloat_io.h>
  4. static minus_test lfloat_minus_tests[] = {
  5. { "0.3211111183819802968L0", "-0.7024866236309383056L0",
  6. "1.0235977420129186024L0" },
  7. { "-0.29770116676264721836L0", "0.8494818768850108081L0",
  8. "-1.1471830436476580264L0" },
  9. { "-0.7677860965279355367L0", "0.9474539728585997539L0",
  10. "-1.7152400693865352905L0" },
  11. { "-0.25414380069764370257L0", "0.82619594943351718565L0",
  12. "-1.0803397501311608883L0" },
  13. { "0.21685951051311267031L0", "0.13084151170902027524L0",
  14. "0.08601799880409239507L0" },
  15. { "-0.6658362643286463323L0", "-0.101768362258000388376L0",
  16. "-0.56406790207064594393L0" },
  17. { "-0.8594165074009265017L0", "3.58724520062188585L9",
  18. "-3.5872452014813023575L9" },
  19. { "-0.58779846333918551446L0", "-2.8410824560251060135L9",
  20. "2.84108245543730755L9" },
  21. { "0.37819983918255152712L0", "1.75837003745458279L9",
  22. "-1.7583700370763829509L9" },
  23. { "-0.19345242719447268632L0", "-8.900743696911070234L9",
  24. "8.900743696717617807L9" },
  25. { "0.9170636757513836193L0", "-5.181144559509726756L9",
  26. "5.1811445604267904316L9" },
  27. { "0.20643137049004858552L0", "3.3215544303850617772L9",
  28. "-3.3215544301786304067L9" },
  29. { "-0.4014437452394343757L0", "4.7898418688154180505L-11",
  30. "-0.40144374528733279438L0" },
  31. { "0.0725076594551243524L0", "-3.5321788599004111594L-11",
  32. "0.072507659490446140996L0" },
  33. { "-0.65551702819898271043L0", "3.1653130032883009534L-11",
  34. "-0.6555170282306358405L0" },
  35. { "0.9237105409310637695L0", "-8.9028024814928743296L-11",
  36. "0.9237105410200917943L0" },
  37. { "0.8779771368966066218L0", "7.399233988536237696L-12",
  38. "0.8779771368892073878L0" },
  39. { "0.51385216558296334914L0", "-3.3989256599054576304L-11",
  40. "0.51385216561695260575L0" },
  41. { "0.74939199427992763254L0", "-6.6998781480191798724L19",
  42. "6.6998781480191798724L19" },
  43. { "0.8073774220299670944L0", "2.0433771569275457978L18",
  44. "-2.043377156927545797L18" },
  45. { "-0.75286822781531276375L0", "-7.7011647701976081504L19",
  46. "7.7011647701976081504L19" },
  47. { "-0.6361916050116532222L0", "1.2717052281488651182L19",
  48. "-1.2717052281488651183L19" },
  49. { "0.08977643006115956575L0", "1.2624046205072289204L19",
  50. "-1.2624046205072289204L19" },
  51. { "-0.4220171145412169327L0", "8.9155115345908061576L19",
  52. "-8.9155115345908061576L19" },
  53. { "0.397772867452284942L0", "5.7785851646148710778L-21",
  54. "0.397772867452284942L0" },
  55. { "-0.53062845978690011166L0", "-3.648685738612220277L-21",
  56. "-0.53062845978690011166L0" },
  57. { "0.25409096540159836552L0", "-7.8088660109317384514L-21",
  58. "0.25409096540159836552L0" },
  59. { "0.78038095936361252965L0", "5.166705522400390383L-21",
  60. "0.78038095936361252965L0" },
  61. { "0.2384997171475220939L0", "9.580584601627251829L-21",
  62. "0.23849971714752209389L0" },
  63. { "0.38777493167494073L0", "-7.930455614605653916L-22",
  64. "0.38777493167494073L0" },
  65. { "9.34906594120583919L8", "-0.06276538462885111519L0",
  66. "9.349065941833493036L8" },
  67. { "3.8000098261497040978L9", "0.08156195452126583918L0",
  68. "3.8000098260681421433L9" },
  69. { "-8.5084000619874580647L9", "-0.49084164337509169664L0",
  70. "-8.5084000614966164213L9" },
  71. { "-9.367354572017391158L9", "0.7369625068937909906L0",
  72. "-9.367354572754353665L9" },
  73. { "6.810025547716964613L9", "-0.65456201729278556224L0",
  74. "6.8100255483715266306L9" },
  75. { "-2.0476539871173359762L9", "-0.61684944260168028793L0",
  76. "-2.0476539865004865336L9" },
  77. { "7.927587886187347037L9", "-9.075678068210342653L9",
  78. "1.700326595439768969L10" },
  79. { "8.3881162961959078424L9", "-8.168276983460029623L9",
  80. "1.6556393279655937465L10" },
  81. { "-9.837108887605194379L9", "-5.518197215327419734L9",
  82. "-4.3189116722777746445L9" },
  83. { "6.0530403690423784372L9", "-4.794777582812792957L9",
  84. "1.0847817951855171394L10" },
  85. { "-7.6786817362598780694L8", "3.0685743382723052597L9",
  86. "-3.8364425118982930668L9" },
  87. { "-1.035869943077157163L9", "6.964469962306024778L8",
  88. "-1.7323169393077596407L9" },
  89. { "-5.236689202734255992L9", "-3.2118444581504684365L-12",
  90. "-5.236689202734255992L9" },
  91. { "-5.374622629137047618L9", "6.0449117144963868685L-11",
  92. "-5.374622629137047618L9" },
  93. { "-1.03444332932187716727L9", "-7.849504746710041045L-11",
  94. "-1.0344433293218771672L9" },
  95. { "5.1103879354813158946L8", "6.53093826849017485L-11",
  96. "5.110387935481315894L8" },
  97. { "-9.748335199611953219L9", "-1.0598402609119659922L-11",
  98. "-9.748335199611953219L9" },
  99. { "-7.3482164921795502603L9", "7.644598674874161005L-11",
  100. "-7.3482164921795502603L9" },
  101. { "-7.4770248834652064083L8", "-6.510822784079429222L19",
  102. "6.5108227840046589732L19" },
  103. { "8.3114910321533068423L9", "-6.2387352982669333472L19",
  104. "6.2387352990980824504L19" },
  105. { "-1.0718584220381511548L9", "8.521462332927085385L19",
  106. "-8.521462333034271227L19" },
  107. { "-1.9155322368803175137L8", "1.3150623743950738752L19",
  108. "-1.3150623744142291976L19" },
  109. { "3.8652241507510457716L9", "8.702412273358053775L19",
  110. "-8.70241227297153136L19" },
  111. { "2.922009617968977308L8", "-8.409184530486676791L19",
  112. "8.409184530515896887L19" },
  113. { "-7.3431860804237713437L9", "9.020687655591526829L-21",
  114. "-7.3431860804237713437L9" },
  115. { "-1.1188563145822172016L9", "-2.7575065881283248758L-21",
  116. "-1.1188563145822172016L9" },
  117. { "2.5835681218682880315L9", "-3.786022710650191692L-21",
  118. "2.5835681218682880315L9" },
  119. { "4.3854765424506375063L9", "1.8847509423241615905L-21",
  120. "4.3854765424506375063L9" },
  121. { "-3.4713769831512517224L9", "-2.322290027198980782L-21",
  122. "-3.4713769831512517224L9" },
  123. { "414355.71501652302632L0", "3.5411352752491676944L-21",
  124. "414355.71501652302632L0" },
  125. { "9.032857346451659148L-11", "0.45111022909893884074L0",
  126. "-0.45111022900861026729L0" },
  127. { "-6.5860623447077106086L-11", "-0.16349916999618723413L0",
  128. "0.16349916993032661068L0" },
  129. { "-9.239429491581222244L-11", "0.34742997377809253703L0",
  130. "-0.34742997387048683193L0" },
  131. { "-1.3189202177704638207L-11", "0.6447775025861344695L0",
  132. "-0.64477750259932367166L0" },
  133. { "-8.6095719029859522596L-11", "0.36611643318066821885L0",
  134. "-0.3661164332667639379L0" },
  135. { "-7.9284738631391966236L-11", "-0.28883099180012157807L0",
  136. "0.28883099172083683944L0" },
  137. { "-9.9602023259578447484L-11", "8.944817052366967221L9",
  138. "-8.944817052366967221L9" },
  139. { "-4.7036434158090755064L-11", "-7.652311009876441256L9",
  140. "7.652311009876441256L9" },
  141. { "-7.237899450242616437L-11", "-2.0865196011945540415L9",
  142. "2.0865196011945540414L9" },
  143. { "1.619466049424876382L-11", "5.1184733211578935236L9",
  144. "-5.1184733211578935236L9" },
  145. { "4.1799408897021043963L-11", "7.3289378733409777703L9",
  146. "-7.3289378733409777703L9" },
  147. { "-7.1652994078281664426L-11", "-8.756819754593247181L9",
  148. "8.756819754593247181L9" },
  149. { "-3.7074082585707708083L-11", "7.8185038704847907146L-11",
  150. "-1.1525912129055561523L-10" },
  151. { "-6.236585731179139659L-11", "7.2778046100364844843L-11",
  152. "-1.3514390341215624144L-10" },
  153. { "4.435573645212270856L-11", "-5.0777570123416204425L-11",
  154. "9.5133306575538912986L-11" },
  155. { "-8.308776483243665939L-11", "9.147453931535851365L-11",
  156. "-1.7456230414779517304L-10" },
  157. { "9.9047307392438733836L-11", "-2.5521271062995892868L-11",
  158. "1.245685784554346267L-10" },
  159. { "7.964304540045338675L-11", "-8.2763721216842256806L-11",
  160. "1.6240676661729564355L-10" },
  161. { "6.3981149909251410836L-11", "-8.199461198383311753L19",
  162. "8.199461198383311753L19" },
  163. { "3.2676777703423324814L-11", "4.4068061681801047868L19",
  164. "-4.4068061681801047868L19" },
  165. { "-6.239367423070186989L-11", "3.6883672788938434168L19",
  166. "-3.6883672788938434168L19" },
  167. { "-2.2122757699951901351L-11", "2.1264312306673926188L19",
  168. "-2.1264312306673926188L19" },
  169. { "8.873182931301984606L-11", "1.6930709481447417272L19",
  170. "-1.6930709481447417272L19" },
  171. { "-6.88393272917067128L-11", "9.590650870092490293L19",
  172. "-9.590650870092490293L19" },
  173. { "6.858643038376546876L-11", "7.344128953107545512L-21",
  174. "6.858643037642133981L-11" },
  175. { "2.6458055358368033053L-11", "5.403788941414579396L-21",
  176. "2.6458055352964244111L-11" },
  177. { "-2.0808117056914325832L-11", "-9.598437242399057154L-21",
  178. "-2.080811704731588859L-11" },
  179. { "-6.7475294377176982065L-11", "7.066634775850918749L-21",
  180. "-6.747529438424361684L-11" },
  181. { "-9.3542684131795074026L-11", "-2.671834604826394793L-22",
  182. "-9.354268413152789057L-11" },
  183. { "-3.656675383727620855L-11", "-5.7226858095399702763L-21",
  184. "-3.656675383155352274L-11" },
  185. { "4.4004114393746579576L19", "0.9981645829158248139L0",
  186. "4.4004114393746579576L19" },
  187. { "-2.1157157847974045162L19", "-0.73136590134089295135L0",
  188. "-2.1157157847974045162L19" },
  189. { "-6.58288354566033103L19", "0.6435204448077814454L0",
  190. "-6.58288354566033103L19" },
  191. { "-6.1300052513232283715L18", "0.37782114066015354996L0",
  192. "-6.130005251323228372L18" },
  193. { "-8.3428987469650376416L19", "0.092302889297602909923L0",
  194. "-8.3428987469650376416L19" },
  195. { "4.478146018721476673L18", "-0.7594367116407568048L0",
  196. "4.4781460187214766738L18" },
  197. { "3.9553793567888621644L19", "7.272309486263127643L9",
  198. "3.9553793560616312156L19" },
  199. { "8.4985452245750157485L18", "-8.180191224624705388L9",
  200. "8.498545232755206973L18" },
  201. { "-4.9006940756698268444L19", "5.635530637330344937L9",
  202. "-4.900694076233379908L19" },
  203. { "3.321094625885548145L19", "7.739325488496469393L9",
  204. "3.3210946251116155962L19" },
  205. { "-4.094717236852398814L19", "2.8833151826524522544L9",
  206. "-4.0947172371407303324L19" },
  207. { "-7.297938416992967256L19", "1.7849049534461509205L9",
  208. "-7.2979384171714577512L19" },
  209. { "-1.6274534493365811085L19", "-7.214220253590898893L-11",
  210. "-1.6274534493365811085L19" },
  211. { "-8.8349360721401487896L19", "4.4201546048906225832L-11",
  212. "-8.8349360721401487896L19" },
  213. { "2.1193875854469716176L19", "5.4852102858193519493L-11",
  214. "2.1193875854469716176L19" },
  215. { "5.8956188285652689564L19", "5.2591781987716878005L-12",
  216. "5.8956188285652689564L19" },
  217. { "3.8130742288947136824L19", "-6.2032926048476626596L-11",
  218. "3.8130742288947136824L19" },
  219. { "-8.2648264381835919784L19", "5.240041099543619651L-11",
  220. "-8.2648264381835919784L19" },
  221. { "-8.9795702979594840016L19", "5.3071479395700422216L19",
  222. "-1.4286718237529526223L20" },
  223. { "7.4902067869555502376L19", "8.527286348112666809L18",
  224. "6.6374781521442835568L19" },
  225. { "-9.945686226441305483L19", "-7.164943842935287866L19",
  226. "-2.7807423835060176172L19" },
  227. { "-6.9451908461424534725L18", "1.7337328244166615333L19",
  228. "-2.4282519090309068806L19" },
  229. { "-7.2554820480127785552L19", "-3.6345553532831870424L19",
  230. "-3.6209266947295915128L19" },
  231. { "4.80739562024854996L19", "-9.8058600290712759904L19",
  232. "1.46132556493198259504L20" },
  233. { "-2.2910115296639597206L19", "3.7450560231732721633L-21",
  234. "-2.2910115296639597206L19" },
  235. { "6.3398397438838205245L18", "5.9452907771459291318L-21",
  236. "6.3398397438838205245L18" },
  237. { "-3.6223171453314706578L19", "-7.3897558037422565484L-21",
  238. "-3.6223171453314706578L19" },
  239. { "-5.253323265732561348L19", "-2.4894382246759080012L-21",
  240. "-5.253323265732561348L19" },
  241. { "8.706482285826808214L18", "-5.353671688426432468L-21",
  242. "8.706482285826808214L18" },
  243. { "2.2257683364797036278L18", "-8.640543721759613242L-21",
  244. "2.2257683364797036278L18" },
  245. { "4.793610535063041737L-21", "-0.46707949288138879385L0",
  246. "0.46707949288138879385L0" },
  247. { "-8.1177127707349576126L-22", "-0.524723160625887566L0",
  248. "0.524723160625887566L0" },
  249. { "4.3845050204409245572L-21", "0.25137862247046227512L0",
  250. "-0.25137862247046227512L0" },
  251. { "9.521149905664397992L-21", "-0.8412363166750659234L0",
  252. "0.8412363166750659234L0" },
  253. { "9.174773471390805996L-21", "-0.101196005202611894716L0",
  254. "0.10119600520261189472L0" },
  255. { "7.109559498077443181L-21", "0.9205539164614073537L0",
  256. "-0.9205539164614073537L0" },
  257. { "4.698785699006337068L-21", "-2.1800327611972026394L9",
  258. "2.1800327611972026394L9" },
  259. { "5.613624265510662971L-21", "-9.950548243828975189L9",
  260. "9.950548243828975189L9" },
  261. { "4.6909741937286841078L-21", "-1.7837781830572891826L9",
  262. "1.7837781830572891826L9" },
  263. { "-4.846242463794952647L-21", "-8.0162418694778434667L9",
  264. "8.0162418694778434667L9" },
  265. { "2.40959428070040729L-21", "-8.889381116534260471L9",
  266. "8.889381116534260471L9" },
  267. { "3.767840665510686708L-21", "-6.5742819327593306936L9",
  268. "6.5742819327593306936L9" },
  269. { "-4.2984578582437655097L-21", "-7.11707524430297521L-11",
  270. "7.117075243873129424L-11" },
  271. { "-8.2197602823824843314L-21", "5.6157517586290544195L-11",
  272. "-5.6157517594510304478L-11" },
  273. { "9.693403466151038911L-21", "-2.4790192993953556532L-11",
  274. "2.4790193003646959998L-11" },
  275. { "-1.7473025967684817638L-21", "-6.763791909706180161L-11",
  276. "6.763791909531449901L-11" },
  277. { "-4.545821853960128388L-21", "-2.0149758755990572603L-11",
  278. "2.0149758751444750749L-11" },
  279. { "-6.727743751498960878L-21", "4.6105155267302345166L-11",
  280. "-4.6105155274030088917L-11" },
  281. { "3.1693009676315354841L-21", "-8.292132887357976433L19",
  282. "8.292132887357976433L19" },
  283. { "-1.5197222855116101305L-21", "-6.8790212191073234628L19",
  284. "6.8790212191073234628L19" },
  285. { "9.221684449614781083L-21", "-5.9085200983462461748L19",
  286. "5.9085200983462461748L19" },
  287. { "8.784720275148798145L-21", "-3.507151222326700691L19",
  288. "3.507151222326700691L19" },
  289. { "3.824100155304652155L-21", "1.2903444775641864255L19",
  290. "-1.2903444775641864255L19" },
  291. { "-1.0750770892330241413L-21", "2.516785805333378789L19",
  292. "-2.516785805333378789L19" },
  293. { "-9.607606672669937465L-21", "2.8158700323501294737L-21",
  294. "-1.2423476705020066939L-20" },
  295. { "7.9685140548406097L-21", "-1.4252185339263422407L-21",
  296. "9.393732588766951941L-21" },
  297. { "-3.1900732903251523987L-21", "1.30212230775860485605L-21",
  298. "-4.4921955980837572548L-21" },
  299. { "2.845180721925488069L-21", "9.0340678136597289194L-21",
  300. "-6.1888870917342408505L-21" },
  301. { "-5.1500491616497403683L-21", "-5.4818765813663490764L-21",
  302. "3.3182741971660870814L-22" },
  303. { "5.3946808417918276896L-21", "2.1630450195342998269L-21",
  304. "3.2316358222575278627L-21" },
  305. };