Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinga local clone.

std.math.constants

This is a submodule ofstd.math.
It contains several useful mathematical constants.
License:
Boost License 1.0.
Authors:
Walter Bright, Don Clugston

Sourcestd/math/constants.d

enum realE;
e = 2.718281...
enum realLOG2T;
log210 = 3.321928...
enum realLOG2E;
log2e = 1.442695...
enum realLOG2;
log102 = 0.301029...
enum realLOG10E;
log10e = 0.434294...
enum realLN2;
ln 2 = 0.693147...
enum realLN10;
ln 10 = 2.302585...
enum realPI;
π = 3.141592...
enum realPI_2;
π / 2 = 1.570796...
enum realPI_4;
π / 4 = 0.785398...
enum realM_1_PI;
1 / π = 0.318309...
enum realM_2_PI;
2 / π = 0.636619...
enum realM_2_SQRTPI;
2 / √π = 1.128379...
enum realSQRT2;
√2 = 1.414213...
enum realSQRT1_2;
√½ = 0.707106...
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Sat Feb 21 04:08:36 2026

[8]ページ先頭

©2009-2026 Movatter.jp