root/maint/gnulib/lib/expl-table.c

/* [previous][next][first][last][top][bottom][index][help] */
   1 /* Exponential function.
   2    Copyright (C) 2011-2021 Free Software Foundation, Inc.
   3 
   4    This file is free software: you can redistribute it and/or modify
   5    it under the terms of the GNU Lesser General Public License as
   6    published by the Free Software Foundation; either version 3 of the
   7    License, or (at your option) any later version.
   8 
   9    This file is distributed in the hope that it will be useful,
  10    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12    GNU Lesser General Public License for more details.
  13 
  14    You should have received a copy of the GNU Lesser General Public License
  15    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
  16 
  17 #include <config.h>
  18 
  19 /* gl_expl_table[i] = exp((i - 128) * log(2)/256).
  20    Computed in GNU clisp through
  21      (setf (long-float-digits) 128)
  22      (setq a 0L0)
  23      (setf (long-float-digits) 256)
  24      (dotimes (i 257)
  25        (format t "    ~D,~%"
  26                (float (exp (* (/ (- i 128) 256) (log 2L0))) a)))  */
  27 const long double gl_expl_table[257] =
  28   {
  29     0.707106781186547524400844362104849039284L,
  30     0.709023942160207598920563322257676190836L,
  31     0.710946301084582779904674297352120049962L,
  32     0.71287387205274715340350157671438300618L,
  33     0.714806669195985005617532889137569953044L,
  34     0.71674470668389442125974978427737336719L,
  35     0.71868799872449116280161304224785251353L,
  36     0.720636559564312831364255957304947586072L,
  37     0.72259040348852331001850312073583545284L,
  38     0.724549544821017490259402705487111270714L,
  39     0.726513997924526282423036245842287293786L,
  40     0.728483777200721910815451524818606761737L,
  41     0.730458897090323494325651445155310766577L,
  42     0.732439372073202913296664682112279175616L,
  43     0.734425216668490963430822513132890712652L,
  44     0.736416445434683797507470506133110286942L,
  45     0.738413072969749655693453740187024961962L,
  46     0.740415113911235885228829945155951253966L,
  47     0.742422582936376250272386395864403155277L,
  48     0.744435494762198532693663597314273242753L,
  49     0.746453864145632424600321765743336770838L,
  50     0.748477705883617713391824861712720862423L,
  51     0.750507034813212760132561481529764324813L,
  52     0.752541865811703272039672277899716132493L,
  53     0.75458221379671136988300977551659676571L,
  54     0.756628093726304951096818488157633113612L,
  55     0.75867952059910734940489114658718937343L,
  56     0.760736509454407291763130627098242426467L,
  57     0.762799075372269153425626844758470477304L,
  58     0.76486723347364351194254345936342587308L,
  59     0.766940998920478000900300751753859329456L,
  60     0.769020386915828464216738479594307884331L,
  61     0.771105412703970411806145931045367420652L,
  62     0.773196091570510777431255778146135325272L,
  63     0.77529243884249997956151370535341912283L,
  64     0.777394469888544286059157168801667390437L,
  65     0.779502200118918483516864044737428940745L,
  66     0.781615644985678852072965367573877941354L,
  67     0.783734819982776446532455855478222575498L,
  68     0.78585974064617068462428149076570281356L,
  69     0.787990422553943243227635080090952504452L,
  70     0.790126881326412263402248482007960521995L,
  71     0.79226913262624686505993407346567890838L,
  72     0.794417192158581972116898048814333564685L,
  73     0.796571075671133448968624321559534367934L,
  74     0.798730798954313549131410147104316569576L,
  75     0.800896377841346676896923120795476813684L,
  76     0.803067828208385462848443946517563571584L,
  77     0.805245165974627154089760333678700291728L,
  78     0.807428407102430320039984581575729114268L,
  79     0.809617567597431874649880866726368203972L,
  80     0.81181266350866441589760797777344082227L,
  81     0.814013710928673883424109261007007338614L,
  82     0.816220725993637535170713864466769240053L,
  83     0.818433724883482243883852017078007231025L,
  84     0.82065272382200311435413206848451310067L,
  85     0.822877739076982422259378362362911222833L,
  86     0.825108786960308875483586738272485101678L,
  87     0.827345883828097198786118571797909120834L,
  88     0.829589046080808042697824787210781231927L,
  89     0.831838290163368217523168228488195222638L,
  90     0.834093632565291253329796170708536192903L,
  91     0.836355089820798286809404612069230711295L,
  92     0.83862267850893927589613232455870870518L,
  93     0.84089641525371454303112547623321489504L,
  94     0.84317631672419664796432298771385230143L,
  95     0.84546239963465259098692866759361830709L,
  96     0.84775468074466634749045860363936420312L,
  97     0.850053176859261734750681286748751167545L,
  98     0.852357904829025611837203530384718316326L,
  99     0.854668881550231413551897437515331498025L,
 100     0.856986123964963019301812477839166009452L,
 101     0.859309649061238957814672188228156252257L,
 102     0.861639473873136948607517116872358729753L,
 103     0.863975615480918781121524414614366207052L,
 104     0.866318091011155532438509953514163469652L,
 105     0.868666917636853124497101040936083380124L,
 106     0.871022112577578221729056715595464682243L,
 107     0.873383693099584470038708278290226842228L,
 108     0.875751676515939078050995142767930296012L,
 109     0.878126080186649741556080309687656610647L,
 110     0.880506921518791912081045787323636256171L,
 111     0.882894217966636410521691124969260937028L,
 112     0.885287987031777386769987907431242017412L,
 113     0.88768824626326062627527960009966160388L,
 114     0.89009501325771220447985955243623523504L,
 115     0.892508305659467490072110281986409916153L,
 116     0.8949281411607004980029443898876582985L,
 117     0.897354537501553593213851621063890907178L,
 118     0.899787512470267546027427696662514569756L,
 119     0.902227083903311940153838631655504844215L,
 120     0.904673269685515934269259325789226871994L,
 121     0.907126087750199378124917300181170171233L,
 122     0.909585556079304284147971563828178746372L,
 123     0.91205169270352665549806275316460097744L,
 124     0.914524515702448671545983912696158354092L,
 125     0.91700404320467123174354159479414442804L,
 126     0.919490293387946858856304371174663918816L,
 127     0.921983284479312962533570386670938449637L,
 128     0.92448303475522546419252726694739603678L,
 129     0.92698956254169278419622653516884831976L,
 130     0.929502886214410192307650717745572682403L,
 131     0.932023024198894522404814545597236289343L,
 132     0.934549994970619252444512104439799143264L,
 133     0.93708381705514995066499947497722326722L,
 134     0.93962450902828008902058735120448448827L,
 135     0.942172089516167224843810351983745154882L,
 136     0.944726577195469551733539267378681531548L,
 137     0.947287990793482820670109326713462307376L,
 138     0.949856349088277632361251759806996099924L,
 139     0.952431670908837101825337466217860725517L,
 140     0.955013975135194896221170529572799135168L,
 141     0.957603280698573646936305635147915443924L,
 142     0.960199606581523736948607188887070611744L,
 143     0.962802971818062464478519115091191368377L,
 144     0.965413395493813583952272948264534783197L,
 145     0.968030896746147225299027952283345762418L,
 146     0.970655494764320192607710617437589705184L,
 147     0.973287208789616643172102023321302921373L,
 148     0.97592605811548914795551023340047499377L,
 149     0.978572062087700134509161125813435745597L,
 150     0.981225240104463713381244885057070325016L,
 151     0.983885611616587889056366801238014683926L,
 152     0.98655319612761715646797006813220671315L,
 153     0.989228013193975484129124959065583667775L,
 154     0.99191008242510968492991311132615581644L,
 155     0.994599423483633175652477686222166314457L,
 156     0.997296056085470126257659913847922601123L,
 157     1.0L,
 158     1.00271127505020248543074558845036204047L,
 159     1.0054299011128028213513839559347998147L,
 160     1.008155898118417515783094890817201039276L,
 161     1.01088928605170046002040979056186052439L,
 162     1.013630084951489438840258929063939929597L,
 163     1.01637831491095303794049311378629406276L,
 164     1.0191339960777379496848780958207928794L,
 165     1.02189714865411667823448013478329943978L,
 166     1.02466779289713564514828907627081492763L,
 167     1.0274459491187636965388611939222137815L,
 168     1.030231637686041012871707902453904567093L,
 169     1.033024879021228422500108283970460918086L,
 170     1.035825693601957120029983209018081371844L,
 171     1.03863410196137879061243669795463973258L,
 172     1.04145012468831614126454607901189312648L,
 173     1.044273782427413840321966478739929008784L,
 174     1.04710509587928986612990725022711224056L,
 175     1.04994408580068726608203812651590790906L,
 176     1.05279077300462632711989120298074630319L,
 177     1.05564517836055715880834132515293865216L,
 178     1.058507322794512690105772109683716645074L,
 179     1.061377227289262080950567678003883726294L,
 180     1.06425491288446454978861125700158022068L,
 181     1.06714040067682361816952112099280916261L,
 182     1.0700337118202417735424119367576235685L,
 183     1.072934867525975551385035450873827585343L,
 184     1.075843889062791037803228648476057074063L,
 185     1.07876079775711979374068003743848295849L,
 186     1.081685614993215201942115594422531125643L,
 187     1.08461836221330923781610517190661434161L,
 188     1.087559060917769665346797830944039707867L,
 189     1.09050773266525765920701065576070797899L,
 190     1.09346439907288585422822014625044716208L,
 191     1.096429081816376823386138295859248481766L,
 192     1.09940180263022198546369696823882990404L,
 193     1.10238258330784094355641420942564685751L,
 194     1.10537144570174125558827469625695031104L,
 195     1.108368411723678638009423649426619850137L,
 196     1.111373503344817603850149254228916637444L,
 197     1.1143867425958925363088129569196030678L,
 198     1.11740815156736919905457996308578026665L,
 199     1.12043775240960668442900387986631301277L,
 200     1.123475567333019800733729739775321431954L,
 201     1.12652161860824189979479864378703477763L,
 202     1.129575928566288145997264988840249825907L,
 203     1.13263851959871922798707372367762308438L,
 204     1.13570941415780551424039033067611701343L,
 205     1.13878863475669165370383028384151125472L,
 206     1.14187620396956162271229760828788093894L,
 207     1.14497214443180421939441388822291589579L,
 208     1.14807647884017900677879966269734268003L,
 209     1.15118922995298270581775963520198253612L,
 210     1.154310420590216039548221528724806960684L,
 211     1.157440073633751029613085766293796821106L,
 212     1.16057821202749874636945947257609098625L,
 213     1.16372485877757751381357359909218531234L,
 214     1.166880036952481570555516298414089287834L,
 215     1.170043769683250188080259035792738573L,
 216     1.17321608016363724753480435451324538889L,
 217     1.176396991650281276284645728483848641054L,
 218     1.17958652746287594548610056676944051898L,
 219     1.182784710984341029924457204693850757966L,
 220     1.18599156566099383137126564953421556374L,
 221     1.18920711500272106671749997056047591529L,
 222     1.19243138258315122214272755814543101148L,
 223     1.195664392039827374583837049865451975705L,
 224     1.19890616707438048177030255797630020695L,
 225     1.202156731452703142096396957497765876003L,
 226     1.205416109005123825604211432558411335666L,
 227     1.208684323626581577354792255889216998484L,
 228     1.21196139927680119446816891773249304545L,
 229     1.215247359980468878116520251338798457624L,
 230     1.218542229827408361758207148117394510724L,
 231     1.221846032972757516903891841911570785836L,
 232     1.225158793637145437709464594384845353707L,
 233     1.22848053610687000569400895779278184036L,
 234     1.2318112847340759358845566532127948166L,
 235     1.235151063936933305692912507415415760294L,
 236     1.238499898199816567833368865859612431545L,
 237     1.24185781207348404859367746872659560551L,
 238     1.24522483017525793277520496748615267417L,
 239     1.24860097718920473662176609730249554519L,
 240     1.25198627786631627006020603178920359732L,
 241     1.255380757024691089579390657442301194595L,
 242     1.25878443954971644307786044181516261876L,
 243     1.26219735039425070801401025851841645967L,
 244     1.265619514578806324196273999873453036296L,
 245     1.26905095719173322255441908103233800472L,
 246     1.27249170338940275123669204418460217677L,
 247     1.27594177839639210038120243475928938891L,
 248     1.27940120750566922691358797002785254596L,
 249     1.28287001607877828072666978102151405111L,
 250     1.286348229546025533601482208069738348355L,
 251     1.28983587340666581223274729549155218968L,
 252     1.293332973229089436725559789048704304684L,
 253     1.296839554651009665933754117792451159835L,
 254     1.30035564337965065101414056707091779129L,
 255     1.30388126519193589857452364895199736833L,
 256     1.30741644593467724479715157747196172848L,
 257     1.310961211524764341922991786330755849366L,
 258     1.314515587949354658485983613383997794965L,
 259     1.318079601266063994690185647066116617664L,
 260     1.32165327760315751432651181233060922616L,
 261     1.32523664315974129462953709549872167411L,
 262     1.32882972420595439547865089632866510792L,
 263     1.33243254708316144935164337949073577407L,
 264     1.33604513820414577344262790437186975929L,
 265     1.33966752405330300536003066972435257602L,
 266     1.34329973118683526382421714618163087542L,
 267     1.346941786232945835788173713229537282075L,
 268     1.35059371589203439140852219606013396004L,
 269     1.35425554693689272829801474014070280434L,
 270     1.357927306212901046494536695671766697446L,
 271     1.36160902063822475558553593883194147464L,
 272     1.36530071720401181543069836033754285543L,
 273     1.36900242297459061192960113298219283217L,
 274     1.37271416508766836928499785714471721579L,
 275     1.37643597075453010021632280551868696026L,
 276     1.380167867260238095581945274358283464697L,
 277     1.383909881963831954872659527265192818L,
 278     1.387662042298529159042861017950775988896L,
 279     1.39142437577192618714983552956624344668L,
 280     1.395196909966200178275574599249220994716L,
 281     1.398979672538311140209528136715194969206L,
 282     1.40277269122020470637471352433337881711L,
 283     1.40657599381901544248361973255451684411L,
 284     1.410389608217270704414375128268675481145L,
 285     1.41421356237309504880168872420969807857L
 286   };

/* [previous][next][first][last][top][bottom][index][help] */