> (make-rat 5 7) (5 . 7) > (get-numer (make-rat 5 7)) 5 > (+rat (make-rat 1 2) (make-rat 1 3)) (12 . 6) > (+rat (make-rat 1 2) (make-rat 1 3)) (5 . 6) > (my-exp 1 10) (18099969098565397826764800000 . 6658606584104736522240000000) > (rat-to-float (my-exp 1 10)) 9864101/3628800 > (rat-to-float (my-exp 1 10)) 2.7182818011463845 > (exp 1) 2.718281828459045 > (rat-to-float (my-exp 1 100)) 2.718281828459045 > (my-exp 1 100) (73479965312657751555617614543272278179256935949388744252542126309799787422364355563210034112003522844358422362349735933744532607779405718994490926024572669944576070399692399618973973383681867254078694797827584470789725491126111992485317703985096294854403686662639172636580623700809130954320598691926975199996759959399907526340584277009664755397616664320945485042583249013651887787542432630937472442755667923644485569282724449138862307846983288691850129582578401943218390878688054960165817912010544401530604951956100800273113474445280483552097189187397039454811856985947219955592916355028673737790990176018063867637423704136538008867052100486664421933494719624538594220677144328047457300343303323866620138074167816186522858530558113523977393576588258855450335874565926337470441517307778394998122485097997980817002906213784564601306056562208814471478263752372714154187289193478417182188548053929620810262302778356253687814316330932438315691208611436789921918743190433039708122471218169379029020962012027385361876495780405364490714660132283131564385239463947872248440311688948177808954378765251981731256468660449128535187473578810535754015286845331900826136455036393791275444702317803750717194213134452065360291432531501348233167319552436719615518948169411005669233343185451111265966727853107548721437019539041906214484538461429785432705833863173406525960223311621511200697958164778849591104628369321906913192566489045833840324263054364890231308434156558920492095190864404310299121032226970587086594339813717474770873248383191474919150153137189010638766449592137903546964129327523026690112014213261325209393379602119743807397081744946595490055201772971166354476206155413611463145974213283210389293814379316607137260831776486743314586554414007380752546458593676280509841598055022083265357718318167458954196418272581979752303740882776448525127353976571794604256018334614249778610323255133441555663284242038844480953347536117445469595781598496355295392205050589422753689039637367454522453318659069010609644713876605453007942602149560303740559865672343521862099752055428444790071546315675363890717080775230081530853848543363905840722128244433236007847211470632132091777679310503980402747451671867677345914020354983713416630736876819931173608725962825624467883842252846059919452752307267446402484076406139143635629412560130086164699494842864806702902401857712194856875648891398176131754106296509574769769813727215852228877473623637017373909141312640018085800690029893121264947912502964513434017679605778370075153427753329689474958086506898373874576866025915034552358739109129013696328942753891588099432508132630096653489535729135138820934980131569541268504545701986662190443273676227059525028570215218244710703310303890863369619107807664740794363124118386880508071826130988541684680461514175546845615008644530194803694258988758366780473924318440752014753954258904123678829100324510124665261616973915251363002102343817484701387973440358131922855747979212248254777049327593620231214134068013878944223783035579086596288071093153391311865660951259001852811394580574593171251088878652558336736912550723190849421426991469996830762205564348236848160584637385575365243292563260028206024787520493719968950878148827324337190795854495270418041763585955322022629564372579106025055562687447599602073260678779949886247241284122091031028242510822956597654551051223418593537715123380738775349142159359328068229552971565941577477861089636545724534900517249020610385016232250849562398646562351944331537257743030450093215508966331691407892442677192761824926932384419053795593469135384942832803726920256866446115284803558272706062425398278616601270362846484194139377455167215839127519128337571340150411571896270148982128604689953351180653832025263362273871757916905320390049741929896521090030205093346214449997373090169327469568223599309989191952453126872796241086003062812452741973590991583438548985255639204862043708710836800957946215137625167971664100067232239380442604138829854183221738910405852074411054436746541986688929503753509691061423965440479882324634690968839408823727065469549490373421067179423731681469567251483941732002815321569712590751395335390034905128718821098562550671725758065487208133889086784951357461750078265487594521731116368539117617284258951638701779469897865742072234333302249643219823712300777370246964430551099744343703753115982609321566919239290431623737617459616843092559896261833608737447351353775625756430072426759134847830440274893781292458458847636588879314002359956072750763398870811667040274414982611479155704690562444389249468544908070791757398256993516054176463968347069669943562142009608913383467848657630965173882454867859837123519729713780201198528694339785412324120227313879584623884975921123833079246098124327722541994986625841870123876592189970422243245141728647786039916050681435847358291394908078797670841218665213749228566657648895841069733947002048457878120654250929676165801281027989878825903824865393184087222213980938401221666340599567918906154670871654723823757014325850420112500470955509856220345168529252627530064277581434589380812724619760983404877666662973592795548875059711823517680148654487671237152413936259540116779837375865542442886667623610976665522786127753764182021685619477419726276927459628653128998595473993106390651953464141857745130774067383580016148947865735805321575943436049095096028619927730714731250133154255746196817993378844668668542595184802577218767976122736013964733157817162250064372224197021545440068190827923462123995357624884577693349998883390080865325865838384913279065423832309381377435885128634712339114250807753968255215293418083626343557129395662931989086575371172767479844954583853228070958684524716555034732269812214607548413677021145895152359282904288058971963838606928820566968362026982251079048833565833050097076650811061529454155241546338553438874961018166737037943845683200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 . 27031768576517499710558090027596232298558093274311372898878080715359180165112031924307456158465248372818779651925195472427213190430183251693103019318689675406431463633656595635631244531823489545981465006345769477538600353418733645868065010408042273812281857257966951771254299784907532174172675261042904443735033006827062367781734932402906380064676556914853300117738454029138584114653641460999879297110724828557836146051273563518529674565773200721055678644025614623883481237564894628859759852397473591728651044381377039700592548741212705965716337933203079627369262097142940670258319115410419017088642085963216664587687528552214188386047097748341347826082492672575871916359724288832957423130960163446577201297030081036819556978682525116845551863481353447203913609105954470434446731819716372893950027080537765260387886497487073911883337335888163296120860592970129474414820716186242361113598851877430679053185302290711367100692138119365535749612397812211870895421300661971739287030299385145794712666816403151658293555299062759180558560552120065733359856424513710950255600515309069234761024080315083912936880059543194196967002775057391143932519178064644929561934170700017725794749065783536604869532972216729771869515017257460764744205293736768850910844817317789760525673651462286969218051912783040803173502868593343019986651928862849866171306355901727590395083666710708634298268397991417237719829352705000018716698883171120848588655798456188752317306393075998430051287601872760427292416532717472158265481963073016090468249993686882132992251314931844377812625324873058388685195527407737891867473352727111550336196454202887299904847977654010329650747012142143741017027453376146831338455608413252873927221734647038025714766776152183177488678194636943158142340296086335991741911641667613321461943638112546539425512207317045203125627265020059235448422648841292646425006201044185684862105574726995305031507541549370568722402791853420112332280884916208713251458554365777660881201931186067005132165233655598425788277533501182142243518492318915243674651098579717309036232009017377276100301318939920488590557304532679074461755717921612389995344071844739703234571919956632808014778170148649586922770228743618307005560442586998801940863559279122530838019077280335769900574987670735637822874692583734728992996828693947342462932456573689525150423690989405096473576984685941021091436123576026674956266343311999686469250683711889792780188010000923545083693616512431299553430423319151799092729329012624791942408482551216422936654620389588409307856471553255459174209488541720797724764392878940295153125139426917844348014324717101712239948275911331451350625503079913906081322162453194924075795374300445602930241718494950581280344647070513379468660018749666766779337982714307918578490651858623155531753436341939230313716211088205653758803856211424511942446178616123919632158681209340766264843607918190711195995769497888074300126090980893407856203416039961905820434437338769169809988554940514984940771883510669335922159652260943495403914082335901654803300716357423311007672070947856937614612334402545577731613545588875133756028002253392612525017882998610886274897113627550258742450493613087049732151945364827840949182968966809157600659099420832959762977348556400332795733357668875671701282089323748550442476412406932391110882062739962652502438287501079688573633998658498932012042386086426239238190775121738551066893598665935774455519152157588419955426909632953255225944147546866926742646430035992755353833768063541782684251337809419602608477114643506677496479984051051959765277343815249059663401218824981952396913308659765720698334997196469642114605784797650509426457220495304067174165545766010632963921930394923275625878919251047701312431016023867781210907705470391064375493416431073537210482523919765504502753329344492620296146384735940761588997430305455447096207937391309074448688892666491670891709155822800892901929566779139684433502227476274019515370894887664808929686518674755492088690070563855461522294818147243803764954005366984053006812713112603290994481678753572214205539492904116573157053538665542029486197003757482662830062120635456960276391311596048447813899284882862556031298264797682373556628444619642653324328856767894848303414066161976948155449220988075851375132639877475510923779143207404882341098899135236964794183820703507066267800973792432111245784381086462014399154907268442765473783291278952434015025195699580659465703426076596337902629934239681343027964900072653710322832292227430161858120830176556144639219349390423290310874030942320674799854815775148401032011414853381341522616342671480892280541482672772691715237914427732529513973227685560102424194775300565660522520159197040315256211273081765520118868935023956700097925553774747811268270991653486895487725663277575286103050977361584896006288635669210151264444972709370572481075509070029875071185160529111621252142202673338305550360192070933030651344037803166681925669184668944592859049669428147438461313019607291033562885165862569479027215204938798234983778038192250357782670254475316488675039486787835966235572450777593617425795005589371791584337812875284631159728936756488778954210507600331311151494052761155957457646092003975907161434046953314636724932366694923586600956767566174688154498755518240131330852927788405108316860839524389146592070352766013263554814855316560483930269161109555115598599074606380419346706281687122756139236272334874636515742846732426249189295294126077183180386537628070577304431955113672644964908191966909764383915898083967352765907114405625567363146867872227797114185869379776838512786074844136826333346246190407373179258963078361749956016699370455403337036996087663326855986830350259733163563156748953918413646360740820773135517701577617129511847665900751779813170899517926423297750920427028974700540224251803798780700829498972359884800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) > (gcd 0 0) 0 > (gcd 0 155) 155 > (my-exp 1 100) [image] [image] g: undefined; cannot reference an identifier before its definition > (my-exp 1 100) [image] [image] user break > > (my-exp 1 100) (4299778907798767752801199122242037634663518280784714275131782813346597523870956720660008227544949996496057758175050906671347686438130409774741771022426508339 . 1581800261761765299689817607733333906622304546853925787603270574495213559207286705236295999595873191292435557980122436580528562896896000000000000000000000000) > (rat-to-float (my-exp 1 100)) 2.718281828459045