diff --git a/lib/node_modules/@stdlib/constants/float32/eulergamma/README.md b/lib/node_modules/@stdlib/constants/float32/eulergamma/README.md new file mode 100644 index 000000000000..9b0a00a805e5 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/eulergamma/README.md @@ -0,0 +1,156 @@ +<!-- + +@license Apache-2.0 + +Copyright (c) 2025 The Stdlib Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +--> + +# FLOAT32_EULERGAMMA + +> The [Euler-Mascheroni][eulergamma] constant. + +<section class="intro"> + +The [Euler-Mascheroni][eulergamma] constant `gamma` (also known as "Euler's constant" or "the Euler constant") is defined as the limit of the sequence + +<!-- <equation class="equation" label="eq:eulergamma_constant" align="center" raw="\gamma = \lim_{n\to\infty} \left( \sum_{k=1}^n \frac{1}{k} - \ln n \right)" alt="Equation for the Euler-Mascheroni constant."> --> + +```math +\gamma = \lim_{n\to\infty} \left( \sum_{k=1}^n \frac{1}{k} - \ln n \right) +``` + +<!-- <div class="equation" align="center" data-raw-text="\gamma = \lim_{n\to\infty} \left( \sum_{k=1}^n \frac{1}{k} - \ln n \right)" data-equation="eq:eulergamma_constant"> + <img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@6e1cf583c4854b3d982f22f361f53a30c9f552dc/lib/node_modules/@stdlib/constants/float64/eulergamma/docs/img/equation_eulergamma_constant.svg" alt="Equation for the Euler-Mascheroni constant."> + <br> +</div> --> + +<!-- </equation> --> + +</section> + +<!-- /.intro --> + +<section class="usage"> + +## Usage + +```javascript +var FLOAT32_EULERGAMMA = require( '@stdlib/constants/float32/eulergamma' ); +``` + +#### FLOAT32_EULERGAMMA + +The [Euler-Mascheroni][eulergamma] constant. + +```javascript +var bool = ( FLOAT32_EULERGAMMA === 0.5772156715393066 ); +// returns true +``` + +</section> + +<!-- /.usage --> + +<section class="examples"> + +## Examples + +<!-- TODO: better example --> + +<!-- eslint no-undef: "error" --> + +```javascript +var FLOAT32_EULERGAMMA = require( '@stdlib/constants/float32/eulergamma' ); + +console.log( FLOAT32_EULERGAMMA ); +// => 0.5772156715393066 +``` + +</section> + +<!-- /.examples --> + +<!-- C interface documentation. --> + +* * * + +<section class="c"> + +## C APIs + +<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. --> + +<section class="intro"> + +</section> + +<!-- /.intro --> + +<!-- C usage documentation. --> + +<section class="usage"> + +### Usage + +```c +#include "stdlib/constants/float32/eulergamma.h" +``` + +#### STDLIB_CONSTANT_FLOAT32_EULERGAMMA + +Macro for the [Euler-Mascheroni][eulergamma] constant. + +</section> + +<!-- /.usage --> + +<!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. --> + +<section class="notes"> + +</section> + +<!-- /.notes --> + +<!-- C API usage examples. --> + +<section class="examples"> + +</section> + +<!-- /.examples --> + +</section> + +<!-- /.c --> + +<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. --> + +<section class="related"> + +</section> + +<!-- /.related --> + +<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. --> + +<section class="links"> + +[eulergamma]: http://mathworld.wolfram.com/Euler-MascheroniConstant.html + +</section> + +<!-- /.links --> diff --git a/lib/node_modules/@stdlib/constants/float32/eulergamma/docs/img/equation_eulergamma_constant.svg b/lib/node_modules/@stdlib/constants/float32/eulergamma/docs/img/equation_eulergamma_constant.svg new file mode 100644 index 000000000000..26ceed1c4f80 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/eulergamma/docs/img/equation_eulergamma_constant.svg @@ -0,0 +1,64 @@ +<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="25.053ex" height="7.509ex" style="vertical-align: -3.171ex;" viewBox="0 -1867.7 10786.5 3233.2" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" aria-labelledby="MathJax-SVG-1-Title"> +<title id="MathJax-SVG-1-Title">gamma equals limit Underscript n right-arrow normal infinity Endscripts left-parenthesis sigma-summation Underscript k equals 1 Overscript n Endscripts StartFraction 1 Over k EndFraction minus ln n right-parenthesis</title> +<defs aria-hidden="true"> +<path stroke-width="1" id="E1-MJMATHI-3B3" d="M31 249Q11 249 11 258Q11 275 26 304T66 365T129 418T206 441Q233 441 239 440Q287 429 318 386T371 255Q385 195 385 170Q385 166 386 166L398 193Q418 244 443 300T486 391T508 430Q510 431 524 431H537Q543 425 543 422Q543 418 522 378T463 251T391 71Q385 55 378 6T357 -100Q341 -165 330 -190T303 -216Q286 -216 286 -188Q286 -138 340 32L346 51L347 69Q348 79 348 100Q348 257 291 317Q251 355 196 355Q148 355 108 329T51 260Q49 251 47 251Q45 249 31 249Z"></path> +<path stroke-width="1" id="E1-MJMAIN-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path> +<path stroke-width="1" id="E1-MJMAIN-6C" d="M42 46H56Q95 46 103 60V68Q103 77 103 91T103 124T104 167T104 217T104 272T104 329Q104 366 104 407T104 482T104 542T103 586T103 603Q100 622 89 628T44 637H26V660Q26 683 28 683L38 684Q48 685 67 686T104 688Q121 689 141 690T171 693T182 694H185V379Q185 62 186 60Q190 52 198 49Q219 46 247 46H263V0H255L232 1Q209 2 183 2T145 3T107 3T57 1L34 0H26V46H42Z"></path> +<path stroke-width="1" id="E1-MJMAIN-69" d="M69 609Q69 637 87 653T131 669Q154 667 171 652T188 609Q188 579 171 564T129 549Q104 549 87 564T69 609ZM247 0Q232 3 143 3Q132 3 106 3T56 1L34 0H26V46H42Q70 46 91 49Q100 53 102 60T104 102V205V293Q104 345 102 359T88 378Q74 385 41 385H30V408Q30 431 32 431L42 432Q52 433 70 434T106 436Q123 437 142 438T171 441T182 442H185V62Q190 52 197 50T232 46H255V0H247Z"></path> +<path stroke-width="1" id="E1-MJMAIN-6D" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q351 442 364 440T387 434T406 426T421 417T432 406T441 395T448 384T452 374T455 366L457 361L460 365Q463 369 466 373T475 384T488 397T503 410T523 422T546 432T572 439T603 442Q729 442 740 329Q741 322 741 190V104Q741 66 743 59T754 49Q775 46 803 46H819V0H811L788 1Q764 2 737 2T699 3Q596 3 587 0H579V46H595Q656 46 656 62Q657 64 657 200Q656 335 655 343Q649 371 635 385T611 402T585 404Q540 404 506 370Q479 343 472 315T464 232V168V108Q464 78 465 68T468 55T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path> +<path stroke-width="1" id="E1-MJMATHI-6E" d="M21 287Q22 293 24 303T36 341T56 388T89 425T135 442Q171 442 195 424T225 390T231 369Q231 367 232 367L243 378Q304 442 382 442Q436 442 469 415T503 336T465 179T427 52Q427 26 444 26Q450 26 453 27Q482 32 505 65T540 145Q542 153 560 153Q580 153 580 145Q580 144 576 130Q568 101 554 73T508 17T439 -10Q392 -10 371 17T350 73Q350 92 386 193T423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 180T152 343Q153 348 153 366Q153 405 129 405Q91 405 66 305Q60 285 60 284Q58 278 41 278H27Q21 284 21 287Z"></path> +<path stroke-width="1" id="E1-MJMAIN-2192" d="M56 237T56 250T70 270H835Q719 357 692 493Q692 494 692 496T691 499Q691 511 708 511H711Q720 511 723 510T729 506T732 497T735 481T743 456Q765 389 816 336T935 261Q944 258 944 250Q944 244 939 241T915 231T877 212Q836 186 806 152T761 85T740 35T732 4Q730 -6 727 -8T711 -11Q691 -11 691 0Q691 7 696 25Q728 151 835 230H70Q56 237 56 250Z"></path> +<path stroke-width="1" id="E1-MJMAIN-221E" d="M55 217Q55 305 111 373T254 442Q342 442 419 381Q457 350 493 303L507 284L514 294Q618 442 747 442Q833 442 888 374T944 214Q944 128 889 59T743 -11Q657 -11 580 50Q542 81 506 128L492 147L485 137Q381 -11 252 -11Q166 -11 111 57T55 217ZM907 217Q907 285 869 341T761 397Q740 397 720 392T682 378T648 359T619 335T594 310T574 285T559 263T548 246L543 238L574 198Q605 158 622 138T664 94T714 61T765 51Q827 51 867 100T907 217ZM92 214Q92 145 131 89T239 33Q357 33 456 193L425 233Q364 312 334 337Q285 380 233 380Q171 380 132 331T92 214Z"></path> +<path stroke-width="1" id="E1-MJMAIN-28" d="M94 250Q94 319 104 381T127 488T164 576T202 643T244 695T277 729T302 750H315H319Q333 750 333 741Q333 738 316 720T275 667T226 581T184 443T167 250T184 58T225 -81T274 -167T316 -220T333 -241Q333 -250 318 -250H315H302L274 -226Q180 -141 137 -14T94 250Z"></path> +<path stroke-width="1" id="E1-MJSZ2-2211" d="M60 948Q63 950 665 950H1267L1325 815Q1384 677 1388 669H1348L1341 683Q1320 724 1285 761Q1235 809 1174 838T1033 881T882 898T699 902H574H543H251L259 891Q722 258 724 252Q725 250 724 246Q721 243 460 -56L196 -356Q196 -357 407 -357Q459 -357 548 -357T676 -358Q812 -358 896 -353T1063 -332T1204 -283T1307 -196Q1328 -170 1348 -124H1388Q1388 -125 1381 -145T1356 -210T1325 -294L1267 -449L666 -450Q64 -450 61 -448Q55 -446 55 -439Q55 -437 57 -433L590 177Q590 178 557 222T452 366T322 544L56 909L55 924Q55 945 60 948Z"></path> +<path stroke-width="1" id="E1-MJMATHI-6B" d="M121 647Q121 657 125 670T137 683Q138 683 209 688T282 694Q294 694 294 686Q294 679 244 477Q194 279 194 272Q213 282 223 291Q247 309 292 354T362 415Q402 442 438 442Q468 442 485 423T503 369Q503 344 496 327T477 302T456 291T438 288Q418 288 406 299T394 328Q394 353 410 369T442 390L458 393Q446 405 434 405H430Q398 402 367 380T294 316T228 255Q230 254 243 252T267 246T293 238T320 224T342 206T359 180T365 147Q365 130 360 106T354 66Q354 26 381 26Q429 26 459 145Q461 153 479 153H483Q499 153 499 144Q499 139 496 130Q455 -11 378 -11Q333 -11 305 15T277 90Q277 108 280 121T283 145Q283 167 269 183T234 206T200 217T182 220H180Q168 178 159 139T145 81T136 44T129 20T122 7T111 -2Q98 -11 83 -11Q66 -11 57 -1T48 16Q48 26 85 176T158 471L195 616Q196 629 188 632T149 637H144Q134 637 131 637T124 640T121 647Z"></path> +<path stroke-width="1" id="E1-MJMAIN-31" d="M213 578L200 573Q186 568 160 563T102 556H83V602H102Q149 604 189 617T245 641T273 663Q275 666 285 666Q294 666 302 660V361L303 61Q310 54 315 52T339 48T401 46H427V0H416Q395 3 257 3Q121 3 100 0H88V46H114Q136 46 152 46T177 47T193 50T201 52T207 57T213 61V578Z"></path> +<path stroke-width="1" id="E1-MJMAIN-2212" d="M84 237T84 250T98 270H679Q694 262 694 250T679 230H98Q84 237 84 250Z"></path> +<path stroke-width="1" id="E1-MJMAIN-6E" d="M41 46H55Q94 46 102 60V68Q102 77 102 91T102 122T103 161T103 203Q103 234 103 269T102 328V351Q99 370 88 376T43 385H25V408Q25 431 27 431L37 432Q47 433 65 434T102 436Q119 437 138 438T167 441T178 442H181V402Q181 364 182 364T187 369T199 384T218 402T247 421T285 437Q305 442 336 442Q450 438 463 329Q464 322 464 190V104Q464 66 466 59T477 49Q498 46 526 46H542V0H534L510 1Q487 2 460 2T422 3Q319 3 310 0H302V46H318Q379 46 379 62Q380 64 380 200Q379 335 378 343Q372 371 358 385T334 402T308 404Q263 404 229 370Q202 343 195 315T187 232V168V108Q187 78 188 68T191 55T200 49Q221 46 249 46H265V0H257L234 1Q210 2 183 2T145 3Q42 3 33 0H25V46H41Z"></path> +<path stroke-width="1" id="E1-MJMAIN-29" d="M60 749L64 750Q69 750 74 750H86L114 726Q208 641 251 514T294 250Q294 182 284 119T261 12T224 -76T186 -143T145 -194T113 -227T90 -246Q87 -249 86 -250H74Q66 -250 63 -250T58 -247T55 -238Q56 -237 66 -225Q221 -64 221 250T66 725Q56 737 55 738Q55 746 60 749Z"></path> +<path stroke-width="1" id="E1-MJSZ4-28" d="M758 -1237T758 -1240T752 -1249H736Q718 -1249 717 -1248Q711 -1245 672 -1199Q237 -706 237 251T672 1700Q697 1730 716 1749Q718 1750 735 1750H752Q758 1744 758 1741Q758 1737 740 1713T689 1644T619 1537T540 1380T463 1176Q348 802 348 251Q348 -242 441 -599T744 -1218Q758 -1237 758 -1240Z"></path> +<path stroke-width="1" id="E1-MJSZ4-29" d="M33 1741Q33 1750 51 1750H60H65Q73 1750 81 1743T119 1700Q554 1207 554 251Q554 -707 119 -1199Q76 -1250 66 -1250Q65 -1250 62 -1250T56 -1249Q55 -1249 53 -1249T49 -1250Q33 -1250 33 -1239Q33 -1236 50 -1214T98 -1150T163 -1052T238 -910T311 -727Q443 -335 443 251Q443 402 436 532T405 831T339 1142T224 1438T50 1716Q33 1737 33 1741Z"></path> +</defs> +<g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)" aria-hidden="true"> + <use xlink:href="#E1-MJMATHI-3B3" x="0" y="0"></use> + <use xlink:href="#E1-MJMAIN-3D" x="821" y="0"></use> +<g transform="translate(1877,0)"> +<g transform="translate(224,0)"> + <use xlink:href="#E1-MJMAIN-6C"></use> + <use xlink:href="#E1-MJMAIN-69" x="278" y="0"></use> + <use xlink:href="#E1-MJMAIN-6D" x="557" y="0"></use> +</g> +<g transform="translate(0,-601)"> + <use transform="scale(0.707)" xlink:href="#E1-MJMATHI-6E" x="0" y="0"></use> + <use transform="scale(0.707)" xlink:href="#E1-MJMAIN-2192" x="600" y="0"></use> + <use transform="scale(0.707)" xlink:href="#E1-MJMAIN-221E" x="1601" y="0"></use> +</g> +</g> +<g transform="translate(3883,0)"> + <use xlink:href="#E1-MJSZ4-28"></use> +<g transform="translate(792,0)"> + <use xlink:href="#E1-MJSZ2-2211" x="0" y="0"></use> +<g transform="translate(85,-1110)"> + <use transform="scale(0.707)" xlink:href="#E1-MJMATHI-6B" x="0" y="0"></use> + <use transform="scale(0.707)" xlink:href="#E1-MJMAIN-3D" x="521" y="0"></use> + <use transform="scale(0.707)" xlink:href="#E1-MJMAIN-31" x="1300" y="0"></use> +</g> + <use transform="scale(0.707)" xlink:href="#E1-MJMATHI-6E" x="721" y="1627"></use> +</g> +<g transform="translate(2237,0)"> +<g transform="translate(286,0)"> +<rect stroke="none" width="641" height="60" x="0" y="220"></rect> + <use xlink:href="#E1-MJMAIN-31" x="70" y="676"></use> + <use xlink:href="#E1-MJMATHI-6B" x="60" y="-715"></use> +</g> +</g> + <use xlink:href="#E1-MJMAIN-2212" x="3507" y="0"></use> +<g transform="translate(4508,0)"> + <use xlink:href="#E1-MJMAIN-6C"></use> + <use xlink:href="#E1-MJMAIN-6E" x="278" y="0"></use> +</g> + <use xlink:href="#E1-MJMATHI-6E" x="5509" y="0"></use> + <use xlink:href="#E1-MJSZ4-29" x="6110" y="0"></use> +</g> +</g> +</svg> \ No newline at end of file diff --git a/lib/node_modules/@stdlib/constants/float32/eulergamma/docs/repl.txt b/lib/node_modules/@stdlib/constants/float32/eulergamma/docs/repl.txt new file mode 100644 index 000000000000..96f92f639f57 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/eulergamma/docs/repl.txt @@ -0,0 +1,12 @@ + +{{alias}} + The Euler-Mascheroni constant. + + Examples + -------- + > {{alias}} + 0.5772156715393066 + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/constants/float32/eulergamma/docs/types/index.d.ts b/lib/node_modules/@stdlib/constants/float32/eulergamma/docs/types/index.d.ts new file mode 100644 index 000000000000..b1be7ca4acb5 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/eulergamma/docs/types/index.d.ts @@ -0,0 +1,33 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* The Euler-Mascheroni constant. +* +* @example +* var val = FLOAT32_EULERGAMMA; +* // returns 0.5772156715393066 +*/ +declare const FLOAT32_EULERGAMMA: number; + + +// EXPORTS // + +export = FLOAT32_EULERGAMMA; diff --git a/lib/node_modules/@stdlib/constants/float32/eulergamma/docs/types/test.ts b/lib/node_modules/@stdlib/constants/float32/eulergamma/docs/types/test.ts new file mode 100644 index 000000000000..27135c947aeb --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/eulergamma/docs/types/test.ts @@ -0,0 +1,28 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import FLOAT32_EULERGAMMA = require( './index' ); + + +// TESTS // + +// The export is a number... +{ + // eslint-disable-next-line @typescript-eslint/no-unused-expressions + FLOAT32_EULERGAMMA; // $ExpectType number +} diff --git a/lib/node_modules/@stdlib/constants/float32/eulergamma/examples/index.js b/lib/node_modules/@stdlib/constants/float32/eulergamma/examples/index.js new file mode 100644 index 000000000000..36edece94b72 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/eulergamma/examples/index.js @@ -0,0 +1,24 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var FLOAT32_EULERGAMMA = require( './../lib' ); + +console.log( FLOAT32_EULERGAMMA ); +// => 0.5772156715393066 diff --git a/lib/node_modules/@stdlib/constants/float32/eulergamma/include/stdlib/constants/float32/eulergamma.h b/lib/node_modules/@stdlib/constants/float32/eulergamma/include/stdlib/constants/float32/eulergamma.h new file mode 100644 index 000000000000..82168e8ebcb9 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/eulergamma/include/stdlib/constants/float32/eulergamma.h @@ -0,0 +1,27 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#ifndef STDLIB_CONSTANTS_FLOAT32_EULERGAMMA_H +#define STDLIB_CONSTANTS_FLOAT32_EULERGAMMA_H + +/** +* Macro for the Euler-Mascheroni constant. +*/ +#define STDLIB_CONSTANT_FLOAT32_EULERGAMMA 0.5772156649015328606f + +#endif // !STDLIB_CONSTANTS_FLOAT32_EULERGAMMA_H diff --git a/lib/node_modules/@stdlib/constants/float32/eulergamma/lib/index.js b/lib/node_modules/@stdlib/constants/float32/eulergamma/lib/index.js new file mode 100644 index 000000000000..ffab2b99cac8 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/eulergamma/lib/index.js @@ -0,0 +1,53 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* The Euler-Mascheroni constant. +* +* @module @stdlib/constants/float32/eulergamma +* @type {number} +* +* @example +* var FLOAT32_EULERGAMMA = require( '@stdlib/constants/float32/eulergamma' ); +* // returns 0.5772156715393066 +*/ + +// MODULES // + +var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' ); + + +// MAIN // + +/** +* The Euler-Mascheroni constant. +* +* @constant +* @type {number} +* @default 0.5772156715393066 +* @see [OEIS]{@link http://oeis.org/A001620} +* @see [Mathworld]{@link http://mathworld.wolfram.com/Euler-MascheroniConstant.html} +*/ +var FLOAT32_EULERGAMMA = float64ToFloat32( 0.5772156649015329 ); + + +// EXPORTS // + +module.exports = FLOAT32_EULERGAMMA; diff --git a/lib/node_modules/@stdlib/constants/float32/eulergamma/manifest.json b/lib/node_modules/@stdlib/constants/float32/eulergamma/manifest.json new file mode 100644 index 000000000000..844d692f6439 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/eulergamma/manifest.json @@ -0,0 +1,36 @@ +{ + "options": {}, + "fields": [ + { + "field": "src", + "resolve": true, + "relative": true + }, + { + "field": "include", + "resolve": true, + "relative": true + }, + { + "field": "libraries", + "resolve": false, + "relative": false + }, + { + "field": "libpath", + "resolve": true, + "relative": false + } + ], + "confs": [ + { + "src": [], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [] + } + ] +} diff --git a/lib/node_modules/@stdlib/constants/float32/eulergamma/package.json b/lib/node_modules/@stdlib/constants/float32/eulergamma/package.json new file mode 100644 index 000000000000..a7f0db200bc8 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/eulergamma/package.json @@ -0,0 +1,71 @@ +{ + "name": "@stdlib/constants/float32/eulergamma", + "version": "0.0.0", + "description": "The Euler-Mascheroni constant.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "doc": "./docs", + "example": "./examples", + "include": "./include", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "constant", + "const", + "mathematics", + "math", + "euler", + "euler-mascheroni", + "mascheroni", + "eulers constant", + "euler constant", + "gamma", + "eulergamma", + "ieee754", + "precision", + "floating-point", + "float", + "float32" + ] +} diff --git a/lib/node_modules/@stdlib/constants/float32/eulergamma/test/test.js b/lib/node_modules/@stdlib/constants/float32/eulergamma/test/test.js new file mode 100644 index 000000000000..191b3eb318ae --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float32/eulergamma/test/test.js @@ -0,0 +1,38 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2025 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var FLOAT32_EULERGAMMA = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a number', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof FLOAT32_EULERGAMMA, 'number', 'main export is a number' ); + t.end(); +}); + +tape( 'the exported value is a single-precision floating-point number equal to 0.5772156715393066', function test( t ) { + t.equal( FLOAT32_EULERGAMMA, 0.5772156715393066, 'returns 0.5772156715393066' ); + t.end(); +});