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.
151 lines
17 KiB
151 lines
17 KiB
#include "exam.h"
|
|
#include <cl_rational.h>
|
|
#include <cl_rational_io.h>
|
|
|
|
static mul_test rational_mul_tests[] = {
|
|
|
|
{ "-6520062188352981842/3213004995534018829", "-3812444292971845716/15284944374811818089",
|
|
"24857373879807849010516976362973488872/49110602632729971801355498746248797781" },
|
|
|
|
{ "-844583948128454879/4750740551331102615", "-1309778567130405125/4885884698278749707",
|
|
"221243590680205607733892613510570975/4642314113048197066962569716783636761" },
|
|
|
|
{ "-4579815856418431271/16947444571374397297", "7990245706938186906/12540719430158043191",
|
|
"-36593853985314806270746820601513137526/212533147427761354206383017714519654727" },
|
|
|
|
{ "-3587966953201943536/3194797554208122281", "975954052071387816/2707062718507963111",
|
|
"-3501690886675668292903668827990357376/8648517352177231144330968693325176191" },
|
|
|
|
{ "710265334225408429/567023629756400552", "-5578988760400430103/4131535930210536898",
|
|
"-3962562316545608552741467762441538187/2342678499616965424161446427863567696" },
|
|
|
|
{ "18305319006789031727/4480148641441744463", "-1641093267260986094/16028097657311023719",
|
|
"-30040735777106040963634910981471804338/71808259944297590021537032075729917897" },
|
|
|
|
{ "522499067029593907/142530390958606446621834761330018829110", "1567459634764499377/31663510497342378306792964160850079086",
|
|
"818996196770998943862055820464495939/4513012530308148429025282037949729145117603192483641232823845248212618993460" },
|
|
|
|
{ "6214041481074460220/139497414619784295310756757536261769729", "12187470171919324678/129216394212432939561557938117593031955",
|
|
"15146689039532873328968703771155061832/3605070583825050709361064709099418651298807367637359842488375232197429738039" },
|
|
|
|
{ "10022419596195177499/91129297586760817507648681092594591108", "239769653037576215/24086455608554015268646156321002022494",
|
|
"104481394312031409685890479072416795/95433990476618390508514520731482064738017476445225501421324446942302103624" },
|
|
|
|
{ "127731839927226607/59760640855511386051149338950192132591", "3679984267166095161/269870724770589242613062477043917992045",
|
|
"470051161348371979221331000573148727/16127647460431744118786930146746069875784110572380855085272434637353123238595" },
|
|
|
|
{ "4919926511230586366/29288587285987487013553554568227355149", "-2914615432991234299/34407808954885309804037535414452526052",
|
|
"-7169846869407694119621783007930483717/503878057947370143933800273784055481319429768630967123178484618174989420874" },
|
|
|
|
{ "-4322680734125283661/246950524730861178141734701180345535020", "11581515233057355754/82204027418720951285150957025638971309",
|
|
"-3575942340708251875937466941988609671/1450023407574517046920597087724458064116343346221474061477327267648859624370" },
|
|
|
|
{ "-5552456004563371781/36434418778024040927761226774271610950778609263056622471030041615086459120568", "233319937833204741/228703279535756717601739981368829304509550463672786894384479957768850829340",
|
|
"-1295498689806330283646616799874813721/8332671062513255913250553083541810221054209355142441164334390514659539371361850837178162594438925276666798780352514152276296209564179606228713851865120" },
|
|
|
|
{ "7279569964232187047/36316165899095632459738478614507512808578186173163489609755035948221062420580", "4568992288187244990/18279847281938710983382796940666233712517527808023718591530848159479207220137",
|
|
"1108676634263212048809114991909788151/22128465550033953372731954247755694375180631486898426116907313824243654714198100644737500721615620412852035450119116976232805701601749863504629937973982" },
|
|
|
|
{ "-8689289043809733973/34365105035540924847908154205433563929060132734873649554594240958996510665976", "281724695877043289/3383396067954681850718083474385093262190311835985400909911383280975222535225",
|
|
"-2447987313255021583629117408894957197/116270761252098802423406562021935246701911690887646043563899994409915142686943691634418411056232663942535537938126289647041118885713303684881867869004600" },
|
|
|
|
{ "-4176416206981759902/47077361360975682486641492558477246171356187409295624938308162261216397376441", "-10870319933050648575/51626085927005484523186190379579228801774286705829757742503501130303410401261",
|
|
"2670528255498212232918897515060496450/142965876637554026205455979922464979254073063785755559223760631646970673683621524411341782655829702451013418009338618833412062193643308417898164204593653" },
|
|
|
|
{ "4496049401725150702/8024116634872885909638996643719901973664008349644172107626390134736213108465", "-5231341280619167012/99267989241776204190444307671763754306088564051099822830201760217121508089279",
|
|
"-23520368834947889555464127765407042424/796537923785319116837266627763277272873506235001122453584405648384893204423914484193595265931840447141766909166026026228531619859740155558402735330646735" },
|
|
|
|
{ "-2488955833769033882/80573015130339486598712021266263458487997757617589137912729682647628329090307", "17723590657579960683/79078600039601362101827108583564759878924923849842119643649415446502020994810",
|
|
"-22056617181258995266120581914227430703/3185800618738432636378738398589185111057563002909241393794402306079667392482341108052833514927720630087013771419748846412352850012097731569487991234153335" },
|
|
|
|
{ "24410613567363183821142175154197794689/2233491913446620869", "-289777146895293391500645889398422195537/12394177861163531771",
|
|
"-7073637953514043162500219088395995153310329907185649946877180402954938102993/27682296026727883467940485833673128999" },
|
|
|
|
{ "15029397898618080393623393093137341347/9939158597399833599", "268484092305118852707129202725716126526/9752180454987984749",
|
|
"1345051417567645337656755504737828287428006597367109244226136136424901090174/32309489404196149853047846865649927217" },
|
|
|
|
{ "175291724581304230067306380062677652261/4791591464449055089", "-207911166974886786162808240992513636954/957635297799905137",
|
|
"-36445107018739410292029741836217649994267718828374576884161821761303211252994/4588597118993154438342028473487092193" },
|
|
|
|
{ "208446980882041538439350888438428103817/11756453246592156788", "-99855903858077543170703702663212319708/7775813092266901197",
|
|
"-1734555140205305628415286772698507060801514301420325900368570916304368260453/7617998589456250715053087609460739603" },
|
|
|
|
{ "-49595797981179247160347259926801311825/16426101929443877636", "104499598328969971414586784725010079457/3085074725343747115",
|
|
"-1036548193567594227670217621556353400490405002875929378150074378019016735805/10135150379689493069951723318357604028" },
|
|
|
|
{ "-288919818051255959565698296502103975540/9373352185361138021", "77343596824463059344208562767410464067/8355013728778983070",
|
|
"-319229970313622361785032672064391711775428287673147624981393545586243098874/1118778374191039878067165437747032921" },
|
|
|
|
{ "301194765217764762175383920433701358543/150076401641721289621709469985978858175", "-109319143590504335906407585568245068241/158084148208214805386290412276525928977",
|
|
"-32926353787549066990014316879429253235742017240010356390402491456481443332863/23724700119685440084214937112355810539035473428177368317381421021523605836975" },
|
|
|
|
{ "14575317438235510996984657523859363247/6747043355688580686998987940004831062", "-98472042392613093668204392119412188287/152397803267436514292317070561082866275",
|
|
"-1435261276663720115408306632770383012566806521695455296458086302958691687889/1028234585957093005711368462502470683211464374115746651290896689614112234050" },
|
|
|
|
{ "7543367187310376010646193530301789591/61115754966424662873097894247178344192", "309940239796651595482411737112678240799/200261667764086238794802895148430893795",
|
|
"2337993034909171213000031444662193658341848356694420878002930517675329723209/12239143016237439360279809707749702660797878084581096344749106125186707088640" },
|
|
|
|
{ "306232835922656327867425959604977465100/55646521674811091128956181530575055283", "45245255551837746690160535427248646677/3669533234425940180962041078287629087",
|
|
"13855582919684583969821610044729507626133731299765443289084519977056998472700/204196760665922729081584465192637337445710456706084552841012480810023816621" },
|
|
|
|
{ "-280037880297253633994139513185953058494/23798550327416056573646642830182072429", "13967268482262630670960486883264178489/7947215947745048068401387767511847243",
|
|
"-434596028812829556627014314125713048434599389957141408329542154357763726174/21014690966139335562014814134594464675233042588696546668504776333756662583" },
|
|
|
|
{ "87160410649223805266866345018804635271/204719779683096591635231158476535039583", "91197762560765392928084914476898132964/277206223024759381433146631560580134513",
|
|
"7948834435086720002947247338196997812861466884983039250681993725808882173244/56749596904412078223459353928850191672356004665473536520452927516595919428079" },
|
|
|
|
{ "272801380449749740391855824723351316848/2170368723435176720708253536680067463416474841046765138040214254204061862261", "14545537787709209389572055399030228996/8381323291479119825335849511027103148981778425333781230074116361235206363821",
|
|
"3968042787871071204066360146704950989545352280096012736206796950415592924608/18190561932825050861659739926693806725838682397154479213760300500132465705680046683155463862909993066621811136554677896021527098482779305371951555659281" },
|
|
|
|
{ "58980225701104541897366713189611773567/10973700523953435846969235385386214078292603476932194022615006557054104506344", "21633357583056027790037764923811848217/41236459355840549300942497778444413350482341379076368704834339005347182486274",
|
|
"1275940312921345964633100864283753667394719832288287163056787891633576680039/452516555639171997520308257003811683819837367444947027711901120987864272999978391252372420644671039873982401560595091423172287702745925783369137325922256" },
|
|
|
|
{ "-39569537110370574225194522625562874655/36290593978404925051095380486087641410218299612051669925683823165483928853304", "39273660356839128453616088747231247259/28875229647500294680887983884278577441525691250738380954940513956990510132534",
|
|
"-1554040560950035541902707236381071410695075315482961522429891905381129320645/1047899235170633560739863801929205639611958070150694189488499584527041043137082563721218908614201921449076002548982308540689571766482794493357171683792336" },
|
|
|
|
{ "8957762734053174688386697837976422606/712105675122280831038408324375785815130945929819518342973925027507219300067", "118977607972668646264715307919875588738/36563306353035936296510796886853084280648109576589600551753305930842020963283",
|
|
"355257727628119695756412145322380851760544279491883270008434507085780737076/8678979318410478400681656718586483785992423192579006235728835173903750764880944673586689792087386144715446501744012435157310426693657188196381455479987" },
|
|
|
|
{ "114386050140129336980347743358441052599/11994188887964574384037137314302737861703229337059619512751326848591488081229", "-50822174853799566513638003084407139228/97406657802317796912648600328217961853548397771614449630742570869667560514587",
|
|
"-5813347841057137571369557065847591420664634372223088557679866032754664253572/1168313852626327929522799656188055465298138284154709873285311568978496136227795809646907486798429717114923178357702460243511883684964123937654308495387423" },
|
|
|
|
{ "-22147677230189664783449572410799931501/75580058176304394102183955194485040346816524663599269056794063928343401057143", "-127672554664595215026114551202414743739/35777311684781371234035985601066874920871049301826919955489852676067316906014",
|
|
"2827650531865200718433745248471704607394596478050653604940563621773668622239/2704051298527551014378337257898371613519363350219566689647796093438747503077807722203668806231503452508016974614236112792032033672965127824348803574358002" },
|
|
|
|
{ "3468729773587632113679855593063165286551216344725198121609354788619580819847/7106612002452012151", "20863200733446307102600190583661606839853255577505815215312643683864543217073/5700246487811068117",
|
|
"72368805556440529088812813715602124890901251289457147618293618526488567540302416253970205832659523238561757581481150988870947074663135867252252227647831/40509440107213064064897416415172689667" },
|
|
|
|
{ "43306673717838918980731699770600730039727453611468399058203483818093233880231/6173575908538565981", "106634227988568775671050783423559067905086861634892257032833451008548321218936/17988169594879808463",
|
|
"1539324572884864883885215269788177741067901747630436643318399808029602335378536990210735234944615096105103848497832537965483619535769637171783464984418072/37017110149885307295697375341989232401" },
|
|
|
|
{ "61636028396239445662576777415312348317278054920190931147781159688109244233565/149659999183936017", "50280832809996410949441105432174396823883728565382915986396125237655209339731/3406752842984125790",
|
|
"206607389257567119017662603624829733217835095238758046754428174885007999774491792658838812826043033826701244157167565054600950156595290052398436186551401/33990308513391731439280046802638562" },
|
|
|
|
{ "-100579490802304807750359433955474958462342659278486016345156932756807754105945/15683759624513404963", "7314396152134987983181095955389244247502417255088677055075146925285457081540/950287995699608967",
|
|
"-735678240508074701153113537069655056596152436111651040530896921701439724727486696483134676487497031899584038731663111390949471467249259023050011663755300/14904088498613295322494450308817103221" },
|
|
|
|
{ "25984831699359211750216710442693374608159925357093100400945034699383345074385/10463598404993207796", "-2395913226491242076662067669730978955981403048697660449593722338244504668974/7015215522730452775",
|
|
"-6225740195664363384298636893730784883811595661227613249243163802476751022407971476247993440178871949687923603921101094083879668063131450147131783163099/7340439795432595812648347200273983390" },
|
|
|
|
{ "5173661857391320950903772549611256023540539838210520778403003347430938670915/2590493168574884173", "100300641976357496491877756123729102910724064566692821682523911939220592349990/15304416107565779147",
|
|
"518921605664943617990486317157527087053001312760892500249127957517476408720600460633868004681188890038115877413554399588737851074382787744833707113540850/39645985375676570588146199684023740431" },
|
|
|
|
{ "30299639015164203561126609159677900559022306879488518544803392527841364186955/97638167801975054493877206805944332747", "-50150465496280036231382225902610460555496341860773955714344071185921583266663/170117675960786609061777750278261277482",
|
|
"-1519541000979732808188648781832621044050652591754537200855596768903085847105531546641139177813880505696192826380113425984545675787584857974943247950981165/16609978191541300835961154615181304582159561006676548938424954151558306303054" },
|
|
|
|
{ "-34494394944257769716276791009665812125094062960425641316440943461722789694119/69239821080832171466311153221314488591", "-68027404272124217088707268142523090163964888591405843143848585935878552833247/257149529774225346004390673137885895872",
|
|
"2346564149995340998782934409780604815295734898030424565252099571337345550054284934036215402972664245125313098735082896555892607540059632597741979943574393/17804987432587488254198543762235568841018786223139145264591718687823557996352" },
|
|
|
|
{ "22330754509472350470460807673039908304726422770752644988051418230315708975569/141163736844241522445115344332946835969", "-3776092949566234532895208849184634613770861313997034923686862122594334787771/22367110097535579962848998753563258272",
|
|
"-9369222740190326741203615957382420344247102784278353165345406236082475331042528539717966581690645628370939381978953360215380653092335198860022382107411/350824982641632215769272917522017419782283768012468846380070797128085153952" },
|
|
|
|
{ "1376215273451682681102140384578115142238259557166158859699272578561460124263/3593386179017642636485249017714833669104405991325015697577507088650274886871", "37146275008876311604039415809582675415172661567487888072055609579242279390723/55424998453085285819414374477780690192979527887019008768378662580126754826472",
|
|
"51121271019052119686352858568900325361226598163234091421115939503875711782442415328681175322030659510284806538410228985354770913411724825992699509412149/199163423413390889071651575953261174839972499014963134990506980080139461063269751906284862132821075544766093817070661266293471833091996501160433036049112" },
|
|
|
|
{ "-88175289711320073148300791156190227927348022787624424521937188958291199926437/38194742314758366741668899229532351990874883495690656157862650973602784662629", "93421911195279228911508870033119580111709458306921869937709821511660370035352/66371395138592894543765954603571534463846496049156722497129962530412046587003",
|
|
"-8237504085028962150049531747535213236460729066521397582683209771842938254589363802757604921456170821878391951762499073662677974506165863935238701489400824/2535038334389561782321790943041741331416028402594806464107449488311138037598457377927652600804722340759363172755193254192462811091332303758223034251210887" },
|
|
|
|
{ "-88364214910455569163017945328431687038422451206033411348821431934742389780753/43010507830592044720656702803904712217809857004582018186125828892174875808576", "10405170283887792832024806983921158923908589830001636723872220129826733402834/4055629711949631304631599195955105801456753694558712994574702123032807265321",
|
|
"-459722351572673455425943766571506569631562018487574498847133029199411842205331593858852090421782204158679934054007027833206633183796877753882057444427001/87217346741895687976684378003169607737518608233754137677854312677618987931466495788077930577814677920791330694741284253568592140275298729115088619596448" },
|
|
|
|
};
|